Research question
This project studies whether short-horizon BTCUSDT returns contain stable intraday mean-reversion structure. The focus is not a full trading system, but the empirical behavior of return EMAs, MACD-style oscillators, and the stability of their predictive correlations over time.
Return EMA features and correlation structure
Let rt denote the 1-minute log return of the BTCUSDT mid price. I generate exponential moving averages of returns for halflives λ ∈ {1, 3, 10, 30, 100, 300, 1000}, and compute Spearman correlations with future returns at 1, 5, and 15-minute horizons using BTCUSDT data for 2023.
EMA_h(t) = α_h r_t + (1 − α_h) EMA_h(t − 1),
α_h = 1 − 2^(-1/h)
Shorter halflives show stronger instantaneous correlation with raw returns, while medium halflives such as 10 and 30 minutes give the best predictive power for 5-minute forward returns. Longer halflives, such as 100 to 1000, behave like low-pass filters, becoming smoother and closer to Gaussian in their centers while still retaining heavy tails.
Distributional diagnostics
Before studying correlations, I check how far the features are from Gaussianity. Jarque-Bera tests on all EMAs and future returns give extremely large statistics and p-values numerically equal to zero. For the raw, non-winsorized series, kurtosis is very high, roughly 22–371 for EMAs and 70–261 for future returns, with noticeable skewness.
After 0.5% top/bottom winsorization, kurtosis falls but remains far above the Gaussian value of 3. This suggests that non-normality is structural, driven by volatility clustering, jumps, and microstructure noise, rather than only a handful of outliers.
QQ-plots versus the normal distribution for short-, medium-, and long-halflife EMAs. As halflife increases, the center becomes more Gaussian, but tail deviations remain large.
Cross-correlation structure
The EMA correlation matrix shows very high correlations between nearby halflives, such as ρ(ret_ema_h10, ret_ema_h30) ≈ 0.87, because they are all smoothed versions of the same return process. Correlation decreases as the halflife gap widens: short EMAs react mostly to microstructure noise, while long EMAs track slow intraday drift.
Correlations between EMAs and future returns are small but systematically negative. For 1-minute horizons, Spearman correlations are around -0.02 to -0.03. For 5-minute horizons, they increase in magnitude to roughly -0.04 to -0.06. For 15-minute horizons, they are slightly more negative still. Predictive power therefore increases with both EMA halflife and forecast horizon.
Daily correlation stability
Based on the 5-minute future return, EMA10 has one of the strongest negative correlations, so I use ret_ema_h10 for daily stability analysis. For each trading day in 2023, I compute the Spearman correlation between ret_ema_h10 and fwd_ret_5m over the 1440 one-minute observations for that day.
Numerically, the original non-winsorized data gives an average daily Spearman correlation of approximately -0.0815 with standard deviation around 0.054. After 0.5% winsorization of both variables, the mean and standard deviation are essentially unchanged, confirming that the rank-based correlation is robust to tail clipping.
The daily time-series plot shows that correlations are negative on most days, typically between -0.15 and 0, with occasional excursions down to about -0.25. The signal is weak but persistent, and the correlation distribution across days is reasonably stable.
Oscillator construction and predictive power
I construct oscillators of the form:
Osc(t; λ1, λ2, A) = EMA_λ1(t) − A · EMA_λ2(t)
where λ1, λ2 ∈ {1, 3, 10, 30, 100, 300, 1000} and A ∈ {0.5, 1, 2}. These oscillators compare a shorter-term EMA to a longer-term trend and are analogous to MACD-type structures.
Using 2023 data, I compute Spearman correlations between each oscillator and future 1, 5, and 15-minute returns. All correlations are negative, indicating that these oscillators behave as mean-reversion signals: large positive oscillator values are followed, on average, by negative future returns, and vice versa.
- Very short-halflife oscillators, such as λ1 = 1 versus λ2 = 10 or 30, have relatively weak correlations, around -0.02 to -0.05.
- Medium/long-halflife combinations, such as 30 versus 100 and 100 versus 300, produce the strongest predictive power.
- For 2023, EMA30 − A·EMA100 with A near 1 reaches about -0.06 correlation at the 5-minute horizon.
- EMA100 − A·EMA300 with A near 0.5 reaches about -0.07 correlation at the 15-minute horizon, the strongest overall result.
2023 vs 2024 regime difference
Repeating the same oscillator analysis on 2024 data gives the same qualitative pattern: correlations remain negative, stronger for longer horizons, and strongest for medium/long-halflife combinations. However, magnitudes are systematically smaller. A 30/100 oscillator has about -0.036 correlation with 5-minute returns in 2024 versus roughly -0.062 in 2023. A 100/300 oscillator has about -0.044 correlation with 15-minute returns in 2024 versus roughly -0.071 in 2023.
Across oscillators and horizons, 2024 correlations are typically about 40–60% weaker in magnitude. This indicates that the sign and relative ranking of oscillator structures are stable, but short-term mean reversion in BTCUSDT became materially weaker in 2024.
Sliding-window search for best oscillator parameters
To go beyond fixed-parameter correlations, I run a 1–30 day sliding-window search. For each day and each window length L ∈ {1, ..., 30}, I restrict the data to the trailing L days, compute the Spearman correlation between each candidate oscillator and 5-minute forward returns, and select the oscillator with highest absolute correlation.
The results show regime-like behavior rather than random thrashing:
- λ2 = 1000 dominates persistently as the slow leg.
- λ1 typically oscillates between 10 and 30.
- A switches between discrete values but prefers A = 0.5 and A = 2.
- The optimal window length often saturates at 30 days.
This is consistent with a picture where underlying return dynamics evolve slowly and the optimal oscillator lives in a low-dimensional manifold: medium versus ultra-long EMA, with discrete amplitude regimes.
Stability of the two dominant EMA pairs
The two most common best-performing pairs in the sliding-window search are (λ1, λ2) = (30, 1000) and (λ1, λ2) = (10, 1000). For these pairs, I track the optimal amplitude A ∈ {0.5, 1, 2}, restricted to windows where that pair is selected as best.
The combined stability plot shows long intervals where A remains at 0.5 or 2, with fewer periods at A = 1. This suggests that the oscillator structure itself is stable, but the strength of the short-versus-long contrast shifts between low- and high-amplitude regimes.
Markov transition structure for amplitude regimes
Treating the amplitude A ∈ {0.5, 1.0, 2.0} as a discrete state, I estimate Markov transition matrices from the time series of best-A choices. Rows denote the current amplitude and columns denote the next amplitude, ordered as 0.5, 1.0, and 2.0.
All windows pooled
P =
[ 0.94 0.04 0.02
0.25 0.64 0.11
0.06 0.08 0.86 ]
The pooled matrix shows very high persistence on the diagonal, particularly for A = 0.5 and A = 2. The A = 1 state is less persistent and behaves like a transient middle state that either reverts to 0.5 or transitions toward 2.
Dominant EMA pairs
Pair (λ1, λ2) = (30, 1000)
P(30,1000) =
[ 0.90 0.05 0.05
0.27 0.73 0.00
0.07 0.03 0.90 ]
Pair (λ1, λ2) = (10, 1000)
P(10,1000) =
[ 0.93 0.06 0.01
0.70 0.10 0.20
0.07 0.14 0.79 ]
These matrices imply two highly persistent regimes: a low-amplitude regime at A = 0.5 and a high-amplitude regime at A = 2. The A = 1 state acts as an intermediate or boundary state with relatively higher exit probability. This supports the interpretation that BTCUSDT short-horizon return structure exhibits slow-moving discrete states that affect the optimal oscillator amplitude.
Summary and interpretation
Combining the fixed-parameter analysis, sliding-window search, and Markov structure gives the following picture.
- EMAs: Return EMAs across halflives are strongly non-Gaussian and heavy-tailed. Medium halflives, especially 10 to 30 minutes, provide the best trade-off between noise filtering and responsiveness. They show weak but persistent negative correlation with short-horizon future returns.
- Oscillators: Linear combinations of EMAs of the form EMAλ1 − A EMAλ2 produce weak mean-reversion signals whose strength increases with forecast horizon from 1 to 5 to 15 minutes. The best performers contrast medium and long halflives, with moderate amplitudes A ∈ {0.5, 1}.
- Regime differences, 2023 vs 2024: The same structures work in both years, but the 2024 correlations are about 40–60% weaker. This indicates a genuine regime shift in short-term dynamics.
- Sliding-window structure: A 1–30 day sliding search does not produce chaotic parameter flipping. Instead, λ2 = 1000 is almost always optimal as the slow leg, λ1 remains in a narrow medium band around 10 or 30, amplitudes concentrate on A ∈ {0.5, 2}, and the optimal window length saturates at 30 days. This is consistent with a low-dimensional, slowly evolving regime structure.
- Markov regimes: Modeling A as a Markov chain shows highly persistent low- and high-amplitude states, especially for the dominant (30, 1000) and (10, 1000) EMA pairs. This strongly suggests that short-horizon mean-reversion strength itself is regime-dependent.
Further research
- Compute stationary distributions of the Markov chains for A, both pooled and pair-specific, to quantify long-run regime occupancy and mean sojourn times.
- Extend the oscillator search to continuous A by optimizing a linear regression of future returns on EMAλ1 and EMAλ2, rather than using a discrete grid.
- Check whether transitions in the amplitude Markov chain align with observable volatility regimes, liquidity shifts, or macro and crypto-specific events.
- Evaluate whether regime-conditioned oscillators, using different (λ1, λ2, A) in low- versus high-volatility regimes, improve out-of-sample performance compared to a single global oscillator.
- Fit Hidden Markov Models jointly on A and (λ1, λ2) dynamics, or directly on oscillator and future-return pairs, to learn latent states and transition structure in a more formal probabilistic framework.
- Compare BTCUSDT results to other large crypto pairs and to FX futures to test whether the observed EMA/oscillator regime structure is asset-specific or more universal.