Skip to content

Result Property

Summary

The resulting time series of the calculation.

Signature

1
public abstract IndicatorDataSeries Result {get;}

Return Value

IndicatorDataSeries

Declaring Type

cAlgo.API.Indicators.MovingAverage

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 //...
 [Output]
 public IndicatorDataSeries Result { get; set; }
 private MovingAverage ma;
 protected override void Initialize()
 {
     ma = Indicators.MovingAverage(Source, MAPeriods, MAType);
 }
 public override void Calculate(int index)
 {
     Result[index] = ma.Result[index];
     //...
 }

Last update: July 1, 2022

Comments