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.
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.