Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CurrentDayOHL

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

    CurrentDayOHL

    Hello,

    Need some clarification please. If I am using the indicator method " CurrentDayOHL().CurrentHigh[ ]" in a custom indicator with COBC set to false. Which of the following will give me the current high whilst the current bar has not yet closed (i.e. the correct current high)?

    CurrentDayOHL().CurrentHigh[0] or CurrentDayOHL().CurrentHigh[1] ?

    Thank you.

    #2
    Hello rabcnesbit,

    Thank you for your post.

    The CurrentDayOHL().CurrentHigh[0] is what you are looking for in the case that you wish to pull the high for the session while the current bar has not closed yet.

    0 (zero) will reference the current bar and 1 will reference the previous bar.

    For a reference on Referencing the Correct bar please visit the following link: http://www.ninjatrader.com/support/f...ead.php?t=4769

    Please let me know if I may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X