Overall Statistics
class CalibratedQuantumInterceptor(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2020, 6, 8)  # Set Start Date
        self.SetCash(100000)  # Set Strategy Cash
        key1 = 'In Initialize'
        key2 = 'OnData'
        
        # DELETE this after one run
        if not self.ObjectStore.ContainsKey(key1):
            self.ObjectStore.Save(key1, 'self.AddEquity("SPY", Resolution.Daily)')
        if not self.ObjectStore.ContainsKey(key2):
            self.ObjectStore.Save(key2, 'if not self.Portfolio.Invested:  self.SetHoldings("SPY", 1.0)')
        
        code1 = self.ObjectStore.Read(key1)
        exec(code1)
        
        self.code2 = self.ObjectStore.Read(key2)
        
    def OnData(self, data):
        exec(self.code2)
    
    def OnSecuritiesChanged(self, changed):
        for security in changed.AddedSecurities:
            self.Log(security.Symbol)