PDA

View Full Version : How to ID the bumps?


Burga1
01-15-2008, 10:18 AM
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.

NinjaTrader_Josh
01-16-2008, 01:14 AM
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.

Burga1
01-16-2008, 10:57 AM
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...

NinjaTrader_Josh
01-16-2008, 11:22 PM
A loop should work nicely for you.