Detect when instrument is outside of trading hours

Created at 15 Feb 2023, 23:15
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
JA

jaydcrowe1989

Joined 11.08.2022

Detect when instrument is outside of trading hours
15 Feb 2023, 23:15


Hi,

Is there a way to detect that the instrument you are trading is now outside of the trading hours? When the instruments closes I need to close all of my trades out just before that happens. I am getting trades being left open over the weekends and that is not obviously good when that instrument then opens again for trading.

 

Cheers,

Jay


@jaydcrowe1989
Replies

firemyst
09 Mar 2023, 03:16

RE:

jaydcrowe1989 said:

Hi,

Is there a way to detect that the instrument you are trading is now outside of the trading hours? When the instruments closes I need to close all of my trades out just before that happens. I am getting trades being left open over the weekends and that is not obviously good when that instrument then opens again for trading.

 

Cheers,

Jay

 

 


@firemyst