2.83 Ehlers Was Building State-Space Models in TradeStation
Bitcoin state-space models are filters: a 20-bar band-pass has gain 1 and a 21-bar envelope delay, while a two-real-pole fit to it peaks at 32 bars.
Aligrithm is an independent research publication on systematic trading, quantitative research, market microstructure, and adaptive systems. Long-form essays, code notebooks, and architecture breakdowns across eight pillars, built for traders who care more about how markets behave than about hype.
More about the publication →Read in order. Each pillar walks you out of one trap with one new ability. The newest article is the worst place to begin.
Bitcoin state-space models are filters: a 20-bar band-pass has gain 1 and a 21-bar envelope delay, while a two-real-pole fit to it peaks at 32 bars.
VIX timing from the S&P's two-day RSI and overnight Bitcoin: RSI at or below 20 booked 178.60 points shorting the VIX future; the VIX's own RSI booked 90.81.
Edge half-life is a measured clock: a prediction-market gap keeps 56% at day 60, published anomalies keep 74% out of sample, and commodity-FX slopes die by month five.
US stock LLM sentiment labels each article with the sign of the stock's three-day excess return. Date-split that label with a three-day embargo, or the accuracy grades the return it trained on.
Retail dip-buying in US equities: fit a loss slope and a gain slope on past returns. The loss slope is about -1.35, the buy arrives one period late, and a larger retail share raises volatility.
Sparse mean-reverting swap portfolios cap how many rates you hold and minimize the variance share the lag explains. A 1bp spread flattens the Sharpe; dense books often sit inside the bid-ask.
Lead-lag arbitrage on DAX cross-listings: a multinomial logit calls the lagging book's next quote cluster, and a one-tick limit collects it after fees and a 5 ms wire.
Stock lead-lag is a day count: today's close must sit in a band of yesterday's leader, and the pair counts only past a random-graph cutoff. The CSI 300 tail falls as d to the -20.24.
Crude-oil statistical arbitrage fades the WTI minus Brent/Dubai residual with a power of the gap. Re-fit the hedge ratios when a break test rejects stable weights.
Downside lead-lag: estimate bad COVOL and lead-lag strength on negative-return days, then hedge the high out-strength source before followers reprice.
FX triangular arbitrage: split log-rates into currency values and a loop. Forecast the value change. Trade the loop only if a lagged quote does not explain it and the gap clears the three spreads.
Equity pairs: weight each spread by reversion speed over volatility times its OU fit. That book's daily Sharpe is 0.15 against 0.09 equal-weighted.