Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using the open in a indicator

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

    Using the open in a indicator

    How does one code using the open (first trade after 9:30) for equities and compare it to previous values. ie On open is a new bar started? Bar 0 so to get yesterday's close use Close[1]?

    Also if using daily bars, is the open Open[0] or use lastprice?

    #2
    look at the indicators CurrentDayOHLC and PriorDayOHLC and see if those are what you were looking for.

    Comment


      #3
      occam, yes CurrentDayOHL will give you the current day's open, high, and low, and PriorDayOHLC gives you the previous day's data. Please let us know if you have any other questions.
      AustinNinjaTrader Customer Service

      Comment


        #4
        Got it.

        Will CurrentDayOHL be available during the day if using the free Kinetick (end of day data) service?

        Also will the 0th bar be the current and the old [0] goes to [1] or does it remain [0] presumably until the end of the day?

        Comment


          #5
          CurrentDayOHL will not be available during the day because the Kinetick End Of Day feed only updates at the end of the day. The 0 bar will remain the 0 bar until a new bar is started, which is when the new session starts.
          AustinNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          602 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          347 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          560 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          559 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X