MarketHours.IsOpened() seem to be broken

Created at 23 Dec 2019, 10:32
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!
CH

chernish2

Joined 03.11.2019

MarketHours.IsOpened() seem to be broken
23 Dec 2019, 10:32


On Sunday morning I run this code:

var symbol = Symbols.GetSymbol("CHFJPY");

if (symbol.MarketHours.IsOpened()){

PlaceOrder(...)...

}

And IsOpened() method returns True, which lead the bot to try to place order with obvious error message "Market is closed".

I think before 3.7 update this code was working just fine.

Can it be fixed please?


@chernish2
Replies

PanagiotisCharalampous
27 Dec 2019, 11:29

Hi chernish2,

Can you tell us the broker you are using?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous