U.S. nonfarm payrolls for November are due out this week, and HYPE has already fallen 22.1% over the past 30 days. This strategy ran for a year on Binance’s HYPEUSDT perpetual contract 1-hour chart, returning +217.7% in backtests and +137.7% over the past 90 days (only one parameter changed; 5x leverage; fees included; maximum drawdown of 55.9% over the year). Backtest results only; not investment advice.

It uses MACD and trades both long and short: when MACD crosses upward through the signal line while inside the “band” from −0.35 to +0.35, it opens a long; when it crosses downward, it opens a short. It closes the position on a crossover in the opposite direction. It made 400 trades in a year, 154 of them profitable. The original band was ±0.5; at the same 5x leverage, it returned +151.5%, with a 59.7% drawdown. I only narrowed the band from ±0.5 to ±0.35 (changing both the upper and lower limits). The band was chosen by looking at the most recent 90 days; I’ll discuss the overfitting issue candidly later.

Over the most recent 30 days, HYPE fell 22.1%, while the strategy gained 62.4%: it opened 27 trades, 14 of them profitable. Its most profitable trade was a short opened at 67.644 at 04:00 on November 20 Beijing time. HYPE fell steadily until 18:00 on November 21, when MACD crossed back above the signal line and the position closed at 58.577, for a 13.4% gain based on price. The most recent trade was a long opened at 68.008 at 08:00 on December 1 and closed at 68.776 at 01:00 on December 2. At 15:00 on December 2 Beijing time, HYPE was at 66.749, and the strategy had no open position.

The example charts use real 1-hour Binance Futures HYPEUSDT candlesticks (Beijing time). Signals were recalculated offline using the source-code rules and match the backtest trade by trade; P&L is from a local backtest, with data through December 2 at 15:00 Beijing time.

Figure 1: The adjusted version, the original, and simply holding HYPE, all starting at 100 and using the same 5x leverage.

HYPE itself rose 110.0% over the year, climbing from 20.475 on January 22 to 98.057 on September 23 before falling back to 66.749. The strategy trades both long and short: 196 long trades, 78 profitable; 204 short trades, 76 profitable. With the same rules at 1x leverage, it returned +35.7% with a 14.7% drawdown; the +217.7% return came from scaling up to 5x, as did the 55.9% drawdown.

MACD measures how far apart two moving averages are; the band determines when positions can be opened

Figure 2: Top: candlesticks and short entries. Bottom: blue line is MACD, orange line is the signal line, and the purple band runs from −0.35 to +0.35.

MACD = 12-hour EMA − 26-hour EMA: when the shorter moving average is above the longer one, MACD is positive; when it's below, MACD is negative. The farther apart they are, the larger the value. The signal line is a 9-hour EMA of MACD itself, so it lags behind MACD. When MACD crosses above the signal line, upward momentum is strengthening; when it crosses below, momentum is weakening.

The band adds an extra gate to this strategy: it enters on a crossover only when MACD is between −0.35 and +0.35—that is, when the two moving averages are still close together and the market hasn't made a decisive move. If MACD is already outside the band, it means the move has already come a long way, so a crossover then only closes a position; it doesn't open a new one. Over the most recent 90 days, MACD and the signal line crossed 145 times. Of those, 73 were inside the band, and the strategy opened those 73 trades.

On the November 20 04:00 candle, MACD was 0.156 and the signal line was 0.169: MACD had been above the signal line on the previous candle, but dropped below it on this one. Since it was also within ±0.35, the strategy opened a short at the closing price of 67.644. The band is based on price: with HYPE above $60, 0.35 is about 0.5% of the price. If HYPE rose to $200 or fell to $20, the same 0.35 would mean something different.

Entry: open only on a crossover inside the band, then hold until a reverse crossover

Figure 3: Top: one short trade, with the shaded area showing when the position was held. Bottom: MACD over the same period. The entry is inside the band; the band is not considered for the exit crossover.

This trade opened short at 67.644 on November 20 at 04:00. HYPE then fell steadily. At 18:00 on November 21, MACD crossed back above the signal line, and the position closed at 58.577. It was held for 38 hours, for a 13.4% gain based on price. At the moment of exit, MACD was well below the band, so the strategy only closed the short; it did not reverse and go long. Each entry uses 30% of current equity at 5x leverage, for a notional position size of 1.5 times the account.

Exit: close on a reverse crossover; the stop-loss wasn't hit all year

Figure 4: The sequence of events after each 1-hour candle closes; the stop-loss is checked first.

All 400 trades over the year were closed on reverse crossovers; the 10% stop-loss was never hit. A trade was held for a median of 10 hours, with the shortest lasting 1 hour and the longest 52 hours. Only 154 trades were profitable—fewer than 40%: crossovers often reverse soon after they appear, leading to one small loss before moving on; the winners are the ones where the move continues after the crossover. The biggest loss based on price was a short opened at 32.478 on February 6 at 17:00 and closed on a reverse crossover four hours later at 34.381, a loss of 5.86%.

