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 ID the bumps?

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

    How to ID the bumps?

    Hi,

    I'm looking for some advice on how to best accomplish this. Using the attached screenshot I simply want to be able to identify the existence of the "bump" between the points labeled A and B (where the red dot is). Comparing that to points C and D, where there is no "bump" but rather a straight upwards/downwards line between the points.

    Basically I want to be able to determine if the line between the two points is "straight" or has been interrupted by a bump formation...I've played around with MRO and MAX/MIN but am having some difficulty...thanks in advance.
    Attached Files

    #2
    You may want to look into Rising() and Falling(). If it is falling the whole way between pt A and pt B then there is no bump.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      OK, thanks. So I guess I'd have to get the # of bars between the points and then run some sort of routine to check the rising/falling for each of those points then...

      Comment


        #4
        A loop should work nicely for you.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by algospoke, 04-17-2024, 06:40 PM
        5 responses
        46 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by arvidvanstaey, Today, 02:19 PM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Started by mmckinnm, Today, 01:34 PM
        3 responses
        5 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by f.saeidi, Today, 01:32 PM
        2 responses
        8 views
        0 likes
        Last Post f.saeidi  
        Started by alifarahani, 04-19-2024, 09:40 AM
        9 responses
        55 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X