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
+1 -1
View File
@@ -196,7 +196,7 @@ public sealed class Atrp : AbstractBase
double atr = _state.E > ConvergenceThreshold ? _state.RawRma / (1.0 - _state.E) : _state.RawRma;
// Calculate ATRP: (ATR / Close) * 100
double atrp = close != 0.0 ? (atr / close) * 100.0 : double.NaN;
double atrp = Math.Abs(close) > 0 ? (atr / close) * 100.0 : double.NaN;
// Update state
if (isNew)