Below is a research note, not a trading recommendation.
All features refer exclusively to market-data that can be streamed in real-time (trades + L2 quotes).
The forecast horizon we target is 1–5 minutes.
Throughout I write “𝜏” for the prediction horizon (60-300 s).
────────────────────────────────────────────────────────────────────────
FEATURE 1 — “Adaptive Spread-Z”
Cointegrated-pair residual with dynamic hedge ratio
Idea
• Pick a liquid “parent” coin X (e.g. BTC-PERP) and a highly correlated “satellite” Y (e.g. ETH-PERP).
• Estimate the hedge ratio βₜ with a Kalman filter (state-space: hedge ratio is the latent state, AR(1) drift).
• Compute residual rₜ = log Pᵧₜ – βₜ log Pₓₜ.
• Feature fₜ = z(rₜ | window = w₁)= (rₜ – μₜ)/σₜ where μₜ, σₜ come from an EWMA with half-life h (≪ structural-break horizon).
• Hypothesis: |fₜ|≫1 forecasts mean-reversion of r over 𝜏.
Instrument-selection protocol
- Universe = top-N perpetuals by 30-day ADV.
- For each ordered pair (X,Y) compute rolling Kendall-τ rank corr (24 h, 1 s bars).
- Keep pairs in top decile of corr stability (low var of corr), but re-test weekly → drop pair if corr collapses (structural-break guard).
Validation protocol
• Walk-forward: 1-week training of Kalman hyper-params → 1-day out-of-sample → slide.
• Across all walk-forwards, collect distribution of residual half-life (estimated by AR(1) ρ) to verify expected reversion is shorter than 𝜏.
• White’s reality-check / SPA test versus “drift-only” benchmark to control data-snooping.
• Stress scenarios: re-compute P&L with hedge ratio frozen 1 h before major events (regime-switch test).
• Outlier handling: Winsorise f at ±5; reject trades when |rₜ|>p99 of 30-day history (likely structural break).
Risks
• β explodes during cascading liquidations → disable feature when Kalman filter state var > threshold.
────────────────────────────────────────────────────────────────────────
FEATURE 2 — “Flow-Divergence Imbalance”
Differential signed-volume surprise across a pair
Idea
• For coins X and Y chosen as above, compute CumSignedVolₜ(𝛿) = Σ_{t-𝛿}^{t} sgn(trade)·size.
• Let ΔFlowₜ = CumSignedVolₜˣ(𝛿) – αₜ CumSignedVolₜʸ(𝛿) where αₜ scales by ADV ratio.
• Feature fₜ = ΔFlowₜ – EWMA(ΔFlow, λ).
Hypothesis: if flow imbalance is large in X vs Y but prices haven’t diverged proportionally, Y’s price catches-up within 𝜏.
Computation details
𝛿 = few seconds; λ chosen so variance(f) ≈ constant across regimes.
Use quote-mid changes < ε to assert “price hasn’t moved yet”.
Validation protocol
- Correlate fₜ with future ΔPriceₜ+𝜏 = rᵧ – βrₓ to check directional power.
- Bucket fₜ into quintiles; plot average subsequent spread move.
- Purge overlapping events (Barroso-Santa Clara method) to remove serial dependence.
- Re-run after shuffling trade signs (placebo) → expect power to vanish.
- Sensitivity: vary 𝛿; require monotone decay in IC as 𝛿 shrinks to 0 (microstructure noise test).
Risk controls
• Extreme order-book imbalances caused by exchange outages: veto trades when top-of-book depth < p5 of 7-day distribution.
────────────────────────────────────────────────────────────────────────
FEATURE 3 — “Micro-Lead/Lag Anomaly”
Short-lived latency arbitrage in highly-correlated tick streams
Idea
• For each ordered pair (L,R) run sliding-window cross-correlation of 1-tick returns; identify lag ℓ* maximizing corr (ℓ* > 0 → L leads).
• When corr > c₀ and ℓ* is stable (mode of last m windows unchanged), trigger:
feature fₜ = return_Lₜ (0, ℓ*) → expected return_Rₜ+ℓ* over 𝜏.
Instrument selection
Pairs where historical lead-lag has been persistent for ≥k days. Typically BTC leads small-cap alts or spot leads perp when funding flips.
Validation protocol
• Use high-precision timestamps; eliminate observations during reported exchange latency spikes.
• Train on first 90% of days, score on last 10%.
• Use bootstrapped paired-tick resampling (Kirilenko et al. style) to build CI of IC; reject if lower bound ≤0.
• Regime change guard: if rolling ℓ* shifts by >1 tick for >q% of the last hour ⇒ suspend feature.
Structural break mitigation
Adaptive forgetting factor for cross-corr; shrink ℓ* to 0 when signal/noise < threshold.
────────────────────────────────────────────────────────────────────────
FEATURE 4 — “Cross-Sectional Residual Z-Score”
High-freq factor model dispersion reversion
Idea
• Build 1-minute return matrix R (M instruments × T minutes).
• Fit dynamic PCA with shrinkage (Ledoit-Wolf) to last H minutes, keep top K factors explaining ≥80 % variance.
• Compute idiosyncratic residuals ε_{i,t}.
• Feature f_{i,t} = ε_{i,t}/σ̂_i where σ̂_i is EWMA volatility of ε.
Hypothesis: extreme |f| mean-revert over 𝜏.
Outlier handling
• Robust scale estimator (MAD) instead of std, capped at p99.
• Instruments whose intraday vol >5× median or whose spreads > median×3 are excluded from universe until metrics normalise.
Validation protocol
• Purged K-fold forward-chaining CV: split in chronological folds; inside each simulate daily recalibration of PCA.
• Evaluate IC for each fold; run Bayesian hierarchical model to pool IC estimates, ensuring no single day dominates.
• Stress: re-run after removing BTC & ETH from factor set → check stability.
Structural breaks
• Factor line-up updated every 30 min; if eigenvalue drop-off slope changes > threshold, shrink K.
• Monitor condition number; if it spikes, halt feature (break detected).
────────────────────────────────────────────────────────────────────────
FEATURE 5 — “Multi-Venue Basis Shock”
Same-asset price gap across exchanges
Idea
• For a given coin C, track mid-prices on two top venues A and B.
• Define basis bₜ = log P𝐴ₜ – log P𝐵ₜ.
• Compute rolling EWMA mean μₜ and vol σₜ.
• Feature fₜ = (bₜ – μₜ)/σₜ.
Hypothesis: for liquid pairs the cross-venue basis snaps back within 𝜏.
Why relative-value? Because this is effectively the spread between two linear instruments (same underlying, different venue).
Validation protocol
• Only evaluate when both books display depth ≥D (e.g. $500k) inside ±2 bps.
• Instrument outlier filter: ignore f if either venue spread > p95.
• Test across venues clusters (US vs offshore) separately.
• Use survival analysis to measure time-to-zero of bₜ after extreme |f|; require median <𝜏.
• Back-test with latency injected (simulate 50–200 ms delay) to verify robustness to posting lag.
Structural-break guard
• If μₜ drifts >2 σ in same direction for >k minutes (possible fiat on-ramp freeze, capital controls), mark regime “broken” and stop trading.
────────────────────────────────────────────────────────────────────────
General statistical precautions (apply to every feature)
-
Look-ahead bias
• Generate bars from raw trades in real-time order; features computed only on information with timestamps < t.
-
Multiple-testing control
• Holm–Bonferroni on the family of IC tests; false discovery rate < 5 %.
-
Non-stationarity
• Use rolling or exponential estimators with half-lives chosen so that parameter risk < forecast horizon gain.
• For any parameter θ, log var(θ)/θ²; if > preset threshold, treat as unstable and discard forecast.
-
Fat-tails
• Fit EVT tail to forecast distribution; size forecasts proportional to (1 – TailProb).
• Cap position if model’s ES at 99.5 % > allowed intra-minute VaR.
-
Transaction-cost awareness
• Slippage model calibrated per venue per coin using mid-to-fill statistics; any feature must clear cost ×2 to pass.
-
Adversarial microstructure
• Run “toxicity” score: if VPIN or Kyle‐λ > 95-percentile, suppress signals (possible informed flow).
────────────────────────────────────────────────────────────────────────
Take-aways
• Short-horizon relative-value in crypto is feasible but fragile; structural breaks (exchange outages, regime shifts in correlations) dominate statistical error.
• Each feature above embeds explicit break-detection and real-time risk throttles – those must be treated as first-class citizens, not after-thoughts.
• Validation must be walk-forward and stress-oriented; classical random CV is meaningless in heavy-autocorrelated, path-dependent microstructure data.