Playbooks

HYPE Trend Strategy: 40/160 Average Filter with a 6/18 ATR Bracket

Published

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.
spreadt=SMA40(close)SMA160(close)−1\text{spread}_t = \frac{\text{SMA}_{40}(\text{close})}{\text{SMA}_{160}(\text{close})} - 1

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.
Price 40 h avg 160 h avg 12 h above Target: entry + 18 × ATR Stop: entry − 6 × ATR Buy Sell, then re-buy time (1-hour bars) →
Schematic, not real data. The 40-hour average crosses above the 160-hour average. The strategy waits 12 hours for confirmation, then buys with a bracket of 1 part risk to 3 parts reward.

The "armed" switch

The most interesting rule decides when the strategy may buy again. The code tracks whether it is "armed":

Waiting not ready to buy Armed ready for a fresh uptrend Long HYPE stop −6 ATR · target +18 ATR trend confirmation breaks 12 h uptrend → buy target hit or downtrend → sell stop hit → sell, wait for a reset
After a target hit, the strategy is armed again at once. It re-buys on the next hour if the uptrend still holds. After a stop-out, it must first see the uptrend confirmation break.

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:

w=min⁡ ⁣(0.8σ1h 24×365,  1)w = \min\!\left(\frac{0.8}{\sigma_{1h}\,\sqrt{24 \times 365}},\; 1\right)

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%

StrategyBuy & hold HYPE
$10,000 became$34,652$43,123
Total return+246.5%+331.2%
Average capital in HYPE41.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.

Mar 2025 −7.9% Apr 2025 +15.5% May 2025 +54.0% Jun 2025 −5.9% Jul 2025 +2.5% Aug 2025 +9.3% Sep 2025 +2.7% Oct 2025 +3.6% Nov 2025 −9.8% Dec 2025 −8.8% Jan 2026 +6.1% Feb 2026 −1.5% Mar 2026 −0.9% Apr 2026 +7.6% May 2026 +47.5% Jun 2026 −3.0% Jul 2026 −2.2% Aug 2026 +38.1% Sep 2026 +5.3% Oct 2026 +2.3% Nov 2026 −1.2%
Monthly returns. 12 of 21 months were positive, and the three highlighted months stand far above the rest. March 2025 and November 2026 are partial months.

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%.

3 best months May ’25, May ’26, Aug ’26 +214% Other 18 months small wins, small losses +10.5%
Compounded returns: 3.14× from three months and 1.10× from the rest, which multiply to the final 3.47×.

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:

p×18=(1−p)×6  ⇒  p=25%p \times 18 = (1-p) \times 6 \;\Rightarrow\; p = 25\%

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.

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