[CodeFactor] Apply fixes to commit 9697fac

This commit is contained in:
codefactor-io
2026-03-14 05:03:08 +00:00
parent 9697facfb4
commit e35ff7fa3f
164 changed files with 458 additions and 530 deletions
+2 -2
View File
@@ -203,7 +203,7 @@ public sealed class Coppock : ITValuePublisher
{
double oldPlain = plainSum;
plainSum = plainSum - prevWma + combined;
weightedSum = weightedSum - oldPlain + _wmaPeriod * combined;
weightedSum = weightedSum - oldPlain + (_wmaPeriod * combined);
coppockVal = weightedSum / _wmaNorm;
}
@@ -357,7 +357,7 @@ public sealed class Coppock : ITValuePublisher
{
double oldPlain = plainSum;
plainSum = plainSum - oldest + combined;
weightedSum = weightedSum - oldPlain + wmaPeriod * combined;
weightedSum = weightedSum - oldPlain + (wmaPeriod * combined);
coppockVal = weightedSum / wmaNorm;
}
wmaBuf[wmaH] = combined;