Hi, 

I'm trying to develop intraday strategy. I need to close all portfolio quantity by the end of each trading day. How can I design this kind of mechanism?

Thanks a lot.