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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    238 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    154 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    163 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    246 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    199 views
    0 likes
    Last Post CarlTrading  
    Working...
    X