Loading chart…
- Return
- −30.96%
- Buy and hold from 23 Jun
- −42.23%
- Max drawdown
- −44.03%
- Win rate
- 0%
- Position now
- Long since 9 Sept 2026
The strategy needs 200 days of data before it can trade, so both are measured from 23 Jun 2025. Since then, holding Bitcoin while its 50-day SMA was above its 200-day SMA turned $10,000 into $6,904 (−30.96%), against −42.23% for buy and hold. It made 1 closed trade and has one open, with a max drawdown of −44.03%.
From Kraken's daily bars at 14:23 UTC on 25 Nov, today's still open. The chart above is live.
Orders fill at the next day's open, with a 0.1% fee and 0.05% slippage each way. The backtester measures buy and hold from the first bar it's given.
Trades
| Entry | Entry price | Exit | Exit price | Return |
|---|---|---|---|---|
| 9 Sept 2026 | $78,488.82 | Open | — | −25.68% |
| 23 Jun 2025 | $101,038.39 | 17 Nov 2025 | $94,143.00 | −6.82% |
Python strategy
# Golden cross: long while the 50-day SMA is above the 200-day SMA,
# flat after the death cross. Run it on the 1D chart.
def on_bar(bar, ctx):
fast, slow = ctx.sma(50), ctx.sma(200)
if fast is None or slow is None:
return
if fast > slow and ctx.position <= 0:
ctx.buy()
elif fast < slow and ctx.position > 0:
ctx.close()