Strategies / S01
EMA 9/21 Cross
Long while the 9 EMA is above the 21 EMA.
Results
| Market class | Return | Holding | Sharpe | Max DD | Win rate | Trades |
|---|---|---|---|---|---|---|
| Crypto, 4h | +203% | +518% | 0.58 | -63.1% | 27.3% | 6,564 |
| Stocks, 1d | +4,390% | +28K% | 1.12 | -25.0% | 37.3% | 1,279 |
| Forex, 1d | +0.6% | +3.1% | 0.03 | -18.8% | 34.2% | 814 |
| Commodities, 1d | +376% | +1,833% | 0.49 | -31.5% | 35.7% | 750 |
| Indices, 1d | +296% | +878% | 0.59 | -25.8% | 38.0% | 707 |
The exact rule
- Go long when EMA(9) crosses above EMA(21).
- Exit the long when EMA(9) crosses below EMA(21).
- Declared timeframe: 4h.
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 9/21 Long & ShortAlways in the market, on the side of the 9/21 EMA cross.EMA 20/50 CrossA slower cross that sits out more of the chop.Golden CrossLong while the 50 SMA is above the 200 SMA.
Research, not advice. Past results do not predict future ones. Results run to 2026-10-31.