Download MetaTrader 5

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

To add comments, please log in or register
Have you developed an application? Publish it in Code Base!
gortonz
12
gortonz 2015.05.22 11: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 

Sejal Arora
5
Sejal Arora 2015.05.22 11:39  
what do you means by MT4, i think this is any platform?
Keith Watford
Moderator
9644
Keith Watford 2015.05.22 11: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
ffoorr
1016
ffoorr 2015.05.22 18: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

To add comments, please log in or register