BK Corp Club logoBK CORP CLUBTRADING AUTOMATION INSIGHTS

MT5 TESTING GUIDE · BK CORP CLUB

How to Backtest an Expert Advisor in MetaTrader 5

A practical Strategy Tester workflow for checking an EA's settings, historical behaviour, drawdown and execution assumptions before demo testing.

· Educational guide · BK Corp Club Editorial Team

Backtesting lets you examine how an Expert Advisor (EA) would have behaved on historical market data using defined settings. It is a useful screening step before demo testing, but it is not a forecast and cannot prove that an EA will make money in future markets.

1. Start with the EA's documented requirements

Confirm the EA's supported symbol, timeframe, trading hours and recommended settings. Check whether it trades one instrument or multiple instruments. If it is designed for a broker-specific symbol, select the correct symbol from that broker's Market Watch list.

2. Open the Strategy Tester

In MetaTrader 5 desktop, open View → Strategy Tester or press Ctrl+R. Select the Expert Advisor. The official MetaTrader 5 Strategy Testing documentation explains the available test modes and settings.

3. Select the symbol and timeframe

Choose the same instrument and timeframe described by the EA developer. A test on a different symbol or timeframe may not represent the conditions the EA was designed for. For multi-currency EAs, enable the required symbols and check that the tester has the necessary history.

4. Choose a meaningful date range

Avoid judging an EA from a short period that happens to suit its strategy. Use a period that includes different market conditions where data is available. Record the start and end dates so you can reproduce the test.

Keep a portion of historical data separate for forward testing. Do not repeatedly tune settings against the same period and then present that period as independent proof.

5. Choose the modelling method carefully

The tester offers different tick-generation modes. “Every tick based on real ticks” uses available broker tick history and can provide a more detailed view of intrabar price movement. Simpler modes such as “1 minute OHLC” or “Open prices only” may be faster, but can be unsuitable for strategies that depend on tick-level execution.

6. Match the deposit and leverage assumptions

Set a starting deposit, account currency and leverage relevant to the account you intend to evaluate. Also check commission, spread and swap assumptions where available. Unrealistic costs or leverage can give a misleading picture of exposure.

7. Include execution delays

A backtest with ideal fills may not reflect live execution. Where the tester supports it, evaluate fixed or random delays and compare the results. Slippage, requotes, spread widening and broker execution rules can affect live outcomes.

8. Review more than net profit

Review maximum balance and equity drawdown, number of trades, distribution of wins and losses, profit factor, average trade, consecutive losses, exposure and margin usage. A smooth balance curve can hide floating losses; equity drawdown matters when positions remain open.

9. Be careful with optimization

Optimization runs an EA with different parameter combinations. It can help explore settings, but excessive tuning can overfit a strategy to historical data. If a small parameter change causes results to collapse, investigate rather than selecting the best-looking result.

Keep a separate forward period and compare its behaviour with the in-sample test. Document the EA version and exact settings used.

10. Move to demo testing

If the backtest passes your own checks, run the EA on a demo account under realistic broker conditions. Monitor its logs, connectivity, order handling and risk settings. Do not move to a live account simply because a historical report looks attractive.

Keep a reproducible test record

Save the EA version, preset, symbol, timeframe, date range, modelling mode, deposit, leverage, costs and report. This makes it easier to compare tests and identify what changed.

Explore MetaTrader 5 automation

BK Corp Club provides MetaTrader 5 Expert Advisors with product information, rental options and setup guidance. Review each product's requirements and licence details before deciding whether to test it.

Explore the BK Corp Club EA Shop.

Backtesting is a historical simulation, not a guarantee or prediction. Educational information only; not financial or investment advice. Trading leveraged products involves substantial risk and losses are possible.

← All MT5 guides · White-label EA licensing