Remove RSI smoothing parameters from ConnorsRSI strategy
This commit is contained in:
parent
975bee7b6c
commit
92c08fbc7a
@ -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; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user