Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 andrewtrades, Today, 04:57 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        6 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        436 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        8 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X