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

How to detect Daily Max or Min.

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

    How to detect Daily Max or Min.

    Hello,

    I'm new in developing EA here on Ninjatrader platform. I have seen that we have the Ap Minimum Min() or Max to detect the min of the max of a cetrain number of bar.
    My question is: Is possibile to detect in some way if the current candle is a max or a min of the day.

    My goal is just to detect if, on a 15 min chart, the last candle (so after it closes) is a new max/min of the day (even if the shadow is 1tick above or down the last daily maximum or minimum) and if it has more volume than the previous 15min candle.

    Thanks in advance for the tip

    #2
    Hello briesanji,

    You can use GetDayBar to get a daily bar values. Using that object you could check if the current close is greater or less than the High/Low of that bar.



    Please let me know if I may be of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you very much

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by love2code2trade, Yesterday, 01:45 PM
      4 responses
      28 views
      0 likes
      Last Post love2code2trade  
      Started by funk10101, Today, 09:43 PM
      0 responses
      7 views
      0 likes
      Last Post funk10101  
      Started by pkefal, 04-11-2024, 07:39 AM
      11 responses
      37 views
      0 likes
      Last Post jeronymite  
      Started by bill2023, Yesterday, 08:51 AM
      8 responses
      44 views
      0 likes
      Last Post bill2023  
      Started by yertle, Today, 08:38 AM
      6 responses
      26 views
      0 likes
      Last Post ryjoga
      by ryjoga
       
      Working...
      X