Download MetaTrader 5

EA only trade New York session

To add comments, please log in or register
Use MQL5 Cloud Network. It is secure!
XIn Li
335
XIn Li 2013.01.11 21:43 
For  EA backtesting, how can I program EA only to open trade on New York Session in MT4 and MT5? in History data, is the time is GMT time or else?
phi nuts
2184
phi nuts 2013.01.12 01:59  
xlitang:
For  EA backtesting, how can I program EA only to open trade on New York Session in MT4 and MT5? in History data, is the time is GMT time or else?

Well, the answer is the same with forward testing : how do you set the EA to trade only to certain time.

Time of historical data in MT5 is a broker time. In MT4, time of historical data is depend on where you get the data, and also in MT4 you can - sort of - create your own historical data .

XIn Li
335
XIn Li 2013.01.12 06:27  
phi.nuts:

Well, the answer is the same with forward testing : how do you set the EA to trade only to certain time.

Time of historical data in MT5 is a broker time. In MT4, time of historical data is depend on where you get the data, and also in MT4 you can - sort of - create your own historical data .

Thanks for your reply. in EA forward testing, I set EA to trade in PC local time. however in back testing, I cannot use PC local time. so what time should I use to identify broker time in Mt5 corresponding to New York session time?

phi nuts
2184
phi nuts 2013.01.14 08:03  
xlitang:

Thanks for your reply. in EA forward testing, I set EA to trade in PC local time. however in back testing, I cannot use PC local time. so what time should I use to identify broker time in Mt5 corresponding to New York session time?

I knew the answer for this but couldn't find the reference.at that time.

Here we go : Simulation of Time in the Strategy Tester

XIn Li
335
XIn Li 2013.01.14 19:04  
phi.nuts:

I knew the answer for this but couldn't find the reference.at that time.

Here we go : Simulation of Time in the Strategy Tester

Thank you .
To add comments, please log in or register