TrueRange.Result
property · TrueRange · cAlgo.API.Indicators
DesktopCLICloud
Gets the resulting time series of the True Range indicator calculation.
Definition
IndicatorDataSeries Result {get;}
trueRange.Result: IndicatorDataSeries
Returns IndicatorDataSeries
Examples
var trueRange = Indicators.TrueRange();
var trueRangeInPips = trueRange.Result.Last(1) / Symbol.PipSize;
Print("True Range of the last closed bar: {0} pips", trueRangeInPips);
trueRange = api.Indicators.TrueRange()
trueRangeInPips = trueRange.Result.Last(1) / api.Symbol.PipSize
api.Print(f"True Range of the last closed bar: {trueRangeInPips} pips")