Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to calc daily bars from intra-bar data

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to calc daily bars from intra-bar data

    My data provider does not provide daily bar data for the ES (emini S&P500). I would like to be able to calculate a 14 day ATR for use in a strategy.
    Does anyone have code that can generate daily bar data and store it in a way that it can then be input to an indicator?

    Thanks.

    #2
    zacharydw00, please try running your ATR calcs on 1440 min charts / series then as workaround.

    Comment


      #3
      Using a 1440 min bar on a 24hr chart doesn't give the correct results. Is it possible to store the (end of market) 4:00pm EST bar's closing price to an arraylist or some other list type, and then feed the list to the ATR indicator? I don't think I can use a DataSeries, because there is only 1 element of data per day. Thanks for any suggestion on how to approach this.

      Comment


        #4
        If you look for the cash session closing value, best would be to use a 390 min chart then and set session times to your 9:30 AM - 4:00 PM, this should replicate the chart you need.

        Comment


          #5
          My strategy requires a 24hr chart. Restricting the session times is not possible. So, back to my last question, is it possible to store the (end of market) 4:00pm EST bar's closing price to an arraylist or some other list type, and then feed the list to the ATR indicator?

          Comment


            #6
            zacharydw00, yes you could store the 4:00 PM price to an arraylist and then calculate your own ATR on that, but unfortunately this is outside of what we can support. It would easier to connect to a third party feed first that would allow you to access the daily historical data you need.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            566 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            330 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            547 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            548 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X