The stop-loss only kicks in when the high or low moves more than 10% away from the entry price. With a notional position size of 1.5 times the account, getting stopped out would cost roughly 15% of the account. It wasn't hit this year, but that doesn't mean it can't happen.

Most recent 30 days: HYPE fell 22.1%, and the strategy opened 27 trades

Figure 5: Most recent 14 days. ▲ long entry, ▼ short entry, × exit; dots in the chart below mark the entry candle.

HYPE moved sharply back and forth over these 30 days. The strategy opened 27 trades, 14 of them profitable. Run separately over the most recent 90 days, it returned 46.3% in the first 60 days and 62.4% in the most recent 30 days.

At 15:00 on December 2 Beijing time, HYPE was at 66.749, MACD was -0.312, and the signal line was -0.024. MACD was below the signal line and inside the band, with no open position. If MACD next crosses above the signal line while still within ±0.35, the strategy will go long. If MACD first drops below −0.35 and then crosses back up, it won't open a position.

What was changed in the parameters, and what did it deliver?

Figure 6: Only the band width is changed; everything else stays the same. Each setting is tested separately over the most recent 90 days.

The original uses MACD 12/26/9, a ±0.5 band, and a 10% stop-loss. I only narrowed the band to ±0.35: this makes the entry condition stricter, counting only crossovers when MACD is closer to the zero line. At the same 5x leverage, returns over the most recent 90 days changed from +96.9% with a 31.1% drawdown to +137.7% with a 17.4% drawdown. Over the most recent 30 days, returns went from +51.8% to +62.4%; over the first 60 days, from +29.7% to +46.3%. Over a full year, returns went from +151.5% to +217.7%. At 1x leverage, the adjusted version returned +35.7%, versus +32.0% for the original.

I tested 21 settings in total, changing only one parameter at a time. Band widths of ±0.25, ±0.3, and ±0.4 returned +115.4%, +104.3%, and +106.1%, all better than the original. Narrowing it further to ±0.2 returned just +67.2%; widening it to ±0.8–±2 returned +65.8% to +86.0%, with drawdowns rising to 40%–47%. Changing the stop-loss to 5%, 7%, 8%, 12%, or 15% produced exactly the same result as the original. Other signal-line and fast/slow-line lengths all performed worse than this setting.

Selection criteria: both the most recent 30 days and the preceding 60 days had to be profitable, drawdown couldn't exceed the original's, and the 5x return over 30 days couldn't exceed +300%. Sixteen settings met these criteria (including those with a changed stop-loss that performed the same as the original). I chose the one with the highest return over the most recent 90 days.

The band was chosen based on the most recent 90 days. The first nine-plus months of the year weren't used for selection: over that period, the adjusted version returned +33.6% versus +19.3% for the original. The adjusted version still did better, but the difference wasn't as pronounced as over the most recent 90 days.

It profits from the move that follows a crossover; choppy back-and-forth markets are the hardest

Figure 7: Monthly returns for the adjusted parameters.

It was profitable in 9 of 13 months. The best was January, at +76.8%: 39 trades, 18 profitable. The worst was February, at -42.2%: 45 trades, only 13 profitable. June also lost 25.8%.

The logic is in the rules: it bets that “a move will follow the crossover.” When a move really does follow, it rides it for a gain. When the crossover reverses soon after appearing and the market chops back and forth, it keeps opening trades and taking small losses. It trades both long and short; it doesn't favor either direction.

5 things people most often get wrong

Figure 8: The top row shows common misconceptions; the bottom row shows the actual rules.

Remember this after reading: enter only on a crossover inside the band; close on a reverse crossover.

This strategy only looks at MACD and its signal line crossing: it opens a position only when MACD crosses within ±0.35, trading both long and short; it closes on a reverse crossover. It profits from the move that follows a crossover, but takes small losses one after another when the market chops back and forth. The band width was chosen based on the most recent 90 days.

Three things anyone using it should remember

  • Enter only on a crossover inside the band; crossovers outside the band only close positions, they don't open them

  • Trades both long and short, with a notional position size of 1.5 times the account

  • The ±0.35 band was chosen based on the most recent 90 days

HYPE is down 22.1% over 30 days. Would you wait for MACD to cross back upward near the zero line before going long, or hold on to your short?

To see what happens if you switch this strategy to BTC, change the timeframe, or adjust the ±0.35 band, copy the sentence in quotes below and send it to Codex or Claude:

“Go to GitHub and help me download the quantitative research tool algorover”

#美国11月非农本周公布,BTC与美股走势会否分化? #量化交易 #HYPE #MACD #AlgoRover $HYPE $BTC