Download MetaTrader 5

How can I run a MT4 Expert Advisor with historical data?

To add comments, please log in or register
gortonz
12
gortonz  

I am new to MQL4 program. I want to write an expert advisor program and test it with MT4 historical data, not live data? It would be appreciated if someone could provide me some ideas on how to do this.

Thanks, Gorton 

Sejal Arora
5
Sejal Arora  
what do you means by MT4, i think this is any platform?
Keith Watford
Moderator
10566
Keith Watford  
gortonz:

I am new to MQL4 program. I want to write an expert advisor program and test it with MT4 historical data, not live data? It would be appreciated if someone could provide me some ideas on how to do this.

Thanks, Gorton 

Write the EA, run it in the strategy tester. Simple
ffoorr
1076
ffoorr  

to download historical data,


Close all charts


go to tool > option > charts, in the historical bars put 9999999999999999999999999 and also in the other window (max bar chart)


Close MT4


go to where your MT4 is stored, delete evirything in the folder "history".


switch on MT4, go to tool > archives > double click EURSUD 1 Mn, click download, do the same for all the timeframe.


When it is one, close MT4, re open MT4, refresh data.


go to tool > option > charts,  put 5000 ( bars )  in the right window

To add comments, please log in or register