TimeSeriesMovingAverage


Summary

A Time Series Moving Average is moving average based on linear regression forecast.

Syntax

public interface TimeSeriesMovingAverage : MovingAverage, IIndicator

Members

NameTypeSummary

Example 1

private TimeSeriesMovingAverage _timeSeriesMovingAverage;
protected override void Initialize()
{
    _timeSeriesMovingAverage = Indicators.TimeSeriesMovingAverage(MarketSeries.Close, 9);
}
 
public override void Calculate(int index)
{
    //Print the current value of TimeSeries Moving Average to the log
    Print("The current TimeSeries Moving Average  is {0}", _timeSeriesMovingAverage.Result[index]);
}