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/

    How can I find the first bar for each trading day?

    Indicators/Strategies/Analyzers
    1
    1
    92
    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.
    • G
      g2david last edited by

      Hi,

      My idea is to create an indicator the will calculate the on-going averaging PivotPoint. I need to identify the first bar in each trading day and each additional bar will be rolling average from the first bar.

      Is this possible? For example ES S&P 500 mini futures, 5PM to next day 4PM with 5 mins compression

      For example. 20200920 5PM to 20200921 4PM. I can do it easily in Dataframe by making 5PM to next day 4PM as of 20200920. Then using groupby function to do rolling average.

      David

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