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 ghoul, Today, 06:02 PM
      3 responses
      14 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      44 views
      0 likes
      Last Post jeronymite  
      Started by Barry Milan, Yesterday, 10:35 PM
      7 responses
      20 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by AttiM, 02-14-2024, 05:20 PM
      10 responses
      180 views
      0 likes
      Last Post jeronymite  
      Started by DanielSanMartin, Yesterday, 02:37 PM
      2 responses
      13 views
      0 likes
      Last Post DanielSanMartin  
      Working...
      X