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

 

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 

 
what do you means by MT4, i think this is any platform?
 
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
 

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

Reason: