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 to force plotyticks on main chart (not subplot)

    General Discussion
    2
    2
    716
    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.
    • tomasrollo
      tomasrollo last edited by

      Hi,

      while trying to develop indicator for Support / Resistance lines (yes, yet another one) I tried to use the plotinfo.plotyticks property to draw the computed S/R horizontal levels on the chart. But it's only working when the indicator is charted on a subplot (plotinfo.subplot = True), with plotinfo.subplot = False the custom levels are not drawn - the regular yticks "take over" on the main chart.

      Is there a way how to force custom plotyticks also on the main chart (plot)?

      Thanks
      T.

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

        This is indeed a limitation when plotting along the main data.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors