Hello all,

I'm experiencing below pasted error in my back test. By searching on the forum I've found, that I should have been using IsMarketOpen, but even using this condition does not prevent the error to be raised. What's the reason for his error? How to handle this correctly? Any idea appreciated.

Backtest Handled Error: OrderID: 1964 Warning - Code: NotSupported - The OandaBrokerageModel does not support MarketOnOpen order type.

if self.IsMarketOpen("WTICOUSD") and self.IsMarketOpen("USDCAD"):
	self.MarketOrder("USDCAD", -125, asynchronous=True)
	self.MarketOrder("WTICOUSD", 1, asynchronous=True)