If you trade mean reversion, whether it's price snapping back to a moving average, an oscillator returning to the middle, or a spread between two pairs, one useful question is how long reversion usually takes. The Ornstein-Uhlenbeck process is a simple model for a quantity that's pulled back toward a mean, and fitting it gives a number called the half-life: the typical time for a deviation to shrink by half.
The usual quick estimate is a regression. Take the series (say, distance from a moving average), and regress the change in each bar on the previous bar's value. If the slope is negative, there's a pull toward the mean, and the half-life is roughly minus the natural log of 2 divided by that slope. If the slope is near zero or positive, there's no meaningful reversion in that sample.
The half-life is practical in a few ways. It gives a natural scale for lookback periods: a moving average or z-score window far longer or shorter than the half-life probably doesn't match how the series behaves. It suggests a time stop: if a trade hasn't reverted after a few half-lives, the relationship may have changed. And it's a reality check on targets, since a half-life of 200 bars on M1 means waiting hours for the move you expect.
The cautions are the usual ones. The estimate is noisy, especially on short samples, and it can change a lot between regimes. A series can look mean-reverting in one period and trending in the next. Computing it on a rolling window and watching how stable it is tells you a lot about whether the reversion is something you can rely on.
Has anyone here used half-life estimates to set lookbacks or time stops? I'd be curious how stable you've found it on intraday data.
Mean-reversion half-life from an Ornstein-Uhlenbeck fit: how long a stretched spread takes to come back
-
Shadow Trader
- Posts: 6144
- Joined: Wed Sep 09, 2026 5:19 pm