[CodeFactor] Apply fixes

This commit is contained in:
codefactor-io
2024-11-03 23:59:03 +00:00
parent 16e5a9a392
commit 2b62aaad6c
10 changed files with 8 additions and 17 deletions
+2 -3
View File
@@ -38,7 +38,6 @@ namespace QuanTAlib;
///
/// Note: Returns three values: upper, middle, and lower bands
/// </remarks>
[SkipLocalsInit]
public sealed class Fcb : AbstractBase
{
@@ -134,8 +133,8 @@ public sealed class Fcb : AbstractBase
}
// Apply smoothing to bands
_upperBand = _smoothing * _upperEma + (1 - _smoothing) * BarInput.High;
_lowerBand = _smoothing * _lowerEma + (1 - _smoothing) * BarInput.Low;
_upperBand = (_smoothing * _upperEma) + ((1 - _smoothing) * BarInput.High);
_lowerBand = (_smoothing * _lowerEma) + ((1 - _smoothing) * BarInput.Low);
_middleBand = (_upperBand + _lowerBand) / 2;
IsHot = _index >= WarmupPeriod;