From 05e5621b988f938778bf762b28547b86e4200a87 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Wed, 14 Aug 2024 05:43:58 -0700 Subject: [PATCH] Remove redundant check for whether there are enough bars on the chart --- indicators/ATRRegime.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indicators/ATRRegime.cs b/indicators/ATRRegime.cs index 10b99ad..e6dd7a3 100644 --- a/indicators/ATRRegime.cs +++ b/indicators/ATRRegime.cs @@ -57,7 +57,7 @@ namespace NinjaTrader.NinjaScript.Indicators if (PrimaryBars != BarsInProgress) return; - if (CurrentBars[ADRBars] < 0 || CurrentBars[ADRBars] < RankPeriod) + if (CurrentBars[ADRBars] < RankPeriod) return; List atrValues = new List();