Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CurrentDayOHL().Open[0] returning wrong values

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

    CurrentDayOHL().Open[0] returning wrong values

    CurrentDayOHL().Open[0] is returning the opening value of the current intraday bar instead of the current day's open.

    #2
    Ok, just figured out that you have to use CurrentDayOHL().CurrentOpen[0]

    Not sure why the other is even there since it is misleading and useless.

    Comment


      #3
      Hello motownlucas,

      Thank you for your post and glad to hear you were able to sort it out.

      There may be some indicator or strategy instances where the current bars value would be needed. Of course, Open will be static throughout the day, however the High and Low are dynamic.
      MatthewNinjaTrader Product Management

      Comment


        #4
        Thanks for the quick response Matthew.

        My point is that if you needed the current bar's opening value, you would use Open[0], not CurrentDayOHL().Open[0].

        CurrentDayOHL().Open[0] implies that you are looking for the current day's opening value but that is not what it gives.

        Needless confusion that adds no value.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        80 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        46 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        29 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        32 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        66 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X