InvestorsHub Logo
icon url

Quasi

01/13/10 8:20 PM

#6467 RE: Peter_Pan #6466

RE: Peter_Pan, scan high breakout from trading range...

Not sure exactly which scan you are referring to but here are some ideas that might help get you started, or at least how I would look at it.

high today > (starting 1 day ago) Max high for N days

You could also just use the close rather than the highs. Now this will also get you stocks that are just trending up, ie the high today is always higher than the high from yesterday or the day before.

So to get something that is trending or consolidating you would have to add some criteria about the min lows, or the min close for the past N days, starting 1 day ago. Say something like.

(starting 1 day ago) Min low for N days > (starting 1 day ago) Max high for N days times 0.9

Basically this means that the lowest low for the last N days will have to be within 10% of the Max high for the last N days. IE max range of 10% for the last N days, or change it to 5% or 2% depending on what you are looking for.

Hope this gives you some ideas, there are lots of ways to look at it and no single right answer.

Happy trading / investing
Quasi