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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    89 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    133 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X