Hi,

Attached is a very simple algo I have built that trades the TQQQ. The issue I am having is that if the order is not filled the next day, it is not canceled. Does anyone know a command for having orders being cancelled if they are not filled by the next day? I have already tried to use (self.DefaultOrderProperties.TimeInForce = TimeInForce.Day) but when I do that every order is just getting cancelled.