Remaining positions for MOC orders
Hi,
I would like to share an observation based on my backtest using MOC orders only to exit positions:
Almost all MOC orders get filled normally. There are still a small number of MOC orders (<1%) that do not get filled. Most of them have small order quantity (<30). And there are about 4 MOC orders with larger order size that do not get filled. I am not sure what causes these orders not to get filled.
Given the small number of such unfilled MOC orders, I don't think they affect the backtest result. However, it is probably still useful to find out why they stay unfilled. I can provide a list of these unfilled MOC orders so we can cross-check to find out the cause.
No market close auction for some symbols on some days during the simulation period is one of the reasons I could think of.
If anyone has some ideas on this issue, please feel free to comment below.
Thanks!
Comments
johnbear565 - is this cq fast or cq full backtesting?
on_reject()
with the event.reasone.g.
debugging orders can be tricky.
-Shayne