MQL5 Algo Trading: post #3986 — TG.ME

Hurst Exponent Regime Switch is a regime filter that estimates a rolling Hurst exponent (H) from price using classic rescaled-range (R/S) analysis, then plots it as a 0–1 oscillator with threshold-based state changes.

Per bar, the lookback series is split into multiple chunk sizes. For each chunk, the range of cumulative mean-adjusted deviation is scaled by its standard deviation. Average R/S per chunk size is regressed in log-log space; the slope is clamped to [0,1] as H and optionally smoothed with a short EMA.

Interpretation is straightforward: H near 0.5 implies random-walk behavior, above the trend threshold (default 0.55) indicates persistence, and below the reversion threshold (default 0.45) signals anti-persistence. Primary inputs: lookback 200, min chunk 8, chunk steps 6, smoothing 5, applied price close. Best behavior typically appears on ...

👉 Read | AlgoBook | @mql5dev
❤20👍7👌3👀3
August 29, 2026 11.7K 13