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 f.saeidi, Today, 08:01 PM
            0 responses
            1 view
            0 likes
            Last Post f.saeidi  
            Started by Rapine Heihei, Today, 07:51 PM
            0 responses
            3 views
            0 likes
            Last Post Rapine Heihei  
            Started by frslvr, 04-11-2024, 07:26 AM
            5 responses
            96 views
            1 like
            Last Post caryc123  
            Started by algospoke, 04-17-2024, 06:40 PM
            6 responses
            49 views
            0 likes
            Last Post algospoke  
            Started by arvidvanstaey, Today, 02:19 PM
            4 responses
            11 views
            0 likes
            Last Post arvidvanstaey  
            Working...
            X