Testing an Expert Advisor in the Strategy Tester before you buy it
Every robot on the MQL5 Market has a free demo version. It runs only in the Strategy Tester, which is enough to see how it behaves on your broker's prices before you pay.
Get the demo
Open the product page on the MQL5 Market and press Free Demo, or open the Market tab in the Toolbox of your MetaTrader 5 terminal, find the product and press Demo. The demo appears under Expert Advisors, Market, in the Navigator.
Set up the test
- Open the Strategy Tester with Ctrl+R and pick the Expert Advisor.
- Symbol and timeframe: start with the one the robot was built for. FxBotLab works on any timeframe; H1 and M15 are the usual choices.
- Modelling: "Every tick based on real ticks" is the slowest and the closest to reality. "1 minute OHLC" is a good quick check. Avoid "Open prices only" for robots with stops and targets.
- Period: at least a year. A few weeks says almost nothing.
- Deposit and leverage: use the amount you would really trade. A robot that sizes trades from the balance behaves differently on 1,000 USD and on 100,000 USD.
- Delays: add a random delay if your terminal is not on a VPS close to the broker.
Read the report honestly
- Number of trades. Under about 30 trades the result is mostly luck.
- Maximal drawdown. Ask yourself whether you would have kept the robot running through it.
- Costs. Test again with a wider spread than today's. If the result turns from profit to loss with half a pip more, the edge is thin.
- Other periods and symbols. A rule that only works on one symbol in one year was probably fitted to that year.
Things the tester cannot show
News filters that read the economic calendar do nothing in the tester, slippage on fast moves is milder than in real trading, and the tester's spread is only as good as your broker's tick history. After the tester, run the robot on a demo account for a few weeks. FxBotLab refuses real-money accounts until you switch on AllowRealMoney, so demo is the default.
A good backtest is not a promise of future results. It is a way to find out cheaply that a rule does not work.