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 proptradingshop, Today, 10:07 AM
        2 responses
        4 views
        0 likes
        Last Post proptradingshop  
        Started by sofortune, Today, 10:28 AM
        0 responses
        1 view
        0 likes
        Last Post sofortune  
        Started by marcus2300, Today, 10:21 AM
        1 response
        1 view
        0 likes
        Last Post marcus2300  
        Started by DawnTreader, 05-08-2024, 05:58 PM
        10 responses
        39 views
        0 likes
        Last Post DawnTreader  
        Started by gaz0001, Today, 10:09 AM
        0 responses
        2 views
        0 likes
        Last Post gaz0001
        by gaz0001
         
        Working...
        X