MovingAverage


Summary

Moving Average Indicator calculation

Remarks

Used to smooth the price data to form a trend following indicator

Syntax

public interface MovingAverage : IIndicator

Members

NameTypeSummary
Result PropertyThe resulting time series of the calculation

Example 1

private MovingAverage ma;
protected override void Initialize()
{
    ma = Indicators.MovingAverage(Source, MAPeriods, MAType);
}
//...
public override void Calculate(int index)
{
    MA[index] = ma.Result[index];   
    //...
}
Reference