diff --git a/strategies/rsi-divergence/RSIDivergenceBot.cs b/strategies/rsi-divergence/RSIDivergenceBot.cs index 50041cd..4368de0 100644 --- a/strategies/rsi-divergence/RSIDivergenceBot.cs +++ b/strategies/rsi-divergence/RSIDivergenceBot.cs @@ -46,7 +46,7 @@ namespace NinjaTrader.NinjaScript.Strategies protected override void OnBarUpdate() { - if (CurrentBar < BarsRequiredToTrade) + if (CurrentBar < DivergencePeriod) return; if (rsi[0] > rsi[DivergencePeriod] && Close[0] < Close[DivergencePeriod])