[CodeFactor] Apply fixes

This commit is contained in:
codefactor-io
2024-11-03 23:03:24 +00:00
parent c84a5dd4df
commit e60cf47d3a
43 changed files with 141 additions and 141 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ public class Hma : AbstractBase
double wmaFullResult = _wmaFull.Calc(Input).Value;
// Calculate 2*WMA(n/2) - WMA(n)
double intermediateResult = 2.0 * wmaHalfResult - wmaFullResult;
double intermediateResult = (2.0 * wmaHalfResult) - wmaFullResult;
// Calculate final WMA
var finalInput = new TValue(Input.Time, intermediateResult, Input.IsNew);