mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-24 05:28:05 +00:00
[CodeFactor] Apply fixes to commit 0606491
This commit is contained in:
@@ -147,7 +147,7 @@ public class NmaTests
|
||||
nma.Update(series[^1]);
|
||||
for (int c = 0; c < 5; c++)
|
||||
{
|
||||
nma.Update(new TValue(series[^1].Time, series[^1].Value * (1.0 + c * 0.01)), isNew: false);
|
||||
nma.Update(new TValue(series[^1].Time, series[^1].Value * (1.0 + (c * 0.01))), isNew: false);
|
||||
}
|
||||
var corrected = nma.Update(new TValue(series[^1].Time, series[^1].Value + 2.0), isNew: false);
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ public class NmaValidationTests
|
||||
double lastNma = 0;
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
double price = 100.0 + i * 0.5;
|
||||
double price = 100.0 + (i * 0.5);
|
||||
lastNma = nma.Update(new TValue(DateTime.UtcNow.AddMinutes(i), price)).Value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user