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/

    Plotting problem

    General Code/Help
    2
    4
    672
    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
      siavash last edited by

      I have a problem in plotting buy/sell triangles.As it was shown on the plot, triangles are under candles.How can I solve this problem:(0_1534541439212_Figure_0.png link url)

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

        Without knowing what you did is difficult to say what to do.

        The standard configuration is meant to draw the markers away from the price. You are probably using a custom one.

        1 Reply Last reply Reply Quote 0
        • S
          siavash last edited by

          You're right. I have added buy/sell observer by code.I want only buy/sell triangles on the plot, so i have added it by the code. How can I apply default configurations?
          Thanks a lot.

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

            @siavash said in Plotting problem:

            How can I apply default configurations?

            You obviously don't want the default configuration because you have removed it.

            Configure the BuySell observer - See Docs - Observer Reference and the barplot and bardist parameters.

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