BTC 2050 Momentum: an open-source trading model for Bitcoin
A long, short or cash Bitcoin model built by Claude Opus 5.5 on two moving averages: how it was built, the backtest, the 2022 bear market, and the risks.
Michael Wolf
TickerDB provides market data for AI agents. We use the latest AI models to research and develop trading models. Each model is open sourced under the MIT license.
This model trades Bitcoin. It's called BTC 2050 Momentum, and Claude Opus 5.5 built it. It's open source and free to run.
In our benchmarks, an AI agent doing research and building models like this one was 6.2x faster with TickerDB and used 55% fewer tokens than with a standard market data API.
modelHODL
BTC 2050 Momentum returned +10,039% over the backtest, outperforming HODL's +1,750% and ending 5.5× its result.
$10,000 in the model (white) against $10,000 of Bitcoin bought and held (purple), January 2019 to November 2026.
The rules
The model trades Bitcoin long, short or not at all. It decides once a day at the daily close (00:00 UTC) and trades at the next open. It watches two moving averages: the 20-day and the 50-day.
Buy when Bitcoin closes above a rising 50-day average and the 20-day average is up at least 0.05% on the day.
Sell when the 20-day average drops at least 0.1% on the day. If Bitcoin is also below its 50-day average, go short. Otherwise wait in cash.
Cover the short when it's up 7.5% at a daily close, or when the next buy signal fires. After a take-profit, wait in cash for the next buy.
Coinbase daily BTC-USD bars and trend fields from TickerDB, point in time
Signals
At the daily close, using only data up to that close
Fills
Next open
Costs
0.10% per side; shorts pay no funding or borrow fee
Position
100% of the balance, long or short, or all cash
Benchmark
Bitcoin bought and held
Results
Bitcoin's worst fall since 2019 was 77%, from November 2021 to November 2022. The model's worst was 38%. It makes its money on the big uptrends, gets out when the 20-day average turns, and shorts only once the fall is under way.
Stats
model
101.4×
HODL
18.5×
stat
HODL
model
$184,990
$1,013,905
+1,750%
+10,039%
+45%
+80%
-77%
-38%
BTC 2050 Momentum grew faster than HODL (+80% vs +45% a year), with a shallower worst fall (−38% vs −77%).
What $10,000 grew to in each.
Model
Bitcoin held
Growth
101.4x
18.5x
CAGR
+80%
+45%
Max drawdown
-38%
-77%
Sharpe ratio
1.58
0.92
Closed trades
79
1
Win rate
54%
Average trade
+7.3%
Time in a trade
55%
100%
Sharpe ratio from daily returns, annualized over 365 days (Bitcoin trades every day), with no risk-free rate.
It held up in both halves of the backtest: +103% a year against +42% for Bitcoin held from 2019 to 2022, and +60% against +48% from 2023 to November 2026.
How it was built
We gave Opus 5.5 a starting idea: buy Bitcoin when TickerDB's weekly trend_stage is in stage 1 or 2 and it's above its 50-week average, and sell in stage 3. It made 12% a year against 45% for holding, with the same 78% drawdown. The weekly stage turned too late: in May 2021 it sold 45% below the peak.
Opus 5.5 measured how far below the peak each trade sold, then moved to daily averages. Each step below was a fixed rule, tested before the next one was added.
Step
Growth
CAGR
Max DD
Sharpe
Trades
Bitcoin bought and held
18.7x
+45%
-77%
0.92
Buy when both averages rise, sell when the 20-day turns down
23.4x
+50%
-45%
1.21
93
+ buy only above the 50-day
29.7x
+54%
-41%
1.29
86
+ short after every sell, take profit at 7.5%
49.2x
+64%
-40%
1.31
172
+ ignore moves under 0.05% / 0.1% in the 20-day
73.9x
+73%
-42%
1.42
112
+ short only below the 50-day (live)
101.2x
+80%
-38%
1.58
79
These tables come from our research replay of the rules. It books trades the same way as the model page and makes the same 79 trades; its live row lands within 0.2% of the page's growth.
Two steps did most of the work:
The dead bands. When the 20-day average is flat, its direction flips almost every day. Ignoring moves under 0.05% (to buy) and 0.1% (to sell) cut the one-day trades from 42 to 5.
Shorting only below the 50-day. Opus 5.5 tagged every short by where Bitcoin was when it opened. Shorts opened below the 50-day average won 65% of the time and averaged +5.0%. Shorts opened above it, in dips inside an uptrend, lost on average. The split held in both halves of the history. Since then the model goes to cash on those dips instead.
The take-profit matters as much as the short itself. Without it, a short rides until the next buy signal and gives back the drop when Bitcoin bounces.
Short side
Growth
CAGR
Max DD
Sharpe
No shorts, cash instead
35.2x
+58%
-35%
1.33
Short after every sell
73.9x
+73%
-42%
1.42
Short below the 50-day, no take-profit
76.5x
+74%
-57%
1.38
Short below the 50-day, take profit at 5%
83.5x
+76%
-38%
1.55
Short below the 50-day, take profit at 7.5% (live)
101.2x
+80%
-38%
1.58
Short below the 50-day, take profit at 10%
66.3x
+71%
-57%
1.43
Opus 5.5 also tried filters from outside Bitcoin: the Nasdaq 100 (QQQ) and S&P 500 trends, market volatility, the dollar, Fed liquidity and risk appetite. None helped enough to keep. Bitcoin's own averages already react faster than any of them.
2022: up 2% while Bitcoin fell 64%
BTC longshortin cash50-day averageOct 2021 to Jan 2023
$20,000$50,000NovFebMayAugNov
On November 19, 2021, eleven days after Bitcoin's record close, the 20-day average turned down. The model sold at $56,898, up 18% on that long. Bitcoin was already below its 50-day average, so it went short at the same open, and covered at $49,235 on December 5, up 13%.
Through 2022 the 50-day average was falling most of the time, so the model rarely bought. It made four small longs and two shorts. The last short opened on November 9, 2022, as FTX collapsed, and hit its take-profit the next day, up 14%.
Bitcoin held lost 64% in 2022. The model made 1.9%.
Robustness
The model was ahead of Bitcoin bought and held on 89% of days.
Edge
model beats HODL by
5.48×
stat
edge
5.90×
0.70×
89% of days
+24%
BTC 2050 Momentum beat HODL by 5.5× and was ahead 89% of the time.
The model's balance divided by Bitcoin's, day by day. Above 1x, the model was ahead.
The settings are not on a plateau. The 20-day average is a sharp peak: 15 and 25 days do much worse. The slow average and the dead bands are steadier.
Setting
Growth
CAGR
Max DD
Trades
Fast: 15-day average
45.1x
+63%
-48%
86
Fast: 20-day (live)
101.2x
+80%
-38%
79
Fast: 25-day average
32.5x
+56%
-65%
73
Slow: 40-day average
80.5x
+75%
-51%
91
Slow: 50-day (live)
101.2x
+80%
-38%
79
Slow: 60-day average
45.1x
+63%
-44%
72
Slow: 75-day average
33.2x
+56%
-33%
60
Slow: 100-day average
13.6x
+40%
-45%
61
No dead bands
54.5x
+67%
-38%
108
Sell band 0.05% instead of 0.1%
87.8x
+77%
-42%
86
Buy band 0.1% instead of 0.05%
88.9x
+77%
-40%
77
Each row changes one setting and keeps the others at their live values.
Every row but the 100-day beats Bitcoin held (18.7x) on growth, and all of them on drawdown. But the live settings are the best of their neighbours, which is what fitting to one history looks like. Expect results closer to the middle of this table.
Ethereum. We ran the same rules unchanged on Ethereum (ETH) over the same years. They lost: 3.5x against 13.6x for ETH held, with the same 79% drawdown. Long or cash only, they made 6.6x with a 61% drawdown. The short side in particular looks specific to Bitcoin's path.
Risks
A few trends carry the edge. The five best trades are all longs, in late 2020, late 2023 and 2024. Without them the model would have made 10.5x, less than holding Bitcoin.
CAGR
Model, long or short
+80%
Same rules, cash instead of short
+58%
Bitcoin bought and held
+45%
It lags in strong years. In 2020 and 2024 the model trailed Bitcoin by 135 and 66 points. Selling every time the 20-day average dips costs money in a steady rise.
Yearly ROI
modelHODL
avg +90%
avg +79%
'19
'20
'21
'22
'23
'24
'25
'26
year
HODL
model
2026
-15%
+48%
2025
-6.3%
+11%
2024
+121%
+55%
2023
+156%
+138%
2022
-64%
+1.9%
2021
+59%
+131%
2020
+305%
+170%
2019
+77%
+162%
BTC 2050 Momentum beat HODL in 5 of 8 years; its best year was 2020 at +170%.
Calendar-year returns. 2019 and 2026 are part years.
In-sample. The rules and settings were chosen on 2019 to 2026 data, and they didn't carry over to Ethereum. Expect weaker live results.
Shorts have no stop. No short since 2019 reached 10% against it before the take-profit or a buy signal closed it. A squeeze bigger than any since 2019 would run until the next buy signal.
Whipsaws. When Bitcoin moves sideways the model keeps buying small rises and selling small dips. Its 38% max drawdown came that way, from July to October 2025, while Bitcoin fell only 5%.
Close only. The take-profit is checked at the daily close, not during the day.
Costs. The backtest charges 0.1% per side and no funding or borrow fee on shorts. Real short costs can be higher.
Run it for free
The code is open source on GitHub under the MIT license: the rules, the backtest, the tests and every trade.
You don't need to write code to run it. Open it in Claude or ChatGPT. Your assistant sets it up, checks the model every day and tells you when it trades. One daily check fits in TickerDB's Free plan.