TrueRange


Summary

Initializes the True Range indicator.

Remarks

The True Range indicator is the daily range plus any gap from the closing price of the previous day

Syntax

public TrueRange TrueRange()
public TrueRange TrueRange(MarketSeries marketSeries)

Example 1

[Output("Main")]
public IndicatorDataSeries Result {get; set;}
private TrueRange trueRange;
protected override void Initialize()
{
    trueRange = Indicators.TrueRange();
}
public override void Calculate(int index)
{
    Result[index] = trueRange.Result[index];
}