I am pretty new to Backtrader, so I suspect this would be fairly easy for an expert. I am trying to plot multiple versions of the same candlestick chart and apply the same indicator to all plots.
The first plot should be simply daily bars, along with a custom indicator in a subplot. I was able to accomplish this:
I added a second plot that is supposed to be the same daily bars resampled into three-day bars:
cerebro.resampledata(data, name='3 Day', timeframe=bt.TimeFrame.Days, compression=3)
However, this does not result in what I expect to see, which is one bar in the second plot for every three bars in the first plot. So that's my first question, is why isn't resampling resulting in one-third as many bars? How am I ending up with one bar in the second chart for each bar in the first chart?
My next question is how can I apply the same indicator to the second plot that I've applied to the first plot? I want to see the same subplot under the second candlestick chart that I have on the first chart.
And, finally, I noticed that when I zoom on one chart, the Y-axis gets resized to match the data that was zoomed on, but the other chart has the original Y-axis zoom, leaving the candlesticks very flat. Is there a way to keep the zoom consistent between the charts?
Thank you for any guidance for this newbie!