diff --git a/strategies/internal-bar-strength-band/InternalBarStrengthBandBot.cs b/strategies/internal-bar-strength-band/InternalBarStrengthBandBot.cs index 31aaec6..0d2a417 100644 --- a/strategies/internal-bar-strength-band/InternalBarStrengthBandBot.cs +++ b/strategies/internal-bar-strength-band/InternalBarStrengthBandBot.cs @@ -25,6 +25,7 @@ namespace NinjaTrader.NinjaScript.Strategies LowerBandMultiplier = 2.5; IBSEntryThreshold = 0.3; + LongTermTrendPeriod = 200; } else if (State == State.DataLoaded) { @@ -33,7 +34,7 @@ namespace NinjaTrader.NinjaScript.Strategies ibs = InternalBarStrength(); highestHigh = MAX(High, 10); highMinusLowAverage = SMA(highMinusLow, 25); - longTermTrend = SMA(200); // Regime filter. + longTermTrend = SMA(LongTermTrendPeriod); } } @@ -64,5 +65,9 @@ namespace NinjaTrader.NinjaScript.Strategies [NinjaScriptProperty] [Display(Name = "IBS Entry Threshold", GroupName = "Internal Bar Strength Band Bot", Order = 2)] public double IBSEntryThreshold { get; set; } + + [NinjaScriptProperty] + [Display(Name = "Long-Term Trend Period", GroupName = "Internal Bar Strength Band Bot", Order = 3)] + public int LongTermTrendPeriod { get; set; } } }