I cannot attach a backtest at this time because the algorithm's current setup is proprietary. If needed I'll make a dummy demo and try to reproduce the results. I have a local Lean running and my strategy is written in Python. I'm trying to leverage double barrier and triple barrier methods in the execution model -- Once I place market order and it is filled, immediately set a limit, stop-loss and sell after some timelapse. I'm trying to make my organization utilize the algorithmic framework so I'm building this logic in the execution model. I'm debugging python locally and finding that in the OnOrderEvent method I'm getting orders with OrderType == 4 for MarketOnOpen orders. I never use a MarketOnOpen order. When I step out of the function using the VScode debbuger it comes back to temptick = algorithm.MarketOrder(symbol, quantity). It returns True for temptick.OrderType == 4. Is this a bug in the most recent docker container? 

Author