$BTC Over these 30 days, it fell from 80,002.0 to 58,710.8, a drop of 26.6%. Open interest in Binance BTC perpetual futures is still $5.76 billion, and 73.1% of accounts are long: after a month of declines, more than seven in ten accounts are still betting on a rise.
Over the same period (Oct. 26, 16:00 to Nov. 25, 16:00 Beijing time), a stochastic RSI double-line crossover strategy on the BTC 4-hour chart earned 72.9% using 5x leverage, with a maximum drawdown of 25.0% along the way. It also earned 63.8% in the preceding 60 days. I tuned the parameters; the results below are reported as they are. Backtest data; not investment advice.
When choosing it, I downloaded 100 recently profitable strategies from the strategy store and ran each with its default parameters. Of the 79 that produced results, 31 were profitable both in the most recent 30 days and the 60 days before that. This strategy was one of them: 26 trades over 90 days, a 65% win rate, and enough trades to include both wins and losses. Only then did I tune its own parameters.

Figure 1: BTC 4-hour candles above; the arrows show each trade from entry to exit. The account is below, starting at 100.
How does it determine when the K line crosses the D line?
It checks once every 4 hours. First, it calculates the RSI over 14 periods, then looks at where that RSI falls within the last 28 periods, from 0 (the lowest) to 100 (the highest). It smooths this over 3 periods to get the K line, then smooths K over 3 periods to get the D line.
When K is below 25 and crosses above D, it goes long; when K is above 75 and crosses below D, it goes short. When an opposite signal appears, it closes the current position and reverses. The stop-loss is 5%: if the high or low of a 4-hour candle reaches a point 5% away from the entry price, it closes at that candle’s closing price, then stays out of the market until the next signal.

Figure 2: The most profitable trade. Below, the yellow line is K and the blue dashed line is D; green shading marks long positions and red shading marks short positions.
On 11/18 at 00:00, K crossed D at 89.7, and it went short at 64,083.1. An opposite signal appeared on 11/21 at 12:00, and it closed at 56,704.7, a price drop of 11.51%.
I tuned the parameters: what I changed and how I chose them

Figure 3: Original and tuned parameters, both using 5x leverage over the same 90 days.
With the original parameters and 5x leverage, returns were +42.0% over the most recent 30 days and +79.0% over the previous 60 days. I tested 54 parameter sets, keeping only those that were profitable over both the most recent 30 days and the previous 60 days, had no greater drawdown than the original, and had a win rate no higher than 80%. That left 8 sets. I chose the one with the highest 90-day return: stochastic window 21 → 28, long threshold 20 → 25, short threshold 80 → 75.
After tuning, returns were +72.9% over the most recent 30 days and +63.8% over the previous 60 days, so it earned a little less than the original. The 90-day drawdown was 25.0% (26.0% for the original). The tuning and results shown use the same 90-day period, so these are in-sample results; with a different market period, the tuned parameters may not outperform the original.
Review: 11 trades in 30 days, 7 wins and 4 losses

Figure 4: Every trade closed during these 30 days.
The most profitable trade returned +11.51%, and the biggest loss was -6.29%. Four of 5 short trades were profitable; the 6 long trades split evenly, with 3 wins and 3 losses. The combined price movement was -0.65%, essentially breakeven; most of the profits came from short trades. Both stop-losses closed at the candle’s closing price, so the losses exceeded 5%: -5.15% and -6.29%.
Now: no open positions, waiting for K to reach either extreme

Figure 5: What it’s waiting for before making its next move.
After the short position opened on 11/24 at 00:00 hit its stop-loss, it stayed out of the market. As of 11/25 at 16:00 Beijing time, BTC was at 58,710.8, with K at 50.7 and D at 53.8—both in the middle. K needs to fall below 25 and then cross above D for a long entry, or rise above 75 and then cross below D for a short entry.
The cost
It uses 64% of its funds per trade with 5x leverage, so each position is 3.2 times the account. If the price moves 5% against the position, the account loses 16%; closing at the candle’s close can mean an even bigger loss. The maximum drawdown over these 30 days was 25.0%, from 11/22 at 04:00 to 11/24 at 00:00 Beijing time—around the stop-loss on the final short trade. It was also the largest drawdown in the 90-day period. With the same parameters at 1x leverage, the 30-day return was +14.3%, with a 5.3% drawdown.
My take: it trades against the move when K is near the bottom or top. BTC fell throughout these 30 days, so the short trades benefited from the decline. During a sharp one-way move up or down, a position opened against the trend can easily hit its stop-loss.
How to interpret these results
It was selected from 100 strategies based on recent backtests, then tuned on the same data, so the results are likely optimistic. They could differ in another market period.
There were 11 trades in 30 days and 24 in 90 days—not large samples. The backtest assumes trades execute at 4-hour candle closes; live trading will involve slippage.
The candles in the charts are real BTC perpetual-futures candles; trades and account results come from a local backtest. I recalculated the rules offline from the source code and verified that they match every backtested trade. Data as of 11/25 at 16:00 Beijing time.
K is around 51 now. Do you think it’ll wait for a long signal or a short signal before its next trade?
To see how this strategy performs with a different coin or timeframe, 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”
