Skip to content

Result Property

Summary

The time series of AccumulativeSwingIndex.

Signature

1
public abstract IndicatorDataSeries Result {get;}

Return Value

IndicatorDataSeries

Declaring Type

cAlgo.API.Indicators.AccumulativeSwingIndex

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 //...
 private AccumulativeSwingIndex _accumulativeSwingIndex;
 //...
 [Parameter("Limit Move", DefaultValue = 12)]
 public int LimitMove { get; set; }
 //...
 protected override void OnStart()
 {
     _accumulativeSwingIndex = Indicators.AccumulativeSwingIndex(LimitMove);
 }
 protected override void OnBar()
 {
     // Print to log
     Print("The Current Accumulative Swing Index is: {0}", _accumulativeSwingIndex.Result.LastValue);
 }
 //...

Last update: June 26, 2022

Comments