Strategies / S06
Price Above SMA 50
Long while price closes above the 50-day average.
Results
| Market class | Return | Holding | Sharpe | Max DD | Win rate | Trades |
|---|---|---|---|---|---|---|
| Crypto, 1d | +156% | +602% | 0.54 | -61.6% | 18.8% | 1,659 |
| Stocks, 1d | +3,187% | +28K% | 1.04 | -29.9% | 30.1% | 2,093 |
| Forex, 1d | -11.5% | +3.1% | -0.10 | -29.5% | 30.3% | 1,397 |
| Commodities, 1d | +307% | +1,833% | 0.45 | -42.4% | 28.3% | 1,235 |
| Indices, 1d | +265% | +878% | 0.57 | -22.2% | 28.6% | 1,181 |
The exact rule
- Go long when close crosses above SMA(50).
- Exit the long when close crosses below SMA(50).
- 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
Price Above SMA 200The simplest trend filter there is: above the 200-day average or in cash.EMA Ribbon 8/21/50Long only while three averages are stacked in order.Hull TrendLong while the Hull moving average is rising.
Research, not advice. Past results do not predict future ones. Results run to 2026-10-31.