For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Plotting divergences
-
I have re-used the code from this topic
https://community.backtrader.com/topic/1216/bullish-and-bearish-divergence-macd-rsi/11I would like to get the following output, that shows the divergences graphically (B and C)
At the moment I'm able to plot the extremities of each line but not the line itself. If I create a new line between the points using the "skipnan" parameter, it links all the points and create a single line across the graph instead of separate lines for each divergence. Is there a feature in backtrader to plot a non continuous line ?
-
No, there is no such facility.