XXUANTIFY

MACD signal-line cross on Bitcoin (4-hour): backtest 2017–2026

TXuantify Lab · Trend by Xuantify · house profile · tested 4 Dec 2026 · data to 4 Dec 2026

Summary

We tested MACD signal-line cross on Bitcoin (BTCUSDT), 4-hour candles, long only, from Aug 2017 to Dec 2026, with 0.1% exchange fee and 0.05% spread per side (test run 4 Dec 2026). After costs the rules made 37.1%, while simply holding Bitcoin made 1,096.6%. On the most recent 30% of the data (Feb 2024 – Dec 2026), shown separately, they lost 49.5%; holding made 0.4%.

Did not beat holding in this test

Result after costs
+37.1%
Just holding: +1,096.6%
Most recent 30%
−49.5%
Feb 2024 – Dec 2026 · holding +0.4%
Worst drop
−82%
Holding: −84%
Trades
761
81.9 a year
Win rate
35%
Profit factor 1.10 (won ÷ lost)
Average trade
+0.16%
Per trade after costs; trades compound into the total
Time in the market
50%
The rest of the time it waited in cash
Result card: MACD signal-line cross on Bitcoin (BTCUSDT), +37.1% after costs

The rules

Market · Bitcoin (BTCUSDT), 4-hour candles, long only (it only buys, never sells short), spot, without leverage

In · MACD crosses above MACD signal line

Out · MACD crosses below MACD signal line

The MACD is the gap between a fast and a slow moving average; its signal line is an average of that gap.

Orders fill at the open of the next candle. Costs: 0.1% exchange fee and 0.05% spread per side. The most recent 30% of the data (from 20 Feb 2024) is shown separately; the rule itself is fixed in advance, nothing is tuned on the data.

Test this yourself

What happened

In this test the rule won only 35.5% of its 761 trades, yet the average trade gained 0.2%, so the winners were bigger than the losers and the total rose 37.1%. Holding rose 1,096.6% over the same period. The first 70% of the test gained 171.7%, but the most recent 30%, from 20 Feb 2024, lost 49.5% while holding rose 0.4%. The rule was in the market 50.2% of the time, and its biggest drop was 82.1%.

Year by year, month by month

After standard costs. Each cell is that month's result in %, the last column the whole year. An empty cell: not in the market that month. Purple years fall in the most recent 30% (from 20 Feb 2024). The first and last year are not whole years.

YearJanJFebFMarMAprAMayMJunJJulJAugASepSOctONovNDecDYear
2017 +14 −1 +39 +21 +24 +134%
2018 −1 +16 −17 +3 −3 −2 +26 −23 +1 −2 −24 −1 −31%
2019 −4 +4 +1 +10 +25 +34 −4 +2 +7 +10 −14 −7 +76%
2020 +8 −7 +13 +7 +11 −18 +15 −10 +1 +12 +28 +27 +111%
2021 +8 −3 +15 +4 −39 +5 +5 +2 −19 +13 −5 −13 −36%
2022 −14 −4 −2 −18 −17 −21 +28 −7 −13 −1 −1 −7 −59%
2023 +20 +5 +10 +4 −4 −2 −7 −1 +1 +20 −5 +13 +62%
2024* −1 +24 −11 −14 +2 −9 +2 +1 0 +15 +23 −8 +16%
2025 +7 −15 −5 0 +3 +4 −8 −9 +2 +3 −11 −9 −35%
2026 +4 −10 +7 −11 0 −4 −1 +20 +4 −12 −20 −2 −28%

* 2024: only the part from 20 Feb 2024 is in the most recent 30%.

With and without costs

All dataFirst 70%Most recent 30%Worst drop
Standard costs (0.1% exchange fee and 0.05% spread per side)+37.1%+171.7%−49.5%−82%
An exchange with 0% fees (spread only)+528.8%+675.2%−18.9%−74%
No costs at all (theoretical)+1,245.8%+1,209.2%+2.8%−71%
Just holding Bitcoin+1,096.6%+1,085.8%+0.4%−84%

Costs did not decide it: with no costs at all the rules made 1,245.8%.

Could it be luck?

Random entries

We entered at random moments, 20 times, with as many trades as the rules and on the same side, each trade leaving by the rules' own exit. The rules did better than 16 of the 20.

Without the best 10% of trades

Leave out the 77 best of 761 trades and the result is −100.0%. A result that leans on a few trades is fragile.

When did it work?

Bitcoin's state on the day of entry: rising or falling (price against its 200-day average) and how wild it was (daily range against the two years before). Few trades per row, so read it as a rough picture. 39 trades came before the 200-day average existed and are not in a row.

MarketShare of timeTradesWonAverage trade
Falling, calm22%15335%+0.3%
Falling, normal13%9931%−0.4%
Falling, wild13%10442%−0.4%
Rising, calm23%16130%+0.4%
Rising, normal18%11436%+0.0%
Rising, wild11%9132%−0.3%

Related

Bollinger Band breakout · Xuantify Lab · Breakout · BTCUSDT 4h · +1,064.3% after costsCCI -100/+100 · Xuantify Lab · Mean reversion · BTCUSDT 1D · −50.5% after costsDonchian 55/20 breakout · Xuantify Lab · Breakout · BTCUSDT 1D · +1,321.5% after costsBollinger Band bounce · Xuantify Lab · Mean reversion · BTCUSDT 4h · −92.0% after costs MACD: a real edge — if you know where to look · how the indicator behaves, reviewed

Questions

Did MACD signal-line cross beat holding Bitcoin in this test?

No, not in this test: from 2017 to 2026 the rules made 37.1% after costs, while holding Bitcoin made 1,096.6%. That is one market, one timeframe and one set of rules, not a promise for the future.

How did you test it?

On 4-hour Bitcoin data from Aug 2017 to Dec 2026, with orders filled at the open of the next candle and 0.1% exchange fee and 0.05% spread per side. The most recent 30% of the data is shown separately. The rule is fixed in advance; nothing is tuned on the data. How we test

Share

A rule from the Lab's fixed list, run in a fixed order and picked before the result was known; every outcome is published, losers too. Past results don't guarantee future ones. Not financial advice.