more volatilty

This commit is contained in:
Miha Kralj
2026-02-02 13:42:47 -08:00
parent dde19f2226
commit a03d7aa0ce
89 changed files with 21551 additions and 438 deletions
+2 -2
View File
@@ -105,7 +105,7 @@ public sealed class Eom : ITValuePublisher
if (priceRange > 0 && volume > 0)
{
double boxRatio = (volume / _volumeScale) / priceRange;
rawEom = boxRatio != 0 ? midPointChange / boxRatio : 0.0;
rawEom = Math.Abs(boxRatio) > 0 ? midPointChange / boxRatio : 0.0;
}
else
{
@@ -293,7 +293,7 @@ public sealed class Eom : ITValuePublisher
if (priceRange > 0 && volume[i] > 0)
{
double boxRatio = (volume[i] / volumeScale) / priceRange;
rawEom[i] = boxRatio != 0 ? midPointChange / boxRatio : 0.0;
rawEom[i] = Math.Abs(boxRatio) > 0 ? midPointChange / boxRatio : 0.0;
}
else
{