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 doing weird things

    General Code/Help
    1
    2
    40
    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.
    • Olly Fallon
      Olly Fallon last edited by

      Trying to plot some data using candles but the wicks and body seemed to have swapped round. I can see some references to others who have had this but no solutions. These candles do not look like other examples I have seen on here.

      My trades section doesn't work and my arrows for the trade are way off the chart.

      chart

      https://ibb.co/KjBppDw (link to image if the above doesn't embed)

      This is my dataframe

                             open    high     low   close  volume
      datetime                                                   
      2022-02-17 09:30:00  221.48  221.73  220.93  221.32     312
      2022-02-17 09:33:00  221.32  221.59  220.83  220.91      56
      2022-02-17 09:36:00  220.91  220.91  219.81  220.01     146
      2022-02-17 09:39:00  220.01  220.50  219.76  220.48      82
      2022-02-17 09:42:00  220.48  221.00  219.86  220.17     322
      

      Does anything look incorrect?

      Many thanks in advance

      1 Reply Last reply Reply Quote 0
      • Olly Fallon
        Olly Fallon last edited by

        I am narrowing this down to an issue where I have two datafeeds. Even with datafeed 1 having plot=False, it still seems to have some effect on the plot of the second feed.

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