BTC fell below $60,000 again on Friday, while the Nasdaq rose 6.7% this week. This strategy ran on Binance’s QQQUSDT perpetual contract on the 1-hour chart, from April 7 (the second day after the contract launched) through today. Backtest: +72.3%, and +56.1% over the last 90 days (only one parameter changed, 5x leverage, fees included, maximum drawdown 13.9%). Backtest results; not investment advice.

It only goes long: when QQQ falls too far below its 200-hour moving average—more than 2.1 times the volatility over the most recent 200 hours—it buys one unit, up to a maximum of three. When the price rises back to the moving average, it sells everything. Over more than seven months, it opened 16 trades, 14 of them profitable. The original multiplier is 1.7; at the same 5x leverage, it returned +59.2% with a 15.2% drawdown. I changed only the multiplier, from 1.7 to 2.1. The data used to tune the parameter was that same seven-plus-month period; I’ll discuss the overfitting issue candidly later.

Over the past 30 days, QQQ futures fell 10.2%, while the strategy gained 48.1%: it opened 5 trades, and all 5 were profitable. The most recent trade bought at 611.62 at 00:00 on November 26 Beijing time. U.S. stocks were closed for Thanksgiving, but QQQ futures kept trading. At 10:00 on November 27 Beijing time, price moved back above the moving average, and the strategy sold at 644.09, for a gain of +5.31% on that trade. U.S. stocks closed higher on Black Friday, and by 03:00 on 11/28 Beijing time, QQQ futures were at 650.48. The strategy did not buy again and had no open position.

The example charts use real 1-hour Binance futures candles for QQQUSDT (Beijing time). Signals were recalculated offline according to the source-code rules and match the backtest trade by trade; profit and loss figures come from a local backtest, with data through 03:00 on 11/28 Beijing time.

Figure 1: The adjusted version and the original, both using 5x leverage, compared with simply holding QQQ; all start at 100.

Over these 7-plus months, QQQ futures rose 10.7%. Along the way, they fell from 762.61 on October 6 to 611.44 on November 21, a drop of 19.8%. The strategy is long only and holds a position just 24.5% of the time, staying in cash the rest of the time. The same rules at 1x returned +13.3%; the +72.3% came from scaling up to 5x, as did the 13.9% drawdown.

QQQ futures track the Nasdaq-100 ETF (QQQ), but they are perpetual contracts and can be traded after the U.S. stock market closes and on weekends. Of 37 buy orders, 21 were placed during U.S. market hours (9:30–16:00 Eastern Time), 14 during pre- or post-market hours, and 2 on weekends.

The oscillator measures just one thing: how far the closing price is from the 200-hour moving average

Figure 2: In the top chart, the orange line is the 200-hour moving average, and the purple vertical lines show the distance of the closing price from it; in the bottom chart, the purple line is the oscillator and the red dashed line is the lower band.

The moving average is a 200-hour EMA, which gives more weight to more recent candles. Oscillator = closing price − moving average: positive above the moving average and negative below it. The lower band is not a fixed value; it is 2.1 times the standard deviation of the most recent 200 oscillator readings, with a minus sign in front. When the market is more volatile, the lower band is deeper; when volatility is lower, it is shallower.

At 00:00 on October 31, the oscillator was -18.11 and the lower band was -17.68. The previous candle was still above the lower band, but this one dropped below it, so the strategy bought its first lot. In other words, this drop was 2.1 times larger than the volatility it had typically seen over the previous 200 hours.

Entry: buy one lot when price breaks below the lower band, up to 3 lots

Figure 3: The top chart shows a trade that bought all three lots; ▲ marks each lot's buy point, and the shaded area shows when the position was held. The bottom chart shows the oscillator over the same period, with green dots for buys and orange dots for sells.

This trade bought at 695.73 at 00:00 on October 31, at 682.81 at 05:00 on November 3, and at 682.5 at 13:00 on November 3, for an average price of 687.05. At 23:00 on November 4, the oscillator crossed back above 0, and all three lots were sold at 699.05. The position was held for 119 hours, for a return of +1.75% based on the average price.

For a new “break below” to count, the oscillator must first return above the lower band and then drop below it again; at most one lot can be bought per candle. Across 16 trades over 7-plus months, 8 bought all 3 lots, 5 bought 2 lots, and 3 bought just 1. Each lot is 1.5 times equity at the time (5x × 30%); buying all three means a position size of 4.5 times equity.

One more detail: to count how many lots have “already been bought,” it divides the position cost by “initial capital × 5x × 30%” and rounds to the nearest whole number. After the account has gained more than 20%, two lots can be counted as three, so the third lot is no longer bought. This happened twice over these 7-plus months.

There are only two exit conditions: price returns to the moving average, or drops 15% below the average entry price

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

All 16 trades were sold when the oscillator crossed back above 0, and the stop-loss was never triggered. While positions were open, the deepest drop below the average entry price was 6.6% (the trade on November 20), still well short of 15%. The median holding time per trade was 75 hours, with the shortest at 24 hours and the longest at 198 hours.

