Is this possible to detect London Market Open time Automatically?

Back to topics list To post a new topic, please log in or register
avatar
273
sheriffonline 2015.11.20 16: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.

avatar
2017
gooly 2015.11.20 17: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."

avatar
273
sheriffonline 2015.11.20 19: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?

avatar
12985
WHRoeder 2015.11.21 13: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.
avatar
273
sheriffonline 2015.11.21 18: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?
avatar
12985
WHRoeder 2015.11.21 20:34 #
 
Look it up and code a function like I did for IsNYonDST
avatar
2017
gooly 2015.11.22 18: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.
Back to topics list  

To add comments, please log in or register