Relative Strength Long/Short Trading Bot Template
Not a trend-breakout bot: every 4h it ranks the 30 most-liquid Binance perps (chosen by volume at that time) by their volatility-adjusted 7-day return, buys the top 10% and shorts the bottom 10%. Each trade has a 3 ATR stop and closes after 7 days. Bets on leaders vs laggards, not on the market direction.
Tested result
Passed out-of-sample Profitable on data it was not tuned on and passed every luck/overfitting check. Still not a guarantee.
Test: Binance USD-M Futures, all perps incl. delisted (830 markets), 4h, 2019-09-08 to 2026-11-19, out-of-sample from 2024-09-21. Run 2026-11-19 19:40 EST.
| Average month (whole test) | +2.60% |
|---|---|
| Average month (out-of-sample) | +2.14% |
| Max drawdown | -23.5% |
| Average month (in-sample / design period) | +2.80% |
| Walk-forward periods profitable | 5 of 5 |
| Luck checks | beats 100% of random-entry versions; deflated Sharpe 1.00 after 15 variants tried (needs 0.95+) |
| Trades | 4252 |
| Win rate | 44.1% |
| Profit factor (all / out-of-sample) | 1.20 / 1.20 |
By market regime
| Regime | Days | Avg month |
|---|---|---|
| bull | 1434 | +3.08% |
| bear | 950 | +3.18% |
| chop | 246 | -0.41% |
Template results are real backtests from this engine on the listed coins and dates, after fees, slippage and funding. None is a promise. A template is labeled "Passed out-of-sample" only if it passed every check.
Open this template in the workshop
Results not guaranteed. Backtests are hypothetical; trading risks loss of capital.