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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        579 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X