[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
@@ -93,7 +93,7 @@ public sealed class CoppockValidationTests(ITestOutputHelper output)
double startPrice = 100.0;
int n = 60;
double[] prices = new double[n];
for (int i = 0; i < n; i++) { prices[i] = startPrice + i * 0.5; }
for (int i = 0; i < n; i++) { prices[i] = startPrice + (i * 0.5); }
var spanOut = new double[n];
Coppock.Batch(prices, spanOut, longRoc: 5, shortRoc: 4, wmaPeriod: 4);
@@ -114,7 +114,7 @@ public sealed class CoppockValidationTests(ITestOutputHelper output)
double startPrice = 200.0;
int n = 60;
double[] prices = new double[n];
for (int i = 0; i < n; i++) { prices[i] = startPrice - i * 0.5; }
for (int i = 0; i < n; i++) { prices[i] = startPrice - (i * 0.5); }
var spanOut = new double[n];
Coppock.Batch(prices, spanOut, longRoc: 5, shortRoc: 4, wmaPeriod: 4);