Overall Statistics
class ResistanceOptimizedShield(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2019, 9, 19)  # Set Start Date
        self.SetEndDate(2019, 9, 29)
        self.SetCash(100000)  # Set Strategy Cash
        # Subscribe to SPY data
        self.AddEquity("SPY", Resolution.Minute)
        # Define indicator
        self.sma = self.SMA("SPY", 64, Resolution.Daily)
        # We warm up our indicator with historical data

    def OnData(self, data):
        '''OnData event is the primary entry point for your algorithm. Each new data point will be pumped in here.
                data: Slice object keyed by symbol containing the stock data
        # If algorithm is warming up, wait
        if self.IsWarmingUp:
        self.Debug(f"SPY SMA: {self.sma.Current.Value}")