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

Compute Highest High between 9:30 AM and 10:30 AM

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

    Compute Highest High between 9:30 AM and 10:30 AM

    How would you compute the highest high between 9:30 AM and 10:30 AM?

    #2
    When it becomes 10:30 use the MAX() function along with a calculated number of bars that will bring you back to 9:30 and then save that value.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      You might also want to search for "Directional Day Filter", it may already do what you want.

      Comment


        #4
        Originally posted by Elliott Wave View Post
        You might also want to search for "Directional Day Filter", it may already do what you want.
        Doing this search doesn't turn up anything on the forums. (Had to use "Directional Filter" because the search words must be 4+ length).

        "Directional Day Filter" not listed in the Online Guide.

        Comment


          #5
          Ah yes, the pesky 4 letter minimum, incredibly annoying considering how many three letter acronyms there are in the trading lexicon.
          Attached Files

          Comment


            #6
            Hi Josh, I am trying to use snippets of your code from the sample. How would I look back to yesterday at 13:30 or day before yesterday from your staement???
            startDateTime = new DateTime(Time[0].Year, Time[0].Month, Time[0].Day, 13, 30, 0);
            I have tried a few things but banging my head against the wall.... Thanks for your example though, it is helpful.

            Thanks
            BobC635

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by swestendorf, Today, 11:14 AM
            2 responses
            5 views
            0 likes
            Last Post NinjaTrader_Kimberly  
            Started by xiinteractive, 04-09-2024, 08:08 AM
            4 responses
            12 views
            0 likes
            Last Post xiinteractive  
            Started by Mupulen, Today, 11:26 AM
            0 responses
            1 view
            0 likes
            Last Post Mupulen
            by Mupulen
             
            Started by Sparkyboy, Today, 10:57 AM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by TheMarlin801, 10-13-2020, 01:40 AM
            21 responses
            3,917 views
            0 likes
            Last Post Bidder
            by Bidder
             
            Working...
            X