Remove redundant check for whether there are enough bars on the chart

This commit is contained in:
moshferatu 2024-08-14 05:43:58 -07:00
parent 964108ed29
commit 05e5621b98

View File

@ -57,7 +57,7 @@ namespace NinjaTrader.NinjaScript.Indicators
if (PrimaryBars != BarsInProgress) if (PrimaryBars != BarsInProgress)
return; return;
if (CurrentBars[ADRBars] < 0 || CurrentBars[ADRBars] < RankPeriod) if (CurrentBars[ADRBars] < RankPeriod)
return; return;
List<double> atrValues = new List<double>(); List<double> atrValues = new List<double>();