For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Plot Backtesting Results in Multiple Graphs
-
How can I plot broker.value in one graph object while rest backtesting results in a separate graph object? Plotting everything together in one graph makes the details very small to see.
-
It's not a built-in functionality. You could try something like this (never tried)
- Set
plotinfo.plot = False
for all data feeds (easy and quick in afor
loop) - use then
cerebro.plot()
which won't plot neither the data feeds nor the associated indicators
There should be no problem in invoking
cerebro.plot()
multiple times, so you can do it once with the data feeds plotted and once without. - Set
-
Thank you very much. Just to check, where should I use the plotinfo.plot = False? In the "def init(self):" inside the Strategy Class?
-
@chat123 said in Plot Backtesting Results in Multiple Graphs:
where should I use the plotinfo.plot = False? In the "def init(self):" inside the Strategy Class?
You may do it there or when creating the data feeds.