Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

end hour for sample get high low indicator

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

    end hour for sample get high low indicator

    I am using the sample code "SampleGetHighLowByTimeRange" indicator.
    I would like the end hour to be at the market close which would be hour 16, but when I change the ending hour to anything larger than 12 it does not display.

    My begin hour is set to 9.

    Thanks for your help.

    #2
    Hello spikebuck77,

    This sample will reset the value each day, so if you are looking at a time range from 900 to 1600, there must be a bar after 1600 in order for it to show any values.

    There is a built in indicator that shows high / lows for the whole session and may be closer to what you're looking for. PriorDayOHLC()
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Hi Ryan,
      Thanks for responding,
      I am trying to get the current high of the current day and the current low of the current day.

      The code I am using for this is:

      Comment


        #4
        For the current day, use built in indicator: CurrentDayOHL()
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        173 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        91 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        130 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        209 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        186 views
        0 likes
        Last Post CarlTrading  
        Working...
        X