GetIndicator


Summary

Initializes the custom indicator

Syntax

public TIndicator GetIndicator(Object[] parameterValues)
public TIndicator GetIndicator(MarketSeries marketSeries, Object[] parameterValues)

Parameters

NameDescription

Example 1

private SampleSMA sma;
protected override void Initialize()
{
    sma = Indicators.GetIndicator<SampleSMA>(Source, Period);
}
public override void Calculate(int index)
{
    // Display the sma result on the chart
    Result[index] = sma.Result[index]; 
}