Overall Statistics
class DynamicResistanceCoil(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2020, 6, 10)  # Set Start Date
        self.SetCash(100000)  # Set Strategy Cash
        self.AddEquity("SPY", Resolution.Daily)


    def OnData(self, data):
        if not self.Portfolio.Invested:
            self.MarketOrder("SPY", 100, False, 'MY TAG')

    def OnOrderEvent(self, orderEvent):
        ticket = self.Transactions.GetOrderTicket(orderEvent.OrderId)
        if orderEvent.Status == OrderStatus.Filled:
            self.Debug(f'{self.Time}: Trade: {ticket.Symbol}, Qty:{ticket.Quantity}, Price:{ticket.AverageFillPrice}, Tag:{ticket.Tag}')