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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            152 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            87 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            131 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            127 views
            1 like
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            106 views
            0 likes
            Last Post CarlTrading  
            Working...
            X