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

Max & Min of first 10 minutes RTH session

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

    Max & Min of first 10 minutes RTH session

    I need to access max and min value of the first minutes RTH session. It would be easy with any of Opening Range Indicators that exist, but none of them works with "Days to load =0" in Data Series.

    Can you please me give me a clue how to access to that values? (Max & Min range 9:30-9:40)

    Thanks

    #2
    Hello Impeesa, thanks for your post.

    You can check for specific times. Once the time is greater than or equal to 9:30 and less than or equal to 9:40. Between this time you would keep track of a max and min variable. If a new bar comes in and previousHighValue < High[0], then previousHighValue = High[0]. The idea would be similar to this algorithm:

    I have List List&lt;MyType&gt;, my type contains Age and RandomID Now I want to find the maximum age from this list. What is the simplest and most efficient way?


    Here is an example on using a time filter as well:


    Please let me know if you have any questions on this material.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hello, Chris

      I think my programming skills are too short for understand and work on that material, but I will try.

      Any other idea or code will be very helpful.

      Thanks a lot for your assistance

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Shansen, 08-30-2019, 10:18 PM
      24 responses
      940 views
      0 likes
      Last Post spwizard  
      Started by Max238, Today, 01:28 AM
      0 responses
      9 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by rocketman7, Today, 01:00 AM
      0 responses
      4 views
      0 likes
      Last Post rocketman7  
      Started by wzgy0920, 04-20-2024, 06:09 PM
      2 responses
      28 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, 02-22-2024, 01:11 AM
      5 responses
      33 views
      0 likes
      Last Post wzgy0920  
      Working...
      X