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 sjsj2732, Yesterday, 04:31 AM
        0 responses
        39 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        290 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        289 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        135 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        96 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X