mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-21 03:58:04 +00:00
[CodeFactor] Apply fixes to commit 0606491
This commit is contained in:
@@ -159,7 +159,7 @@ public class SsfdspValidationTests
|
||||
|
||||
for (int i = 0; i < 200; i++)
|
||||
{
|
||||
double price = 100 + 10 * Math.Sin(frequency * i);
|
||||
double price = 100 + (10 * Math.Sin(frequency * i));
|
||||
ssfdsp.Update(new TValue(DateTime.UtcNow.AddSeconds(i), price));
|
||||
if (i >= 80) // After warmup
|
||||
{
|
||||
@@ -337,7 +337,7 @@ public class SsfdspValidationTests
|
||||
|
||||
for (int i = 0; i < 1000; i++)
|
||||
{
|
||||
double price = 100 + 10 * Math.Sin(2 * Math.PI * i / 40);
|
||||
double price = 100 + (10 * Math.Sin(2 * Math.PI * i / 40));
|
||||
ssfdsp.Update(new TValue(DateTime.UtcNow.AddSeconds(i), price));
|
||||
|
||||
if (i >= 100) // After warmup
|
||||
|
||||
Reference in New Issue
Block a user