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;
|
IsInstantiatedOnEachOptimizationIteration = true;
|
||||||
|
|
||||||
RSIPeriod = 3;
|
RSIPeriod = 3;
|
||||||
RSISmoothing = 1;
|
|
||||||
StreakRSIPeriod = 2;
|
StreakRSIPeriod = 2;
|
||||||
StreakRSISmoothing = 1;
|
|
||||||
PercentRankPeriod = 100;
|
PercentRankPeriod = 100;
|
||||||
LongTermTrendPeriod = 200;
|
LongTermTrendPeriod = 200;
|
||||||
ShortTermTrendPeriod = 5;
|
ShortTermTrendPeriod = 5;
|
||||||
}
|
}
|
||||||
else if (State == State.DataLoaded)
|
else if (State == State.DataLoaded)
|
||||||
{
|
{
|
||||||
connorsRSI = ConnorsRSI(RSIPeriod, RSISmoothing, StreakRSIPeriod, StreakRSISmoothing, PercentRankPeriod);
|
connorsRSI = ConnorsRSI(RSIPeriod, StreakRSIPeriod, PercentRankPeriod);
|
||||||
|
|
||||||
longTermTrend = SMA(LongTermTrendPeriod);
|
longTermTrend = SMA(LongTermTrendPeriod);
|
||||||
shortTermTrend = SMA(ShortTermTrendPeriod);
|
shortTermTrend = SMA(ShortTermTrendPeriod);
|
||||||
@ -79,27 +77,19 @@ namespace NinjaTrader.NinjaScript.Strategies
|
|||||||
public int RSIPeriod { get; set; }
|
public int RSIPeriod { get; set; }
|
||||||
|
|
||||||
[NinjaScriptProperty]
|
[NinjaScriptProperty]
|
||||||
[Display(Name = "RSI Smoothing", GroupName = "ConnorsRSI Bot", Order = 2)]
|
[Display(Name = "Streak RSI Period", GroupName = "ConnorsRSI Bot", Order = 2)]
|
||||||
public int RSISmoothing { get; set; }
|
|
||||||
|
|
||||||
[NinjaScriptProperty]
|
|
||||||
[Display(Name = "Streak RSI Period", GroupName = "ConnorsRSI Bot", Order = 3)]
|
|
||||||
public int StreakRSIPeriod { get; set; }
|
public int StreakRSIPeriod { get; set; }
|
||||||
|
|
||||||
[NinjaScriptProperty]
|
[NinjaScriptProperty]
|
||||||
[Display(Name = "Streak RSI Smoothing", GroupName = "ConnorsRSI Bot", Order = 4)]
|
[Display(Name = "Percent Rank Period", GroupName = "ConnorsRSI Bot", Order = 3)]
|
||||||
public int StreakRSISmoothing { get; set; }
|
|
||||||
|
|
||||||
[NinjaScriptProperty]
|
|
||||||
[Display(Name = "Percent Rank Period", GroupName = "ConnorsRSI Bot", Order = 5)]
|
|
||||||
public int PercentRankPeriod { get; set; }
|
public int PercentRankPeriod { get; set; }
|
||||||
|
|
||||||
[NinjaScriptProperty]
|
[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; }
|
public int LongTermTrendPeriod { get; set; }
|
||||||
|
|
||||||
[NinjaScriptProperty]
|
[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; }
|
public int ShortTermTrendPeriod { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user