Download MetaTrader 5

Open hours for server

To add comments, please log in or register
Add our Twitter channel to friends and follow the news!
Ingvar Engelbrecht
4504
Ingvar Engelbrecht 2014.03.14 16:44 

In order to not mess up placing market order and corresponding pending SL and TP i stop placing orders on Friday in good time. That works OK. but it could be other days when trading closes.

Is there a way to query the trade server about closing time on "this" day?

There is something, "SymbolInfoSessionTrade" but it requires "ordinal number of session"  whatever that is.

The "crude" way could be to avoid placing trades 5 minutes before midnight and wait until 5 minutes after midninght  on every day.

To add comments, please log in or register