Home โ€บ Trading glossary โ€บ Backtesting
๐Ÿ“– Glossary ยท Strategy

What is Backtesting?

Testing trading rules on historical data.

Backtesting explained with an example

You test a rule โ€” "buy EUR/USD when the 1-hour close is above the 50 EMA and RSI pulls back to 40" โ€” on two years of data. It shows 180 trades, a 46% win rate and an average win of 1.8R. That suggests a positive expectancy worth forward testing.

How traders use it

A backtest is a first filter, not proof. Good backtests include spread, commission and slippage and use data the rules were not tuned on.

Good to know

Split your data: build the rules on one period and test them on another the rules have never seen (out-of-sample testing). Then forward test on a demo or small live account for several weeks. Results that hold up in both stages are much more trustworthy than a single backtest.

Common mistakes

  • Tuning settings until the backtest looks perfect (overfitting).
  • Testing indicators that repaint, which makes past signals look better than they were.
๐Ÿงฎ Try it free: Expectancy Calculator โ†’

Learn more in the CROZAX Academy

Frequently asked questions

What is Backtesting in trading?

Testing trading rules on historical data.

How many trades does a backtest need?

More is better; under about 50 trades the results are mostly noise.

Can I backtest on MetaTrader?

Yes. MetaTrader 4 and 5 include a Strategy Tester for automated rules, and you can also backtest manually by scrolling back through charts and recording each setup in a journal.

Related terms

Original educational content by CROZAX. Examples use illustrative prices. Not financial advice โ€” trading involves risk.