The stop-loss is based on the average entry price and compared with the candle's low. When all three lots are bought, the nominal position size is 4.5 times equity. If price really fell 15% below the average entry price and triggered the stop-loss, the account would lose more than 60%. It hasn't happened in these 7-plus months, but that doesn't mean it can't: the strategy is long only, and if QQQ falls and never returns to the moving average, it will keep holding.

Past 30 days: QQQ fell 10.2%; the strategy opened 5 trades

Figure 5: The top chart shows ▲ for a one-lot buy and × for a full exit; the bottom chart shows the oscillator and lower band.

The stretch when QQQ fell all the way from 763 was when the strategy was busiest: it opened 5 trades and bought 10 lots over the past 30 days, and all 5 trades were profitable. Over 90 days, the oscillator broke below the lower band 24 times; the strategy bought 21 lots, forming 9 trades.

At 03:00 on 11/28 Beijing time, QQQ was at 650.48, the moving average at 642.07, the oscillator at 8.41, and the lower band at -33.08. Based on the moving average and lower band at that moment, QQQ would have to fall to around 609 for the strategy to buy another lot; the moving average and lower band change every hour.

What the parameter changes did—and what they achieved

Figure 6: Like-for-like comparison of the original and adjusted versions on the left; the changes are listed on the right.

The original uses a 200-hour moving average, a multiplier of 1.7, a maximum of 3 lots, and a 15% stop-loss. I changed only the multiplier, from 1.7 to 2.1: the lower band is deeper, so price has to fall further before it buys. At the same 5x leverage, over 7-plus months the return went from +59.2% with a 15.2% drawdown to +72.3% with a 13.9% drawdown. Running the most recent 90 days alone, it went from +38.0% to +56.1%; over the most recent 30 days, from +30.3% to +48.1%. At 1x, the adjusted version returned +13.3%, versus +11.8% for the original.

All 54 parameter combinations in the grid were profitable at 5x (QQQ itself rose during this period, and the strategy is long only), with a median return of +45.5%. Moving-average length had the biggest impact: changing it to 100 produced returns of just +5.3% to +17.2%, and some combinations lost money over the most recent 90 days; changing it to 300 produced +27.8% to +45.5%. Changing the multiplier to 2.5 resulted in 12 winning trades but a return of just +42.9%; changing it to 1.5 returned +44.9%, but drawdown rose to 24.1%. With the original parameters, changing the stop-loss to 8%, 10%, or 20% produced identical results. Buying a maximum of just 1 lot returned +18.5%; a maximum of 2 lots returned +48.5%.

The selection criteria were: profitable since launch, over the most recent 90 days, over the most recent 30 days, and over the 60 days before that, with no greater drawdown than the original. Sixteen combinations met the criteria (including the original and the 3 combinations where changing the stop-loss produced identical results to the original); I chose the one with the highest return over the most recent 90 days. Nearby combinations varied: a 190-hour moving average and 2.1 multiplier returned +68.2%; 180 hours and 2.0 returned +70.7%; 200 hours and 2.0 returned just +59.5%; and a 2.2 multiplier returned +59.1%. A small parameter change can shift results by ten or more percentage points.

QQQ futures only launched in April, so the parameters were selected using these 7-plus months. There is no earlier futures data to test them against; keep that in mind.

It profits from “a big drop followed by a bounce”; steady rises and steady falls both give it trouble

Figure 7: Monthly returns using the adjusted parameters.

It was profitable in 3 of the 8 months and opened no trades in 2. In April and May, QQQ rose steadily, the oscillator never reached the lower band, and the strategy stayed out of the market. Most of the gains came in July (+16.5%), September (+10.9%), and November (+40.2%). The worst month was October, at -4.6%, with most of the loss coming from this trade: on October 14, it bought 2 lots at an average price of 735.58. The moving average kept falling, and when the oscillator crossed back above 0, the price was only 725.69, so the position was sold at a 1.34% loss.

The logic is in the rules: it bets that “after a big drop, price will bounce back to the moving average.” When QQQ chops around, dropping and then bouncing back, it keeps picking up bargains. When it rises steadily, it gets no chance to buy; when it keeps falling and never returns to the moving average, it will buy all three lots and hold them.

5 things that are easiest to get wrong

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

Remember this after reading: buy in batches when price breaks below the lower band; sell everything when it returns to the moving average

This strategy follows just two signals: when the oscillator falls below the lower band (−2.1 times volatility), buy one lot, up to 3 lots; when the oscillator crosses back above 0, sell everything. It profits from the part where QQQ “bounces back after a big drop.” If price keeps falling and never returns to the moving average, it will keep holding; the parameters were selected using the 7-plus months since QQQ futures launched.

Three things users of this strategy should remember

  • Buy one lot when price breaks below the lower band, up to three lots; sell everything when it crosses back above 0

  • Long only; stop-loss is based on average entry price; maximum position size is 4.5 times equity

  • Parameters were selected using these 7-plus months; there is no earlier data

QQQ fell from 763 to 611 and then bounced back to 650. Would you buy in batches on the way down, or wait until it gets back above the moving average?

If you want to see what happens when this strategy is switched to SPY, uses a different timeframe, or changes the multiplier from 2.1, copy the sentence in quotation marks below and send it to Codex or Claude:

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

#BTC跌破6万美元一小时清算近2亿 #量化交易 #QQQ #美股 #AlgoRover