Hello,

So I do this:

self.Schedule.On(self.DateRules.EveryDay(), self.TimeRules.At(9, 0), self.Buy) self.Schedule.On(self.DateRules.EveryDay(), self.TimeRules.At(15, 30), self.Sell)

and then I do this:

def Buy(self): for security in self.universe: self.SetHoldings(security,-1/num_symbols) def Sell(self): for security in self.universe: self.Liquidate(security)

and nothing happens.

If I just schedule Buy, it buys stocks.

FYI: self.universe contains 10 stocks (num_symbols) from universe selection that I want bought. I am experimenting with selling just before end of trading to avoid market closures/weekends and public holidays.

If someone could help with this, I would really appreciate it! thank you in advance.

Author