Skip to content

Commit

Permalink
Correction in BollingerBandTrendFollowStrategy.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LucyFreelanceDeveloper authored Jun 9, 2024
1 parent f3b7488 commit 8fc3334
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}";

Expand Down Expand Up @@ -97,4 +97,4 @@ protected override void OnBarClosed()
}
}
}
}
}

0 comments on commit 8fc3334

Please sign in to comment.