From 92c08fbc7abb578f73ae6107fb3c0ec7190e1163 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Thu, 9 Jan 2025 07:57:47 -0800 Subject: [PATCH] Remove RSI smoothing parameters from ConnorsRSI strategy --- strategies/connors-rsi/ConnorsRSIBot.cs | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/strategies/connors-rsi/ConnorsRSIBot.cs b/strategies/connors-rsi/ConnorsRSIBot.cs index d8e3b73..6c6bf99 100644 --- a/strategies/connors-rsi/ConnorsRSIBot.cs +++ b/strategies/connors-rsi/ConnorsRSIBot.cs @@ -37,16 +37,14 @@ namespace NinjaTrader.NinjaScript.Strategies IsInstantiatedOnEachOptimizationIteration = true; RSIPeriod = 3; - RSISmoothing = 1; StreakRSIPeriod = 2; - StreakRSISmoothing = 1; PercentRankPeriod = 100; LongTermTrendPeriod = 200; ShortTermTrendPeriod = 5; } else if (State == State.DataLoaded) { - connorsRSI = ConnorsRSI(RSIPeriod, RSISmoothing, StreakRSIPeriod, StreakRSISmoothing, PercentRankPeriod); + connorsRSI = ConnorsRSI(RSIPeriod, StreakRSIPeriod, PercentRankPeriod); longTermTrend = SMA(LongTermTrendPeriod); shortTermTrend = SMA(ShortTermTrendPeriod); @@ -79,27 +77,19 @@ namespace NinjaTrader.NinjaScript.Strategies public int RSIPeriod { get; set; } [NinjaScriptProperty] - [Display(Name = "RSI Smoothing", GroupName = "ConnorsRSI Bot", Order = 2)] - public int RSISmoothing { get; set; } - - [NinjaScriptProperty] - [Display(Name = "Streak RSI Period", GroupName = "ConnorsRSI Bot", Order = 3)] + [Display(Name = "Streak RSI Period", GroupName = "ConnorsRSI Bot", Order = 2)] public int StreakRSIPeriod { get; set; } [NinjaScriptProperty] - [Display(Name = "Streak RSI Smoothing", GroupName = "ConnorsRSI Bot", Order = 4)] - public int StreakRSISmoothing { get; set; } - - [NinjaScriptProperty] - [Display(Name = "Percent Rank Period", GroupName = "ConnorsRSI Bot", Order = 5)] + [Display(Name = "Percent Rank Period", GroupName = "ConnorsRSI Bot", Order = 3)] public int PercentRankPeriod { get; set; } [NinjaScriptProperty] - [Display(Name = "Long Term Trend Period", GroupName = "ConnorsRSI Bot", Order = 6)] + [Display(Name = "Long-Term Trend Period", GroupName = "ConnorsRSI Bot", Order = 4)] public int LongTermTrendPeriod { get; set; } [NinjaScriptProperty] - [Display(Name = "Short Term Trend Period", GroupName = "ConnorsRSI Bot", Order = 7)] + [Display(Name = "Short-Term Trend Period", GroupName = "ConnorsRSI Bot", Order = 5)] public int ShortTermTrendPeriod { get; set; } } }