TriangularMovingAverage


Summary

The Triangular Moving Average is a moving average that gives more weith to values located in the middle of aggregated period.

Syntax

public interface TriangularMovingAverage : MovingAverage, IIndicator

Members

NameTypeSummary

Example 1

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