Download MetaTrader 5
To add comments, please log in or register
Do you wonder how to use widgets? Read the article!
Ng Yee Hong
7
Ng Yee Hong 2014.10.14 06:29 

Hi All.

I am new to MQL4 coding and am trying to code up my first automated trading system. I am looking to trade the largest absolute difference (among 10 currency pairs) between the opening price of the day and the closing price of the previous day. As such, I have to first define a new bar beginning. This is illustrated in the MQL4 book. However, to find out which currency pair among the 10 has the largest absolute difference between the opening price of the day and the closing price of the previous day, I would have to define a new bar beginning on all 10 currency pairs. Since an EA is attached to only a particular chart and hence particular currency pair, what would be the most efficient way of achieving my aim?

Thank you so much for your kind help!

Regards,

AizenSousuke

Carl Schreiber
5962
Carl Schreiber 2014.10.14 07:07  

Have you decided what you will consider as close and open time of the day?

a) 0:00 of your broker (with/without DST?), b) 0:00 GMT c) 0:00 London d) 0:00 New York, e) ...?

Anyway the time difference between the two bars is always a few seconds (or even less) except over the weekend how do you expect a big price difference?

/
To add comments, please log in or register