Software >> MT4 Trading Simulator Pro >> Tips & tricks

Tips & tricks

This section presents a bunch of useful hints, which can help you when trading with MT4 Trading Simulator Pro or when backtesting any EA.

Downloading historical data from your broker

Since MT4 Trading Simulator Pro works as an Expert Advisor (EA), it uses the same historical data as any other EA in Metatrader. It does not download or provide any own data. It means that the length of the simulation is limited by the amount of data stored in your MT4. Therefore, always make sure that you have enough historical data before starting the simulation.

Please also note that the availability of data varies between timeframes. Usually there is much more history on higher timeframes (W1, D1, H4) than on lower timeframes (M1, M5, M15), but everything depends on your broker.

In order to download more data from your own broker follow these instructions:

  1. Navigate to Tools -> Options -> Charts and set Max bars in history and Max bars in chart to a very large number, such as 1000000.
  2. Restart Metatrader.

  3. Open a chart of the instrument you are going to use, disable Auto Scroll and scroll the chart into the past as far as you can. You can do it using the Home key or with your mouse. Do it as long as new bars appear.
    Disabling autoscroll
  4. Repeat this procedure for every timeframe. Scrolling your charts back will force Metatrader to download all available historical data.

Downloading historical data from Metaquotes - History Center

You may be tempted to go to Tools -> History Center and simply click the Download button. However, it may not always be a good idea. This button will download price data from Metaquotes servers, not from the server of your broker! It may lead to having mixed data and other problems. In general, using this button should be avoided in most cases.

However, if you have a Metaquotes demo account, this method is a valid and useful way of obtaining historical data. Metaquotes account can be opened by going to File -> Open an Account and entering 'Metaquotes' in the +Add new broker... field in the bottom of the list. With Metaquotes demo account you can use the Download button in Tools -> History Center without any risk.

Opening Metaquotes demo account

Auto-loading templates

Did you know that your favourite template can be loaded automatically when starting a trading simulation or a backtest? If you are using MT4 Trading Simulator Pro, you can simply save your template as mt4 trading simulator pro.tpl and Metatrader will load it automatically.

If your are backtesting an expert advisor, you should save your template with the same name as your EA. Metatrader will search for the template with the same name as backtested EA and load it. If no such template is found, it will use the default tester.tpl template, so another way to auto-load a template is to save it as tester.tpl.

Spread setting

You have probably noticed the spread setting box when launching the trading simulator or any EA backtest. What is important is that spread is fixed during the whole run. Metatrader 4 has no information about the history of spread, so the best it can do is to use the same value during the whole test.

If we set it to current, it will use the last recorded size of spread. If we make a simulation or a backtest many times using the current setting, we will probably use different spreads each time and get different results. Besides, the current value may sometimes be quite unrealistic, especially during weekends or periods of high market volatility. It is good to keep that in mind or simply enter the size of spread manually.

Spread setting