From 5562b055893b998b8e21c5edb67ee17aa5698789 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Sat, 31 Aug 2024 06:11:53 -0700 Subject: [PATCH] Remove equal position sizing from RSI divergence strategy --- strategies/rsi-divergence/RSIDivergenceBot.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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();