Playbooks

ZEC Perp Breakout Strategy: +40% With a 7.3% Max Drawdown

Published

An AlphaPilot user built a long-only breakout bot for ZEC perpetual futures on 1-hour bars. The bot buys only when four things agree: the trend, a fresh breakout, rising volume and rising open interest. After it buys, a trailing stop follows the price up. From October 2025 to October 2026 the bot returned 40%. Its worst drawdown was 7.3%, and on average only 2.7% of the account was in the market.

How it works

The bot checks ZEC at the close of every hour. When it holds no position, it asks four yes-or-no questions. It buys only if every answer is yes.

1 Trend MA72 above MA240, close above MA240 2 Breakout Close above 36h high, within 4% of 10-day high 3 Participation 24h volume above 7-day avg; OI up over 24h 4 Direction 48h efficiency ratio at least 0.05 Buy · weight = min(25%, 0.15% ÷ hourly vol)
All four checks must pass before the bot opens a position. MA72 and MA240 are the 3-day and 10-day moving averages of the close.
  • Trend. The 3-day average sits above the 10-day average, and the price sits above the 10-day average. The bot only buys in an uptrend.
  • Breakout. The close beats the highest high of the previous 36 hours. It is also no more than 4% below the 10-day high, so the bot buys near the top of the range, not on a bounce.
  • Participation. Average volume over the last 24 hours is above its 7-day average. Open interest is higher than it was 24 hours ago, which means new positions are opening. If open-interest data is missing, the bot skips this part of the check.
  • Direction. The 48-hour efficiency ratio compares net movement with total movement. A value near 0 means the price is moving back and forth without going anywhere.
ER48=∣Pt−Pt−48∣∑i=047∣Pt−i−Pt−i−1∣ER_{48} = \frac{|P_t - P_{t-48}|}{\sum_{i=0}^{47} |P_{t-i} - P_{t-i-1}|}

After it buys, the bot does nothing until one of two exits triggers. The first exit is a chandelier stop. The stop sits 3 ATR below the highest high of the last 24 hours, so it rises as the price makes new highs. The second exit triggers if the 3-day average falls back below the 10-day average.

exit if Pt<max⁡24h(high)−3⋅ATR24orMA72<MA240\text{exit if } P_t < \max_{24h}(\text{high}) - 3 \cdot \text{ATR}_{24} \quad \text{or} \quad MA_{72} < MA_{240}
price MA72 (3-day) MA240 (10-day) prior 36h high trailing stop: 24h high − 3 × ATR breakout entry exit
Illustration only, not real data. The bot buys when the price clears its prior 36-hour high. The stop moves up in steps as new highs form, and the bot exits when the price falls through the stop.

Results

Backtest window: ZEC-USDC-PERP, 1-hour bars, 3 October 2025 to 18 October 2026. Starting capital was $10,000.

+39.95%

Annual return

+37.99%

1.89

Max drawdown

7.27%

+5% 0 0.7 7.4 1.2 0 1.9 5.9 6.0 6.3 −0.9 −2.7 4.8 4.1 0 Oct Nov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct 2025 2026
Monthly returns in %. Nine months were positive, two were negative and two were flat. October 2026 covers only part of the month.
  • 56 trades over the year. Fees cost 0.63% of capital, and funding cost was negligible.
  • The two losing months, June and July 2026, cost about 3.6% combined. The best month was November 2025 at +7.4%.
  • On average, only 2.7% of equity was in the market. The bot spent much of the year in cash, and when it did hold a position, the position was small.
This strategyBuy & hold ZEC
Total return+40.0%+727%
Avg. capital in market2.7%100%

Be honest about this comparison. ZEC rose more than eightfold in this window, and a small, selective long-only bot will not keep pace with that. This strategy is built to do something else: it captures parts of ZEC's trends while keeping very little capital exposed, and that is why its drawdown stayed so shallow.

Why it works

1. Crypto trends tend to keep going

When a coin breaks to new highs, the move often continues. Late buyers chase the move, short sellers buy back their positions, and stop orders above the old high get triggered. The bot only buys strength, at the moment a new high forms, and only when the bigger trend already points up.

2. Confirmation filters out weak breakouts

Many breakouts fail in thin markets. Rising volume shows that more traders are active. Rising open interest shows that the buying comes from new positions, not just old shorts closing. With these filters stacked, the bot takes fewer trades, but each one has real participation behind it.

3. Small losses and long winners

The 3-ATR chandelier stop is wide enough to survive normal hourly noise. It also trails the highest high, so a winning trade can keep running as long as the trend lasts. A failed breakout hits the stop fast and costs little. This gap between small losses and long winners is the main source of the profits.

4. Each trade carries a similar amount of risk

The bot sizes each position from ZEC's recent hourly volatility. When ZEC is calm, the position is bigger. When ZEC is wild, the position is smaller. The goal is a position that moves about 0.15% of equity per typical hour, which is roughly 0.7% per day.

w=min⁡(0.25, 0.0015σ24)w = \min\left(0.25,\ \frac{0.0015}{\sigma_{24}}\right)
25% 15% 5% 0 0% 1% 2% 3% hourly volatility over the last 24h (σ) 25% cap σ = 1% → 15% σ = 2% → 7.5%
Position weight (vertical axis, % of equity) against ZEC's recent hourly volatility. Weight never goes above 25%, so the account's 3× leverage was never needed.

5. Small, occasional exposure keeps drawdowns shallow

Positions were small and the bot was often in cash, so no single bad trade could do much damage. The equity curve grew through many modest gains instead of a few big bets, and that steady path is what gives the 1.89 Sharpe ratio.

Caveats. This is one coin over one year, and that year was a strong ZEC bull market. Long-only trend rules naturally do well in a market like that. This backtest does not show how the bot would behave in a long bear market or a flat, choppy year.

Ideas to try

Idea 1: Use more of the risk budget

The maximum drawdown was 7.3% and average exposure was only 2.7%, so this bot left a lot of capital unused. Doubling the risk target and the weight cap should roughly double both returns and drawdowns. A backtest will show whether the risk-adjusted numbers hold up at the larger size.

Idea 2: Run the same rules on a basket

Every rule in this bot is generic, so nothing ties it to ZEC. Running it on several perps at once gives the bot more breakouts to catch, and a breakout on one coin can make up for a quiet month on another. That could help with flat stretches like January 2026.

Built by an AlphaPilot user. Historical backtest results do not predict future returns. Not investment advice.