I have this code:

class VirtualFluorescentYellowJackal(QCAlgorithm):
   def Initialize(self):
       self.SetStartDate(2021, 8, 15)  # Set Start Date
       self.SetCash(100000)  # Set Strategy Cash
       self.tqqq = self.AddEquity("TQQQ", Resolution.Daily)
       # create 21 day EMA of TQQQ
       self.ema = self.EMA("TQQQ", 21, Resolution.Daily);
       self.SetWarmUp(21)
       
   def OnData(self, data):
       self.Debug("ema: " + str(self.ema.Current.Value))

 

Which works fine in the cloud - but when I run it locally with  

lean backtest "Virtual Fluorescent Yellow Jackal"

The output in backtests/2022-02-17_02-07-11/log.txt and 1264635144-log.txt does NOT show any of the debug logs which I see in the cloud terminal.

Why are my Debug logs missing when running locally?

Author