Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. winefx
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
    W
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    winefx

    @winefx

    0
    Reputation
    279
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    winefx Unfollow Follow

    Latest posts made by winefx

    • RE: Change name of a line in indicator

      @backtrader Great thanks!

      posted in Indicators/Strategies/Analyzers
      W
      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[0], 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.

      posted in Indicators/Strategies/Analyzers
      W
      winefx