EMA Crossover Backtest
AAPL · 2020–2024 · 1,258 trading days · Strategy vs Buy & Hold
TRADING STRATEGY SIMULATION
Fast EMA
9
Slow EMA
21
Starting Capital
$10,000
What is EMA Crossover?
When the fast EMA crosses above the slow EMABUY. When it crosses below → SELL. A simple momentum strategy.
Strategy Return
total P&L
Buy & Hold
passive benchmark
Win Rate
winning trades
Max Drawdown
worst peak-to-trough
Sharpe Ratio
risk-adjusted return
Total Trades
round trips
Price + EMA Signals — AAPL
What you're seeing: The grey line is AAPL's actual closing price. The amber line is the fast EMA, the cyan line is the slow EMA. Green triangles = BUY signal (fast crosses above slow). Red triangles = SELL signal (fast crosses below slow).
Fast EMA
Slow EMA
BUY signal
SELL signal
Equity Curve — Strategy vs Buy & Hold
What you're seeing: How $10,000 grows over time. The amber line is the EMA strategy — it goes to cash when not in a trade. The cyan line is passive buy and hold. When amber beats cyan, the strategy is outperforming.
Trade Log — all completed round trips
# Entry Date Entry Price Exit Date Exit Price Return P&L ($) Result Holding Days