I want to start a strategy also when the market is closed. The strategy will cancel out also live orders at the beginning, which will of course lead to the error message "Unable to cancel out live orders. Strategy xxx was not started". To avoid this, I would like to check whether the market is open or closed, so that CancelOrder(xxx) will only be executed when the market is open.
Is there any function for checking the market state?
Sincerely
Gerik
Comment