I received warning as mentioned in the title. Been adding “self.is_warming_up” here and there, none is working. Backtesting for equity.

 

def OnSecuritiesChanged(self, changes):

        self.changes=changes

        self.Log(f"Onsecuritieschanged({self.Time}):: {changes}")


 

        for security in changes.RemovedSecurities:

            if security.Invested:

                self.Liquidate(security.Symbol)


 

        for security in changes.AddedSecurities:

            if not security.Invested:

                self.set_holdings(security.Symbol, 0.1)