Strategies / S38
Stretch Below SMA 20
Buy 2% below the 20 SMA, sell back at it.
Results
| Market class | Return | Holding | Sharpe | Max DD | Win rate | Trades |
|---|---|---|---|---|---|---|
| Crypto, 1d | +35.2% | +602% | 0.34 | -67.2% | 69.0% | 1,967 |
| Stocks, 1d | +585% | +28K% | 0.53 | -31.4% | 72.1% | 1,794 |
| Forex, 1d | +8.3% | +3.1% | 0.11 | -17.0% | 59.3% | 376 |
| Commodities, 1d | +164% | +1,833% | 0.35 | -41.9% | 70.4% | 1,035 |
| Indices, 1d | +92.5% | +878% | 0.26 | -44.8% | 71.6% | 757 |
The exact rule
- Go long when close is below 0.98 x SMA(20).
- Exit the long when close is above SMA(20).
- 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
CCI ReversionBuy CCI crossing back above -100, sell over +100.Money Flow ReversionBuy the Money Flow Index under 20, sell over 80.Z-Score ReversionBuy two standard deviations under the mean, sell back at it.
Research, not advice. Past results do not predict future ones. Results run to 2026-10-31.