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 selected line in indicator
hobart-liu last edited by
say I have 3 lines developed in my indicator, how do I just plot one of them?
ab_trader last edited by
class MyIndicator(bt.Indicator): lines = ('line1', 'line2', 'line3',) plotlines = dict(line1=dict(_plotskip=True,), line2=dict(_plotskip=True,)) #other indicator's staff ...
line3will be plotted.
Paska Houso last edited by
Let me add that this option (and many other) seem to be fully documented here:
- https://www.backtrader.com/docu/plotting/plotting.html (in this case: Line specific ploting options)