mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-25 13:58:04 +00:00
[CodeFactor] Apply fixes to commit 0606491
This commit is contained in:
@@ -394,12 +394,12 @@ public class SgmaTests
|
||||
double[] prices = new double[20];
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
prices[i] = 100 + i * 5;
|
||||
prices[i] = 100 + (i * 5);
|
||||
}
|
||||
|
||||
for (int i = 10; i < 20; i++)
|
||||
{
|
||||
prices[i] = 145 - (i - 10) * 5;
|
||||
prices[i] = 145 - ((i - 10) * 5);
|
||||
}
|
||||
|
||||
var sgma2 = new Sgma(5, 2);
|
||||
|
||||
@@ -101,7 +101,7 @@ public class SgmaValidationTests
|
||||
double[] prices = new double[20];
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
prices[i] = 100.0 + i * 10.0; // Linear: 100, 110, 120, ..., 290
|
||||
prices[i] = 100.0 + (i * 10.0); // Linear: 100, 110, 120, ..., 290
|
||||
}
|
||||
|
||||
var sgma0 = new Sgma(period, 0);
|
||||
|
||||
Reference in New Issue
Block a user