ZEC 3020 Breakout: an open-source trading model for Zcash
A 30-day breakout model for Zcash built by Claude Fable 5.2: the rules, the backtest, the indicators that failed, 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 Zcash (ZEC). It's called ZEC 3020 Breakout, and Claude Fable 5.2 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.
modelZEC
ZEC 3020 Breakout returned +7,476% over the backtest, outperforming ZEC's +1,085% and ending 6.4× its result.
$10,000 in the model (white) against $10,000 of ZEC bought and held (purple), January 2021 to November 2026.
The rules
The model is long ZEC or in cash. It decides once a day at the daily close (00:00 UTC) and trades at the next open.
Buy when the close is the highest close of the last 30 days.
Sell when the close is below the 20-day simple moving average.
Sell when the day's volume is under 70% of its average. Don't buy on such a day either.
That's the name: a 30-day high to get in, a 20-day average to get out. No shorts, no leverage. The volume test uses TickerDB's volume_ratio_zone band: low and extremely_low mean under 0.70x average volume.
Backtest setup
Period
Jan 6, 2021 to Nov 20, 2026
Data
ZEC-USD daily bars and indicator bands from TickerDB, point in time
Signals
At the daily close, using only data up to that close
Fills
Next daily open
Costs
0.10% per side, no extra slippage
Position
100% of the balance, long or cash
Benchmark
ZEC bought at the first close and held
Results
ZEC is hard to hold. Its worst drawdown since 2021 was 94%. It goes quiet for months, then moves fast. A breakout rule sits in cash through the quiet stretches and only buys strength. It never catches the bottom, but it skips most of the long declines.
Stats
model
75.8×
ZEC
11.9×
stat
ZEC
model
$118,508
$757,601
+1,085%
+7,476%
+52%
+109%
-94%
-33%
ZEC 3020 Breakout grew faster than ZEC (+109% vs +52% a year), with a shallower worst fall (−33% vs −94%).
What $10,000 grew to in each.
Model
ZEC held
Growth
75.8x
11.9x
CAGR
+109%
+52%
Max drawdown
-33%
-94%
Sharpe ratio
1.39
0.93
Trades
51
1
Win rate
61%
Average trade
+17%
Time in the market
22%
100%
Sharpe ratio from daily returns, annualized over 365 days, with no risk-free rate.
What we tested
Fable 5.2 ran about 42,000 tests across the indicators in the TickerDB API. Each idea was added to the plain breakout as an extra exit or an entry filter. We scored it three ways: on ZEC, on ZEC with its biggest run removed (Sep 20 to Nov 30, 2025), and on 79 other coins with at least three years of data.
Here is a sample. "Ex-2025" is CAGR with the Sep to Nov 2025 run removed. "Other coins" is the share of the 79 where the idea raised the Sharpe ratio.
Idea
Growth
CAGR
Max DD
Ex-2025
Other coins
Plain breakout
43.0x
+90%
-48%
+26%
Sell on overbought RSI
16.1x
+61%
-41%
+21%
39%
Sell on overbought stochastic
7.0x
+39%
-38%
+20%
29%
Sell on negative MACD
16.8x
+62%
-49%
+23%
56%
No buy on overbought RSI
54.7x
+98%
-51%
+31%
51%
No buy in high volatility
32.4x
+81%
-51%
+20%
58%
Buy only in an uptrend
35.7x
+84%
-48%
+22%
28%
No buy in extreme greed
39.7x
+87%
-49%
+24%
47%
ZEC/BTC above 50-day SMA
31.4x
+80%
-60%
+19%
6%
BTC above 50-day SMA
46.4x
+92%
-44%
+27%
77%
Low-volume exit (kept)
75.8x
+109%
-33%
+42%
68%
Overbought exits do the most damage. A breakout is overbought by definition, so selling on RSI or stochastic cuts the winners short. Fear and greed, volatility and trend filters change little. The ZEC/BTC filter looked good in early tests on ZEC but helped only 6% of the other coins, so it was overfit.
Two ideas held up. The Bitcoin trend filter helped 77% of the other coins. But on top of the volume rule it hurt ZEC: 68.4x instead of 75.8x, with a -44% drawdown instead of -33%. So we left it out.
Volume is the one we kept. A rally on thin volume is often near its end. The volume rule raised growth from 43x to 76x, cut the max drawdown from 48% to 33%, and improved the Sharpe ratio on 68% of the other coins.
Shorting instead of cash
We also tested 4,320 ways to short ZEC after a sale instead of sitting in cash.
After a sale
Growth
CAGR
Max DD
Ex-2025
Other coins
Cash (live)
75.8x
+109%
-33%
+42%
Short to next buy
3.4x
+23%
-91%
-16%
57%
Short with stop and target
239.5x
+154%
-56%
+73%
58%
Same, half size
159.6x
+137%
-41%
+61%
The stop is 15%, the target 20%, and a short lasts 20 days at most. A plain short loses: ZEC tends to drift up or spike between sales and the next buy. A short with a stop and a target makes more money in the backtest, but the max drawdown goes from 33% to 56%. The result also swings with the target: 25% gives 529x, 40% gives 137x. That's a fragile setting, so the live model stays long or cash.
The trade that made the backtest
ZEC heldin cash20-day averageJul to Dec 2025
$50$100$200$500AugSepOctNovDecbuy $43.43sell $276low volume, +535%buy $325sell $551below the average, +69%
On August 22, 2025, the model bought ZEC at $43. It sold 65 days later at $276, up 535%, on a low-volume day. ZEC made a new 30-day high the next day, so the model bought back at $325. It sold at $551 on a close below the 20-day average.
Selling at $276 and buying back at $325 cost about 15%. That's the price of the volume rule: it sometimes exits a trend early.
Robustness
The model beat buying and holding ZEC on 77% of days.
Edge
model beats ZEC by
6.39×
stat
edge
6.84×
0.28×
77% of days
+37%
ZEC 3020 Breakout beat ZEC by 6.4× and was ahead 77% of the time.
The model's balance divided by ZEC's, day by day. Above 1x, the model was ahead.
The 30-day window isn't a lucky setting. Every breakout length from 20 to 50 days works, and each beats buy and hold on most other coins.
Breakout
Growth
CAGR
Max DD
Trades
Other coins
20 days
87.5x
+114%
-48%
70
77%
30 days (live)
75.8x
+109%
-33%
51
80%
40 days
67.1x
+105%
-33%
43
81%
50 days
50.5x
+95%
-42%
35
80%
Each row exits below the 20-day SMA and on low volume. "Other coins" is the share of 79 where the rule beat buy and hold on Sharpe ratio. A slower exit (30- or 50-day SMA) was worse at every window: 26x to 51x, with drawdowns of 49% to 71%.
The backtest is reproducible. The code replays the rules on TickerDB data and must produce the same 51 trades at the same prices.
Risks
One trade carries the result. Remove August to November 2025 and CAGR falls from 109% to 42%.
CAGR
Model, full backtest
+109%
Model without Aug to Nov 2025
+42%
ZEC bought and held
+52%
It lags in strong years. It trailed ZEC in 3 of 6 years and lost 25% in 2023. A 30-day high always arrives after the rally has started.
Yearly ROI
modelZEC
avg +189%
avg +165%
'21
'22
'23
'24
'25
'26
year
ZEC
model
2026
+49%
+259%
2025
+808%
+744%
2024
+109%
+79%
2023
-28%
-25%
2022
-75%
+47%
2021
+129%
+27%
ZEC 3020 Breakout beat ZEC in 3 of 6 years; its best year was 2025 at +744%.
Calendar-year returns. 2021 and 2026 are part years.
In-sample. The rules and parameters were chosen on the same 2021 to 2026 data. Expect weaker live results.
Short history. Under six years and 51 trades.
Liquidity. ZEC traded thinly on Coinbase from 2023 to 2025, with a median of about $0.5M to $0.7M a day. Large orders would have moved the price.
Weekends. Crypto volume drops at weekends, so the volume rule exits more often on Saturdays.
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.