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 kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    127 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    85 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    86 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X