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/

    How max - min plot boundaries are set?

    General Code/Help
    plotting
    3
    7
    1516
    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.
    • A
      ab_trader last edited by ab_trader

      Hi @backtrader

      Could you please clarify how the max and min boundaries of the plot are set?

      I was always thinking that if data series and indicators are shown on the same plot, then max and min boundaries are set as max and min values of all data series and indicators shown. But recently I got different results (see figure attached).

      Could you please point out how to set these boundaries?

      picture

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

        The data feed controls the limits because it creates the axis. Indicators are simply plotted on top, being the (possibly naive) assumption that they are scale-compatible with the data feed.

        1 Reply Last reply Reply Quote 0
        • A
          ab_trader last edited by

          Got it. So no way to change it without getting inside the bt.
          Thank you!

          1 Reply Last reply Reply Quote 0
          • J
            jcarlm2012 last edited by

            ab_trader How do you got it.....can you share it please....?

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

              He meant he "got the answer": he needed to modify the internals.

              1 Reply Last reply Reply Quote 0
              • J
                jcarlm2012 last edited by

                yes....its ok....but i need to know how he did it......i hope he post the modified code or some.....

                1 Reply Last reply Reply Quote 0
                • A
                  ab_trader last edited by

                  I didn't make changes.

                  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(); }); }