[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
+6 -6
View File
@@ -172,8 +172,8 @@ public class VortexTests
// VI- = 17 / 27 ≈ 0.630
Assert.True(vortex.IsHot);
Assert.True(Math.Abs(vortex.ViPlus.Value - 32.0 / 27.0) < 0.001);
Assert.True(Math.Abs(vortex.ViMinus.Value - 17.0 / 27.0) < 0.001);
Assert.True(Math.Abs(vortex.ViPlus.Value - (32.0 / 27.0)) < 0.001);
Assert.True(Math.Abs(vortex.ViMinus.Value - (17.0 / 27.0)) < 0.001);
}
[Fact]
@@ -205,8 +205,8 @@ public class VortexTests
for (int i = 0; i < 50; i++)
{
double price = basePrice + i * 2; // Strong uptrend
var bar = new TBar(baseTime + i * 60000, price, price + 1, price - 0.5, price + 0.5, 1000);
double price = basePrice + (i * 2); // Strong uptrend
var bar = new TBar(baseTime + (i * 60000), price, price + 1, price - 0.5, price + 0.5, 1000);
vortex.Update(bar);
}
@@ -225,8 +225,8 @@ public class VortexTests
for (int i = 0; i < 50; i++)
{
double price = basePrice - i * 2; // Strong downtrend
var bar = new TBar(baseTime + i * 60000, price, price + 0.5, price - 1, price - 0.5, 1000);
double price = basePrice - (i * 2); // Strong downtrend
var bar = new TBar(baseTime + (i * 60000), price, price + 0.5, price - 1, price - 0.5, 1000);
vortex.Update(bar);
}