How to backtest an Expert Advisor in MetaTrader 5
Compile the .mq5 Expert Advisor in MetaEditor. In desktop MetaTrader 5, open Strategy Tester, select the EA and broker symbol, set the timeframe and dates, and run the test.
Compile the EA
From an approved PipsProof rulebook, export the MetaTrader 5 Expert Advisor in Code & test. Place the source under MQL5/Experts in the terminal’s data folder. Open it in MetaEditor and compile with F7. Resolve compiler errors, then refresh the Expert Advisors list if the EA is missing.
Use the broker’s symbol and history
Choose the exact broker symbol, including any suffix, and the rulebook’s approved timeframe. Select the dates, starting deposit, and currency. Where available, select the real-tick testing mode. For PipsProof exports, set the broker UTC offset for the dates you test, including any daylight-saving change.
Use the Journal to investigate zero trades
Look for the PipsProof diagnostic summary. A missing setup and a blocked order are different outcomes. Check whether the tester found any matching conditions, then look for spread, margin, minimum lot size, or stop restrictions. Visual mode can help you compare the rule drawings with your teaching examples.
Review results before changing rules
Record the broker symbol, model, costs, date range, and export version. Import the report into PipsProof to review loss patterns and possible changes, then rerun the native test on a separate range.
Do I need to pair MT5 to test a PipsProof EA?
The PipsProof EA runs simulated orders in MT5 Strategy Tester without pairing. Leave AllowTrading and AllowLiveAccount off for the test.