An AlphaPilot user wanted to ride HYPE's big runs without staying fully invested through every chop. The result is a long-only trend follower on HYPE spot with 1-hour bars. It waits for a trend to prove itself, buys with a fixed bracket of 6 ATR of risk against 18 ATR of reward, and sizes each trade by volatility. From March 2025 to November 2026 it turned $10,000 into $34,652. On average it kept only 41.5% of its capital in the market.
How it works
The strategy uses three signals, each computed on 1-hour bars:
- Trend: the 40-hour moving average divided by the 160-hour moving average, minus 1. When the result is positive, the short-term average is above the long-term one.
- ATR (14): the average size of an hourly bar. It sets the stop and the target.
- Volatility: the standard deviation of hourly returns over the last 168 hours (one week). It sets the position size.
The rules are simple:
- Confirm the trend. An uptrend counts only after the spread has been positive for 12 hours in a row. A downtrend needs 12 negative hours in a row.
- Buy with a bracket. On the hour the uptrend is confirmed, buy HYPE. Set a stop 6 ATR below the entry and a target 18 ATR above it.
- Exit on any of three events: the price closes at the stop, the price closes at the target, or a downtrend is confirmed.
- Size by volatility. Each position aims for 80% annualized volatility and never uses more than 100% of the capital.
The "armed" switch
The most interesting rule decides when the strategy may buy again. The code tracks whether it is "armed":
This switch has two effects:
- After a stop-out, no revenge trades. The trend that just failed cannot pull the strategy back in. The strategy waits for that trend to fade and for a new one to form.
- After a target hit, the strategy stays in the trend. It takes the profit and immediately buys again with a new bracket. The new stop sits 6 ATR below the new, higher price. Each target hit therefore moves the stop up like a ratchet.
Position size
The size is fixed when the trade opens:
For example, if HYPE's hourly returns swing by 1%, the annualized volatility is about 94%, and the strategy puts 85% of its capital in. At 1.5% hourly swings, it puts in about 57%. Wild weeks get smaller bets.
The results
+246.52%
Annual return
+111.91%
1.60
Max drawdown
41.24%
| Strategy | Buy & hold HYPE | |
|---|---|---|
| $10,000 became | $34,652 | $43,123 |
| Total return | +246.5% | +331.2% |
| Average capital in HYPE | 41.5% | 100% |
The backtest ran from 23 March 2025 to 16 November 2026 and made 120 trades. Trading fees, at 0.03% per trade, reduced the return by 5.8 points. The annual return was 111.9%, with a Sharpe ratio of 1.60.
Simply holding HYPE ended higher. The strategy got about three quarters of that dollar result with well under half the capital at work on average. The price was a 41.2% maximum drawdown, so this was not a smooth ride.
Why it works
1. A few big trends pay for everything
Three months produced almost the whole result: May 2025, May 2026 and August 2026. Compounded together, they returned +214%. The other 18 months together added only +10.5%.
This is how trend following usually works. In most months, the strategy only needs to avoid losing much. Then it must be in the market, at full size, when a real run starts. The 12-hour confirmation and the moving-average filter give it that timing.
2. The bracket only needs a 25% hit rate
Every trade risks 6 ATR to make 18 ATR. If the only exits were the stop and the target, the strategy would break even when this holds:
Here p is the share of trades that reach the target. The strategy can be wrong three times out of four and still not lose money before fees. Trend exits blur the math a little, but the shape is the same: many small losses and a few large gains.
3. The stop is wide on purpose
HYPE swings hard from hour to hour. A tight stop would be hit by noise inside a healthy trend. A 6-ATR stop lets a trend breathe, and because it is measured in ATR, it widens in wild weeks and tightens in calm ones.
4. Volatility sizing keeps the bets even
Each trade aims at the same 80% annualized volatility. As a result, a trade opened during a frantic week does not swing the account more than one opened during a quiet week.
What to watch
- Drawdowns are deep. The worst calendar month was only −9.8%, yet equity fell 41.2% from a peak at its worst. Wide stops let open profits slip back, and losses come in strings. November and December 2025 together lost 17.6%.
- The code has a two-week memory. Every hour, it rebuilds its state by replaying the last 366 hours, about 15 days. It never stores the open trade. If an uptrend runs unbroken for longer than that, the entry slides out of the window, the replay finds no trade, and the strategy sells. This may be one reason buy-and-hold ended higher.
- The data is one coin over 20 months. Most of the profit comes from three trend months. A different coin or period could look very different.
Make it yours
Idea 1: let the winners run
Keep the same rules, but store the trade state from bar to bar instead of replaying a 15-day window. Long trends can then last as long as the stop, target and trend exit allow. Compare the results with the original, and check how trade length changes.
Idea 2: spread the bet across several coins
Three months carried this strategy, so a single coin is a fragile bet. Run the same engine on HYPE, BTC, ETH and SOL together, each with its own quarter of the capital. When one coin chops, another may be trending.
Or change one rule and see what happens: try a 24-hour confirmation, a 4-ATR stop, or a target of 12 ATR. Each tweak tests one of the ideas above.