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 SalmaTrader, 07-07-2026, 10:26 PM
          0 responses
          35 views
          0 likes
          Last Post SalmaTrader  
          Started by CarlTrading, 07-05-2026, 01:16 PM
          0 responses
          20 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 06-17-2026, 10:32 AM
          0 responses
          12 views
          0 likes
          Last Post CaptainJack  
          Started by kinfxhk, 06-17-2026, 04:15 AM
          0 responses
          18 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 06-17-2026, 04:06 AM
          0 responses
          20 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Working...
          X