I want to use a history request to fill my RollingWindow [Tradebar] so it needs open high low close. 

history = algo.History(symbol,1,Resolution.Daily)
        if not  history.empty:
            for time, row in history.loc[symbol].iterrows():
                self.roc.Update(time,row['close'])

The above code works fine because it just needs a closing value, I want to use the above history request to get a tradebar and add it to my rolling window. Below is what I've tried but it doesn't work. I think I need to make a dictionary to store the tradebar but I tried that and it didn't work so I'm not sure how to do it.

 

history1 = algo.History(symbol, 3,Resolution.Daily)
        if not history1.empty:
            for time, row in history.loc[symbol].iterrows():
                
                self.Bars.Add(time, row['open'],['high'],['low'],['close'])

 

self.Bars is my rolling window and when I add that it doesn't work because it isn't a tradebar but I have no idea how to get that data as a tradebar. 

 

Any help will be appreciated thank you!