Overall Statistics
class ResistanceDynamicProcessor(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2019, 4, 20)  # Set Start Date
        self.SetCash(100000)  # Set Strategy Cash
        self.AddEquity("VXX", Resolution.Hour)
        self.AddEquity("VXXB", Resolution.Hour)
        self.rsi = self.RSI("VXX", 10,  MovingAverageType.Simple, Resolution.Daily)        


    def OnData(self, data):
        if (data.ContainsKey("VXX")) and (not self.rsi.IsReady):
            self.historywarmup("VXXB")
            
    def historywarmup(self,symbol):
        history = self.History([symbol], 10, Resolution.Hour)
        for time, row in history.loc[symbol].iterrows():
            self.rsi.Update(time, row["close"])