Free Rolling Hurst Exponent Calculator
Track how the Hurst exponent changes over time to detect regime shifts between trending and mean-reverting markets.
Typical range: 50-200 bars
What Is the Rolling Hurst Exponent?
The standard Hurst exponent gives you a single number for your entire dataset — useful, but it hides how the market regime changes over time. The rolling Hurst exponent applies the same R/S (Rescaled Range) analysis to a sliding window, producing a time series that shows exactly when the market transitions between trending, mean-reverting, and random-walk behavior.
This is critical for traders because strategies that work in trending markets (H > 0.5) fail in mean-reverting markets (H < 0.5), and vice versa. By tracking the rolling Hurst exponent, you can adapt your approach before a regime shift costs you money.
How to Read the Rolling Hurst Chart
- Rising Hurst (toward 1.0): The market is becoming more trending. Momentum strategies and cycle-following approaches work well. Breakouts are more likely to follow through.
- Falling Hurst (toward 0.0): The market is becoming more mean-reverting. Range-bound strategies, oscillator signals, and fading extremes work better. Breakouts are more likely to fail.
- Stable near 0.5: The market is behaving like a random walk. Neither trend-following nor mean-reversion has an edge. Reduce position sizes and wait for a clearer regime signal.
Choosing the Right Window Size
The window size determines how much history is used for each Hurst calculation. This is the most important parameter and involves a classic trade-off:
- Smaller windows (50-100 bars): More responsive to recent changes but noisier. Good for detecting quick regime shifts in intraday or short-term trading.
- Larger windows (150-300 bars): Smoother and more reliable but slower to react. Better for swing traders and position traders who need confirmed regime changes.
- Default (100 bars): A good balance for daily timeframe data. Represents roughly 5 months of trading activity.
A practical approach: run the calculator with multiple window sizes. If all windows agree on the regime direction, you have high-conviction. If they disagree, the regime is transitioning.
Practical Applications
Professional cycle analysts integrate rolling Hurst analysis into their workflow in several ways:
- Strategy selection: When Hurst is above 0.55, favor trend-following and cycle-projection strategies. When below 0.45, favor mean-reversion and oscillator-based approaches.
- Cycle reliability gauge: Detected cycles from the Cycle Period Finder are more reliable when the Hurst exponent is elevated. In random-walk regimes (H near 0.5), cycle projections are less dependable.
- Risk management: When Hurst is crossing below 0.5 (transitioning from trending to mean-reverting), reduce position sizes. Regime transitions are the most dangerous periods for any strategy.
- Volatility anticipation: Compression in the Hurst exponent (narrowing range over time) often precedes explosive moves. John Ehlers and other DSP practitioners note that this mirrors the principle of "compression precedes expansion."
Rolling Hurst vs Static Hurst
The static Hurst calculator gives you one number for the entire dataset. This is useful for characterizing the overall behavior of a market (e.g., "the S&P 500 has a Hurst exponent of 0.58 over the past 3 years"), but it tells you nothing about what is happening right now.
The rolling version reveals the dynamic story: when the regime shifted, how long each regime lasted, and what the current trajectory is. For active trading decisions, the rolling Hurst is far more actionable.