How to find market closing time on friday for different broker?

 

Hi,

I want to close all opened orders on 10 minutes before friday market end.

because closing time differ from different brokers!

Your support is appreciated.

 
sheriffonline:

Hi,

I want to close all opened orders on 10 minutes before friday market end.

because closing time differ from different brokers!

Your support is appreciated.

Scan backwards through M5 until iTime of a bar returns another date. This last candle then will return the closing time -5 min, also with iTime.
 

The forex market (opens at 8:00 am) and closes at 5:00 pm EST (EDT) New York time.

On this base you can calculate your 04:50 EST and close all your orders.

 
gooly:

The forex market (opens at 8:00 am) and closes at 5:00 pm EST (EDT) New York time.

On this base you can calculate your 04:50 EST and close all your orders.

... but not with different brokers, and that was the question. 
Reason: