Indicators: Rolling Return Autocorrelation Regime Oscillator

 

Rolling Return Autocorrelation Regime Oscillator:

Tracks lag-N return autocorrelation over a rolling window as a live regime oscillator, distinguishing trending (positive autocorrelation) from mean-reverting (negative autocorrelation) market conditions. Plots a smoothed reading against dynamically-calculated statistical significance bands (±Z/√N), so you can tell a genuine regime shift from window-size noise — comparable across any symbol or timeframe since it works on returns, not raw price.

Rolling Return Autocorrelation Regime Oscillator

Author: Adeolu Kayode Gbadebo