Strategies / S07
Price Above SMA 200
The simplest trend filter there is: above the 200-day average or in cash.
Results
| Market class | Return | Holding | Sharpe | Max DD | Win rate | Trades |
|---|---|---|---|---|---|---|
| Crypto, 1d | -44.9% | +602% | 0.00 | -76.4% | 9.8% | 787 |
| Stocks, 1d | +4,501% | +28K% | 1.10 | -33.5% | 25.9% | 879 |
| Forex, 1d | -2.5% | +3.1% | 0.00 | -22.1% | 25.2% | 591 |
| Commodities, 1d | +307% | +1,833% | 0.43 | -40.1% | 21.5% | 564 |
| Indices, 1d | +508% | +878% | 0.76 | -17.7% | 26.4% | 462 |
The exact rule
- Go long when close crosses above SMA(200).
- Exit the long when close crosses below SMA(200).
- 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
EMA Ribbon 8/21/50Long only while three averages are stacked in order.Hull TrendLong while the Hull moving average is rising.MACD CrossLong from the MACD crossing its signal line until it crosses back.
Research, not advice. Past results do not predict future ones. Results run to 2026-10-31.