diff --git a/strategies/trend-follow/BollingerBandTrendFollow/scripts/BollingerBandTrendFollowStrategy.cs b/strategies/trend-follow/BollingerBandTrendFollow/scripts/BollingerBandTrendFollowStrategy.cs index daa1c65..598322e 100644 --- a/strategies/trend-follow/BollingerBandTrendFollow/scripts/BollingerBandTrendFollowStrategy.cs +++ b/strategies/trend-follow/BollingerBandTrendFollow/scripts/BollingerBandTrendFollowStrategy.cs @@ -57,8 +57,8 @@ protected override void OnBarClosed() double stdLastValue = Indicators.StandardDeviation(Bars.ClosePrices, Length, MovingAverageType.Simple).Result.LastValue; double smaLastValue = Indicators.SimpleMovingAverage(Bars.ClosePrices, Length).Result.LastValue; - double upperBand = smaLastValue + MultiplierUpper * stdLastValue; - double lowerBand = smaLastValue + MultiplierLower * stdLastValue; + double upperBand = smaLastValue + (MultiplierUpper * stdLastValue); + double lowerBand = smaLastValue - (MultiplierLower * stdLastValue); string label = $"BollingerBandTrendFollow_cBot-{Symbol.Name}"; @@ -97,4 +97,4 @@ protected override void OnBarClosed() } } } -} \ No newline at end of file +}