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/

    Bar Times

    General Code/Help
    1
    1
    71
    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.
    • Tony Shacklock
      Tony Shacklock last edited by

      I'm sure I read somewhere about the details of period time and interval (open & closed ended, etc.), but I can't find it now. I would like to confirm my understanding on one point and I have a follow-on question.
      For intra-day periods, we must use
      end-of-bar time. Right? So, if our data has start-of-bar timestamps we must calculate the end-of-bar time. Is my understanding correct?

      If that is correct, then my question is about the end-of bar time. Should it be just the bar period later than the bar start time, or should we subtract some rounding as is done with daily timestamps. For example, for a 1-hour timeframe a 13:00 bar start-time becomes 14:00, or 13:59.999989?

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