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

Back to topics list To post a new topic, please log in or register
avatar
2
gortonz 2015.05.22 13:11
 

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 

avatar
2
Hotspa19 2015.05.22 13:39 #
 
what do you means by MT4, i think this is any platform?
avatar
Moderator
3406
GumRai 2015.05.22 13:49 #
 
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
avatar
250
ffoorr 2015.05.22 20:40 #
 

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

Back to topics list  

To add comments, please log in or register