From 89669bd022a409e5c96dd8afa097681399c6762c Mon Sep 17 00:00:00 2001 From: moshferatu Date: Sun, 28 Jul 2024 05:17:15 -0700 Subject: [PATCH] Make the true range series lookback infinite in order to facilitate backtesting over larger date ranges --- indicators/TRAdjEMA.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indicators/TRAdjEMA.cs b/indicators/TRAdjEMA.cs index de0e45b..4e4c184 100644 --- a/indicators/TRAdjEMA.cs +++ b/indicators/TRAdjEMA.cs @@ -37,7 +37,7 @@ namespace NinjaTrader.NinjaScript.Indicators } else if (State == State.DataLoaded) { - trueRange = new Series(this); + trueRange = new Series(this, MaximumBarsLookBack.Infinite); maxRange = MAX(trueRange, TrueRangeLookback); minRange = MIN(trueRange, TrueRangeLookback);