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/

    Plot Buy/Sell on actual price instead of above and below candles?

    General Code/Help
    1
    1
    44
    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.
    • C
      charterboy last edited by

      Hi,

      I noticed that the plotting for the Buy and Sell markers have a bit of "margin", I often run tests on intraday data (1-minute interval) and would like to plot the Buy and Sell on the exact Buy/Sell price (or Close price if that's easier)

      I haven't quite figured out how I can adjust the plotting and it's only me who seems to have this "issue". I have tried Backtrader and Backtesting libs and they do this out-of-the-box so it doesn't seem to be any coding mistakes.

      Here is an example, it's daily candles in this case but still demonstrates the "issue". The sell marker is above the candle and the Buy market is below the candle.

      example.png

      Does anyone have any input on this matter?

      Thanks a bunch!

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