Skip to content

Result Property

Summary

Gets or sets the time series of the On Balance Volume indicator.

Signature

1
public abstract IndicatorDataSeries Result {get; set;}

Return Value

IndicatorDataSeries

Declaring Type

cAlgo.API.Indicators.OnBalanceVolume

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 private OnBalanceVolume _onBalanceVolume;
 [Parameter]
 public DataSeries Source { get; set; }
 protected override void OnStart()
 {
     _onBalanceVolume = Indicators.OnBalanceVolume(Source);
 }
 protected override void OnBar()
 {
     var currentValue = _onBalanceVolume.Result.LastValue;
     //...
 }

Last update: July 1, 2022

Comments