Download MetaTrader 5

Is this possible to detect London Market Open time Automatically?

To add comments, please log in or register
Sherif Hasan
7310
Sherif Hasan  

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
6793
Carl Schreiber  

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
7310
Sherif Hasan  
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
15062
whroeder1  
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
7310
Sherif Hasan  
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
15062
whroeder1  
Look it up and code a function like I did for IsNYonDST
Carl Schreiber
6793
Carl Schreiber  
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