Download MetaTrader 5
To add comments, please log in or register
MQL5 library has more than 1500 apps already. Contribute your own one!
Sherif Hasan
7223
Sherif Hasan 2015.11.20 15:51 

Hi!

Currently i use manual input for London Market open hour time. is this possible to detect automatically with all years.

eg:

Winter session London open at +8:00 GMT

other session London Open at +7:00 GMT

so is this possible, if yes please suggest me to do on better way.

I can get Server time and GMT time using TimeCurrent() and TimeGMT(). i use the difference hours with server and GMT to input EA time manually.

Your help is appreciated.

Carl Schreiber
5939
Carl Schreiber 2015.11.20 16:03  

Yes!

If your pc is running in Europe with EU-DST you should have a look at TimeGMTOffset():

"Returns the current difference between GMT time and the local computer time in seconds, taking into account switch to winter or summer time. Depends on the time settings of your computer."

Sherif Hasan
7223
Sherif Hasan 2015.11.20 18:00  
gooly:

Yes!

If your pc is running in Europe with EU-DST you should have a look at TimeGMTOffset():

"Returns the current difference between GMT time and the local computer time in seconds, taking into account switch to winter or summer time. Depends on the time settings of your computer."

Thanks for your quick reply.

but still i didn't get my qustion to answered!

i need to find the london market open hours whether winter or summer. only i must get the market open time exactly? how to get it?

whroeder1
13602
whroeder1 2015.11.21 12:38  
Doesn't the market open a 8:00 AM local time? Get GMT, compute whether London is GMT or BST. Wait for GMT to be 8 or 7.
Sherif Hasan
7223
Sherif Hasan 2015.11.21 17:33  
WHRoeder:
Doesn't the market open a 8:00 AM local time? Get GMT, compute whether London is GMT or BST. Wait for GMT to be 8 or 7.
how to get the british summer time?
whroeder1
13602
whroeder1 2015.11.21 19:34  
Look it up and code a function like I did for IsNYonDST
Carl Schreiber
5939
Carl Schreiber 2015.11.22 17:53  
sheriffonline:
how to get the british summer time?
GB switches like other European states and - as I said - if your pc or server 'sits' in Europe TimeGMTOffset() will tell you what DST is actually in London.
/
To add comments, please log in or register