mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-24 13:38:05 +00:00
[CodeFactor] Apply fixes to commit 0606491
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user