TriangularMovingAverage


Summary

The Triangular Moving Average is averaged twice to produce a double smoothed trend indicator

Syntax

public TriangularMovingAverage TriangularMovingAverage(DataSeries source, int periods)

Parameters

NameDescription

Example 1

[Parameter]
public DataSeries Source { get; set; }
[Output("Result", Color = Colors.Orange)]
public IndicatorDataSeries Result { get; set; }
private SimpleMovingAverage tma;
protected override void Initialize()
{
    tma = Indicators.TriangularMovingAverage(Source, 10);
}
public override void Calculate(int index)
{
    Result[index] = tma.Result[index]; 
}