Overall Statistics
class Algorithm(QCAlgorithm):
            
    def Initialize(self):
      
        self.SetStartDate(2018,10,1) 
        self.SetEndDate(2018,10,2)    
        self.SetCash(10000)           
        self.AddEquity("SPY", Resolution.Daily)
        self.AddEquity("VIXY", Resolution.Daily)

    def OnData(self, data):
        if not self.Portfolio.Invested:
            self.MarketOrder("SPY", 10)
            self.MarketOrder("VIXY", 10)
        if self.Portfolio.Invested:
            holdings = [x.Key for x in self.Portfolio if x.Value.Invested]
            for i in holdings:
                self.Debug(str(i.Value) + " quantity "+ str(self.Portfolio[i].Quantity))