Why does backtrader print two charts?
student last edited by
Hey guys, new to backtrader (looks awesome btw). I'm trying to get the daily chart of my one minute data but for some reason it prints two charts and I only want one? Any ideas why that is and how to fix? I have attached a picture and my code below. Cheers.
import backtrader as bt import pandas cerebro = bt.Cerebro(optdatas=True, optreturn=True) # 1 minute data df = pandas.read_parquet('DIESELCMDUSD') data = bt.feeds.PandasData(dataname=df) cerebro.resampledata(data, timeframe=bt.TimeFrame.Days) cerebro.adddata(data) cerebro.run() cerebro.plot(style='candle', volume=False)
ab_trader last edited by ab_trader
@student you added two data feeds, so
btshows two pictures. To fix it you need first to show correct time frame for your 1 minute data feed and second set