Overall Statistics
import json5

class HorizontalQuantumRadiator(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2020, 1, 9)  # Set Start Date
        self.SetCash(100000)  # Set Strategy Cash
        self.AddEquity("SPY", Resolution.Minute)
        
        self.equity_over_time = []

    def OnData(self, data):
        if not self.Portfolio.Invested:
            self.SetHoldings("SPY", 1)
    
    def OnEndOfDay(self):
        self.equity_over_time.append(self.Portfolio.TotalPortfolioValue)

    def OnEndOfAlgorithm(self):
        self.ObjectStore.Save('equity', json5.dumps(self.equity_over_time))