Indicator guide

EMA Backtesting Guide

EMA is a moving average that gives more weight to recent prices. A valid backtest converts its readings into explicit, time-aware rules and evaluates them after costs without assuming profitability.

How EMA is commonly used

Researchers use EMA for trend filters, price crossovers, and fast/slow EMA crossovers. The indicator should be calculated only from information available at each simulated decision time.

Parameters to define

State the lookback period and price source. Parameter choices affect signal frequency and lag, so compare a limited, predefined range rather than selecting one value after reviewing the full history.

How to evaluate a test

Review net return, maximum drawdown, volatility, trade count, win/loss size, exposure, and behavior across subperiods. Compare with a simple benchmark and test unseen data.

Research checklist

  • lookback period and price source
  • Signal timing and execution price
  • Fees, spread, and slippage
  • Out-of-sample stability

Questions and answers

How do I backtest EMA?

Define the EMA calculation and signal rules, prevent future data from entering each decision, apply realistic execution costs, and validate on a separate period.

Continue your research