From eade9180a6598f790e5e9ce7f7f9aa4e9cdfaec8 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Tue, 10 Dec 2024 10:38:01 -0800 Subject: [PATCH] Remove RSI smoothing parameter from Triple RSI Drop strategy --- strategies/triple-rsi-drop/TripleRSIDrop.cs | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/strategies/triple-rsi-drop/TripleRSIDrop.cs b/strategies/triple-rsi-drop/TripleRSIDrop.cs index e410bbc..2491fa0 100644 --- a/strategies/triple-rsi-drop/TripleRSIDrop.cs +++ b/strategies/triple-rsi-drop/TripleRSIDrop.cs @@ -23,7 +23,6 @@ namespace NinjaTrader.NinjaScript.Strategies LongTermTrendPeriod = 200; RSIPeriod = 5; - RSISmoothing = 1; ConsecutiveDays = 3; FirstDayRSI = 60.0; RSIEntry = 30.0; @@ -32,7 +31,7 @@ namespace NinjaTrader.NinjaScript.Strategies else if (State == State.DataLoaded) { longTermTrend = SMA(LongTermTrendPeriod); - rsi = RSI(RSIPeriod, RSISmoothing); + rsi = RSI(RSIPeriod, 1); AddChartIndicator(longTermTrend); AddChartIndicator(rsi); @@ -83,27 +82,22 @@ namespace NinjaTrader.NinjaScript.Strategies [NinjaScriptProperty] [Range(1, int.MaxValue)] - [Display(Name = "RSI Smoothing", GroupName = "Triple RSI Bot", Order = 3)] - public int RSISmoothing { get; set; } - - [NinjaScriptProperty] - [Range(1, int.MaxValue)] - [Display(Name = "Consecutive Days", GroupName = "Triple RSI Bot", Order = 4)] + [Display(Name = "Consecutive Days", GroupName = "Triple RSI Bot", Order = 3)] public int ConsecutiveDays { get; set; } [NinjaScriptProperty] [Range(0.0, 100.0)] - [Display(Name = "First Day RSI", GroupName = "Triple RSI Bot", Order = 6)] + [Display(Name = "First Day RSI", GroupName = "Triple RSI Bot", Order = 4)] public double FirstDayRSI { get; set; } [NinjaScriptProperty] [Range(0.0, 100.0)] - [Display(Name = "RSI Entry", GroupName = "Triple RSI Bot", Order = 7)] + [Display(Name = "RSI Entry", GroupName = "Triple RSI Bot", Order = 5)] public double RSIEntry { get; set; } [NinjaScriptProperty] [Range(0.0, 100.0)] - [Display(Name = "RSI Exit", GroupName = "Triple RSI Bot", Order = 8)] + [Display(Name = "RSI Exit", GroupName = "Triple RSI Bot", Order = 6)] public double RSIExit { get; set; } #endregion