In simple terms
The rolling hedge returned −39.73% over the full period. The equal-notional version returned −55.90%. With historical funding and zero fees or slippage, the rolling version returned −14.73%. The spread narrowed in some trades. Both historical periods ended at a loss under these rules.
Contents
Why take two opposing positions?
When the BTC side of the spread is relatively cheap, the model goes long BTCUSDT and short ETHUSDT. When it is relatively expensive, the directions reverse. Both legs are linear USDT perpetual contracts. The outcome depends on the price changes of both legs, their sizes and their funding transfers.
The data and the clock
We use Binance USDⓈ-M H1 last-trade candles, H1 mark prices and realized funding. The test runs from 1 January 2021 to 1 October 2026 at 00:00 UTC, with December 2020 for warm-up. The 438 checksummed files include 12 daily mark-price supplements that restore 288 hours absent from monthly files. All four price series align on 51,121 timestamps, including warm-up and the final execution boundary.
How we measure the spread
Let y be the natural log of the BTC close and x the natural log of the ETH close. The intercept a and hedge coefficient β come from a least-squares fit on the 720 preceding completed H1 bars. The signal close is excluded. The standard deviation σ uses those 720 residuals with a divisor of 719. For the control, we set β = 1 and estimate the intercept and scale from the same window.
β = Cov(x, y) / Var(x)
a = mean(y) − β × mean(x)
z = (y − a − β × x) / σ
When the pair opens
We score the previous close and the signal close with the same fit. From above −2, a cross into (−4, −2] opens long BTC and short ETH. From below +2, a cross into [2, 4) opens short BTC and long ETH. The filter requires 0.25 ≤ β ≤ 4 and σ > 10⁻⁸. Both fills use the next H1 trade open with adverse slippage. The account holds at most one pair.
How we size both legs
At entry, the two absolute fill notionals sum to the account equity available before fees. Their weights are 1/(1+β) for BTC and β/(1+β) for ETH. At 10,000 USDT and β = 0.60 this gives 6,250 USDT of BTC and 3,750 USDT of ETH. Divide each notional by its own fill price to obtain the quantity. The signs of those quantities are opposite.
N_BTC = G / (1 + β)
N_ETH = G × β / (1 + β)
|q| = N / P_fill
Exit with the original fit
The entry fit and quantities stay locked. At each completed H1, the stop takes priority at s×z ≤ −4, then convergence at s×z ≥ −0.25, where s is +1 for long BTC and −1 for short BTC. The time exit follows after 48 completed hours in the position. Fills use the next H1 open. We close any open pair at the study boundary and skip opening a new pair at an exit boundary.
What a round trip costs
The base model charges 5 basis points in fees and 2 basis points of adverse slippage on each leg at each fill. There are two entry fills and two exit fills. One basis point equals 0.01%. Positive funding is a debit for the long and a credit for the short on that contract. The amounts can differ across the two contracts.
Funding at the execution boundary
There are 6,298 funding records per symbol from the test start through the final boundary. Each is aligned to the nearest UTC hour. The largest timestamp offset is 47 ms. We approximate settlement value with the mark open of that hour and book funding before fills. Booking it after fills instead gives −39.71% for the rolling hedge, versus −39.73% in the base run.
Funding_leg = −q_signed × P_mark,H1 × r
Full-period results
The account starts with 10,000 USDT. Drawdown is the largest decline from a running equity peak at hourly mark opens, including modeled funding and fills. Net profit factor is the sum of profits on closed pairs divided by the absolute sum of losses on closed pairs. Both full-period base runs had a profit factor below 1.
| Case | Net return | Max. hourly marked drawdown | Trades | Net profit factor |
|---|---|---|---|---|
| Rolling hedge · Full sample | −39.73% | 48.31% | 247 | 0.715 |
| Equal-notional hedge · Full sample | −55.90% | 65.83% | 194 | 0.555 |
Earlier and later samples
We reset the account to 10,000 USDT in each slice and keep the signal settings fixed. The earlier slice closes at 00:00 UTC on 1 January 2024. The later slice opens at that boundary and may use already completed H1 bars for its first fit. The full test carries positions through that boundary. The rolling and fixed versions both lose money in each slice.
| Case | Net return | Max. hourly marked drawdown | Trades | Net profit factor |
|---|---|---|---|---|
| Rolling hedge · Earlier slice | −24.02% | 35.59% | 131 | 0.735 |
| Equal-notional hedge · Earlier slice | −35.27% | 49.81% | 101 | 0.584 |
| Rolling hedge · Later slice | −20.68% | 24.69% | 116 | 0.677 |
| Equal-notional hedge · Later slice | −31.87% | 34.71% | 93 | 0.495 |
Results without fees or slippage and with higher costs
The zero-friction run removes fees and slippage and retains historical funding. The stress run uses 10 bp fees and 5 bp adverse slippage per leg fill. The rolling hedge finishes at −14.73% and −59.49% in those two runs. The fixed control is also negative in both cases.
| Case | Net return | Max. hourly marked drawdown | Trades | Net profit factor |
|---|---|---|---|---|
| Rolling hedge · Zero trading friction | −14.73% | 33.67% | 247 | 0.895 |
| Equal-notional hedge · Zero trading friction | −42.07% | 55.61% | 194 | 0.667 |
| Rolling hedge · Higher costs | −59.49% | 63.06% | 247 | 0.567 |
| Equal-notional hedge · Higher costs | −67.73% | 74.67% | 194 | 0.457 |
| Rolling hedge · Funding after fills | −39.71% | 48.29% | 247 | 0.715 |
Funding and the price legs
The rolling base run collects +82.94 USDT from BTC funding and +51.43 USDT from ETH funding, summed across long and short positions. Those credits are smaller than the trading friction. The price change of the two legs at raw trade opens contributes −1,323.63 USDT before fees, slippage and funding, on the same modeled quantities.
| Case | Fees | Slippage | Funding BTC | Funding ETH |
|---|---|---|---|---|
| Rolling hedge · Full sample | 1,988.26 | 795.31 | +82.94 | +51.43 |
| Equal-notional hedge · Full sample | 1,327.67 | 531.07 | −123.12 | +175.69 |
Two trades on observed prices
The examples are the first convergence exit and the first stop from entries in the later interval of the full run. Both use observed H1 trade candles. E and X are the modeled entry and exit fills. Each price axis is in USDT per coin. The z-score calculated with the entry coefficients is plotted at the time its H1 close becomes available.
- E · UTC
- 2024-01-09 23:00
- X · UTC
- 2024-01-10 22:00
- BTC · q
- −0.103949
- ETH · q
- +1.106040
- β
- 0.5388
- z · E
- +2.1429
- z · X
- +0.1853
- P&L · USDT
- +226.74
- E · UTC
- 2024-01-07 14:00
- X · UTC
- 2024-01-08 19:00
- BTC · q
- −0.112584
- ETH · q
- +1.154465
- β
- 0.5201
- z · E
- +2.0170
- z · X
- +4.0656
- P&L · USDT
- −201.56
When the link breaks
Of the rolling base pairs, 186 reached the time exit, 41 hit the modeled stop and 20 exited on convergence. A fitted hedge ratio leaves exposure to relative prices and can also leave net directional exposure. A temporary relationship between prices can weaken during a market shock or a change in the relative strength of BTC and ETH.
What the simulation can verify
A separate calculation rebuilt all 11 cases, all closed-pair records and both full hourly equity paths. The downloadable evidence records the source hashes, rules and results. The simulation uses simultaneous hourly fill references. It omits order-book depth, partial fills, delay between legs, margin tiers and liquidation. The hourly mark open is a proxy for the funding settlement mark.
How to read the comparison
The rolling hedge reduced the modeled loss relative to equal notionals. Both base runs and both zero-friction runs still lost money. This result describes one venue and one fixed set of rules for the historical sample. It gives no evidence of a profitable trading edge in that test.
Questions and answers
Does BTC/ETH mean trading a single exchange pair?
Here BTC/ETH describes a relationship. The account holds a BTCUSDT perpetual and an ETHUSDT perpetual with opposite signs.
Does β = 1 mean one bitcoin against one ether?
It means equal USDT notionals at entry. Each coin quantity is its allocated notional divided by its fill price.
Does a low or high z-score prove cointegration?
The z-score measures distance from a fitted window in standard-deviation units. A cointegration claim would require a separate statistical test and stability checks.
Can funding be positive on both legs combined?
Yes. The two contracts may have different rates and position values. Calculate each signed funding transfer before summing them.
Does a 1× gross entry cap the loss?
It sets the two entry notionals relative to equity. Contract prices and equity move after entry, and the model does not reproduce a venue's margin or liquidation engine.
Why is the next open only a fill reference?
The completed H1 supplies the signal. Both legs use the following open with modeled slippage. Orders sent live can receive different prices or fill at different times.
Sources and reproducibility
Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.
Risk disclosure
For education. Perpetual contracts carry funding, execution, margin and liquidation risk. A historical simulation cannot predict future results.