Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    When plot zoom, adjust axis of indicators

    General Code/Help
    2
    2
    761
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Serp last edited by

      I'm currently testing plotting charts with indicators.
      I noticed when eg. plotting:

      self.adosc = bt.talib.ADOSC(self.datas[0].high, self.datas[0].low, self.datas[0].close, self.datas[0].volume, fastperiod=30, slowperiod=90, plotname='ADOSC')
      

      the axis of this indicator eg. ranges from -2 to 4.
      Now I zoom in and the axis of the close price is adjusted accordingly. But the axis of the indicator is not. It is still from -2 to 4, while the highest value in this zoomed box is only ~0.25.

      Is it possible to make also indicator axis to react to zooming?

      1 Reply Last reply Reply Quote 0
      • B
        backtrader administrators last edited by

        That's controlled by matplotlib

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Copyright © 2016, 2017, 2018 NodeBB Forums | Contributors
        $(document).ready(function () { app.coldLoad(); }); }