[CodeFactor] Apply fixes to commit 0606491

This commit is contained in:
codefactor-io
2026-03-12 19:37:50 +00:00
parent 060649192f
commit 8f79257155
384 changed files with 1197 additions and 1215 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ public class ApzTests
// Generate 9 corrections with isNew=false (different values)
for (int i = 0; i < 9; i++)
{
var correctionBar = new TBar(tenthBar.Time, tenthBar.Open + i, tenthBar.High + i * 2, tenthBar.Low - i, tenthBar.Close + i, tenthBar.Volume);
var correctionBar = new TBar(tenthBar.Time, tenthBar.Open + i, tenthBar.High + (i * 2), tenthBar.Low - i, tenthBar.Close + i, tenthBar.Volume);
apz.Update(correctionBar, isNew: false);
}
@@ -383,7 +383,7 @@ public sealed class ApzValidationTests : IDisposable
}
else
{
ema = alpha * bar.Close + (1 - alpha) * ema;
ema = (alpha * bar.Close) + ((1 - alpha) * ema);
}
emaResults.Add(ema);