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/

    Edit placement of BuySell arrows

    General Code/Help
    3
    4
    51
    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.
    • ashwinschronicles
      ashwinschronicles last edited by

      I have modified the generic code to backtest my strategy, and when I run it, I get a plot like this : !Large.png The problem with this plot is that the BuySell arrows are placed way outside of the candles, So when I zoom into any set of candles I lose the BuySell arrows like so:
      small.png . The code Im running is basically the same as the example code from here except for changing the strategy and data source.
      Im new to backtrader I looked through the document but I couldn't find any settings concerning the placement of buy sell arrows. So I wanted to know if there's any way to ensure that the BuySell arrows are placed right below/above the candles

      1 Reply Last reply Reply Quote 0
      • T
        TraderOnes last edited by

        same with me, very confused, but I found the arrows very high and very below the chart.
        Have a try and move the chart up or down. With me, they appear. They are just outsite the window, even when you zoom out maximal possible.

        Just let know, If you found a way, to change arrow-positions easily.

        1 Reply Last reply Reply Quote 0
        • D
          dasch last edited by

          take a look at bardist, see:

          https://community.backtrader.com/topic/2534/my-plot-is-not-showing-pointers-to-where-the-trades-occured-and-also-my-stoploss-and-take-profits-are-not-working-any-help-would-be-highly-appereciated/5

          1 Reply Last reply Reply Quote 0
          • T
            TraderOnes last edited by

            yeah, works with me, thx!

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