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/

    Time of Day in plot

    General Code/Help
    2
    2
    504
    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.
    • MoorsTech
      MoorsTech last edited by

      Hey Everyone,

      just curious if there's some builtin functionality in backtrader to display time of day either directly on the x axis or in the bottom-right tooltip in matplotlib.
      Debugging minute resolution plots with ill-mannered indicators can be a bit of a pain otherwise as I'll have to eyeball the time of day when an indicator does something unexpected and potentially step through hundreds of datapoints :-/
      I am passing timeframe=bt.TimeFrame.Minutes to the datafeed as documented and backtrader is working perfectly otherwise.
      Again, not crucial but it would be a nice quality of life feature.

      Thanks!

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

        The plotting functionality is only meant as a visual aid and as automated as possible (you can still change some colours, bar style and others), but it is not meant to be interactive charting. The timeframe determines what the axis displays. But in the case of Minutes, minutes should be displayed.

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