I trying to do something fairly simple: before market day, select stocks to invest and place orders. On next day, review invested stocks, sell if needed or renew stop-loss orders.

 

What I see is:

  1. I select stocks in coarse selection
  2. Inside scheduled event, I placing orders

 

On next day, I not select any stocks since I already invested. For some reason, I getting event of “OnSecuritiesChanged" and all stocks which I placed orders for a day before - removed. This is unexpected since documentation says:
 

"When you remove an asset from a universe, LEAN usually removes the security from the Members collection and removes the security subscription. However, it won't remove the security in any of the following situations:

  • You own the security.
  • You have an open order for the security."


    I do have open orders for all of these stocks - so why they removed?