Strategies / S30
Dip or Breakout
Takes whichever comes first: an RSI dip or a 20-day high.
Results
| Market class | Return | Holding | Sharpe | Max DD | Win rate | Trades |
|---|---|---|---|---|---|---|
| Crypto, 1d | -8.6% | +602% | 0.05 | -45.0% | 40.8% | 2,599 |
| Stocks, 1d | +3,572% | +28K% | 1.00 | -36.1% | 50.4% | 1,739 |
| Forex, 1d | -0.3% | +3.1% | 0.02 | -26.4% | 38.9% | 126 |
| Commodities, 1d | +695% | +1,833% | 0.63 | -51.0% | 46.7% | 857 |
| Indices, 1d | +445% | +878% | 0.53 | -51.1% | 48.2% | 461 |
The exact rule
- Go long when RSI(14) crosses below 35 or close is above the 20-bar high.
- Stop: 8% from entry.
- Target: 12% from entry.
- Declared timeframe: 1d.
Explain it with Ask AI (Premium, on a desktop)
Watch it trade
This runs the same engine in your browser on the latest candles, with your own costs. Press Replay to watch every entry and exit arrive bar by bar.
Download
Pine ScriptFor TradingView
Paper botRuns on the Bot API, no real money
Python backtestOne file, no dependencies
READMEThe rule in plain words
Want it to run by itself? Read the automate guide, and use paper money first.
Related strategies
Donchian Long & ShortGoes with whichever side breaks a 20-bar range.Bollinger BreakoutBuy a close above the upper band, exit at the mid-line.Keltner BreakoutBuy a close above the Keltner channel, exit at its mid-line.
Research, not advice. Past results do not predict future ones. Results run to 2026-10-31.