Remove redundant check for whether there are enough bars on the chart
This commit is contained in:
parent
964108ed29
commit
05e5621b98
@ -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>();
|
||||||
|
Loading…
Reference in New Issue
Block a user