🎯 STRATEGY
EMA Cross Backtest
On-chart backtesting overlay that simulates a simple fast/slow EMA crossover strategy directly on visible price history, marking historical entry and exit signals.
188KUses
15300Likes
0Comments
Live Demo — EMA Cross Backtest applied to NIFTY 50 (illustrative)
PriceEMA(9)EMA(21)SMA(20)
What is EMA Cross Backtest?
An on-chart simulation tool that applies a fast/slow EMA crossover strategy to visible price history and marks every historical entry/exit it would have generated.
How It Works
- Two EMAs are calculated:
fastandslowperiod. - A long entry is marked when fast crosses above slow.
- A short/exit is marked when fast crosses below slow.
- Each historical crossover is plotted as a marker, letting you visually review performance.
Parameters
| Parameter | Default | Description |
|---|---|---|
| fast | 9 | Period of the fast EMA |
| slow | 21 | Period of the slow EMA |
Signal Interpretation
- Frequent, tightly-spaced markers indicate a choppy period where the strategy would whipsaw.
- Widely-spaced markers indicate strong sustained trends where the strategy performed well.
- Clusters of quickly-reversed signals suggest unfavorable current conditions.
- A fresh crossover aligning with a Trending regime carries more weight.
- Consistently profitable-looking historical crossovers suggest the instrument trends well.
Tips & Best Practices
- Use to gauge whether crossover fits the current symbol/timeframe before relying on live signals.
- Widen the fast/slow gap to reduce whipsaw at the cost of slower signals.
- Cross-check with Market Regime — crossovers perform best in Trending regimes.
