diff --git a/strategies/rsi-divergence/RSIDivergenceBot.cs b/strategies/rsi-divergence/RSIDivergenceBot.cs index 85e8911..a9c8ac7 100644 --- a/strategies/rsi-divergence/RSIDivergenceBot.cs +++ b/strategies/rsi-divergence/RSIDivergenceBot.cs @@ -1,7 +1,6 @@ #region Using declarations using NinjaTrader.Cbi; using NinjaTrader.NinjaScript.Indicators; -using System; #endregion namespace NinjaTrader.NinjaScript.Strategies @@ -45,10 +44,7 @@ namespace NinjaTrader.NinjaScript.Strategies return; if (rsi[0] > rsi[5] && Close[0] < Close[5]) - { - int quantity = (int)Math.Floor(100000 / Close[0]); - EnterLong(quantity); - } + EnterLong(); if (Position.MarketPosition == MarketPosition.Long && rsi[0] > 70.0) ExitLong();