SPB Git

Repository Public

README.md 1.4 KB 19 lines markdown

1# pairs_rotation / 123**Hypothesis.** Some pairs of crypto assets share a common stochastic trend (they are cointegrated over windows of4a few weeks): the residual of a regression of one log-price on the other is stationary, so when it is far from zero5the "cheap" leg should outperform the "expensive" one as the spread closes.67**Rule.** Pairs: ETH/BTC and SOL/LINK, half of the portfolio each. On the last 720 bars, regress `log A` on `log B`8(OLS with intercept), take the z-score of the last residual and the Dickey-Fuller t-statistic of the residuals9(no lags). If the t-statistic is below -3.34 (Engle-Granger 5 % critical value for two series) and `z < -1`, the10pair's budget goes entirely to A; if `z > 1`, entirely to B; otherwise it is split equally between the two legs.1112**This is not a market-neutral pairs trade.** A wallet that cannot short cannot isolate the spread: the strategy is13always fully invested and carries the whole market risk. All it can do is tilt between two assets it would hold14anyway; its fair comparison is the equal-weight benchmark, and the most it can add is the spread convergence.1516**What would refute it.** The cointegration test is repeated every hour on a rolling window (a multiple-testing17problem in itself) and rolling-window cointegration between crypto assets is unstable: a "cheap" leg can simply be18the one that is losing for a durable reason. Each rotation costs fee + slippage on half the portfolio, twice.19
Files main
Menu

Theme