Remove RSI smoothing parameter from Triple RSI Drop strategy

This commit is contained in:
moshferatu 2024-12-10 10:38:01 -08:00
parent 1dc2ccad46
commit eade9180a6

View File

@ -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