@backtrader Great thanks!
For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Posts made by winefx
Change name of a line in indicator
Hi, I'm new to backtrader.... How do I change the _name of a line in a indicator? I tried:
x = btind.Momentum(self.datas, period=7, plotname='MyMomentum') x.plotlines = dict(momentum=dict(_name='mymomentum'))
The plotname is changed to MyMomentum, but the line name is still 'momentum' instead of 'mymomentum'. Thanks.