nomadrx 8 posts msg #114669 - Ignore nomadrx |
7/28/2013 12:46:39 PM
Looking to search for stocks within a perfectly flat channel of 180 days.
The SF channel command returns a supposedly flat channel, but there are often prices within that 180 days that fall outside of first channel low and the first channel high... if I'm expressing myself clearly.
I'm looking to create a perfect channel where all prices are within the channel and no prices fall outside of the channel with that 180 day period.
Any suggestions?
|
SAFeTRADE 644 posts msg #114671 - Ignore SAFeTRADE |
7/28/2013 2:19:56 PM
Try something like this. A little more code.
close < high 60 day high
close > low 60 day low
|
SAFeTRADE 644 posts msg #114672 - Ignore SAFeTRADE |
7/28/2013 2:42:54 PM
Another take. Sort ascending by spread to narrow or widen the spread.
Hope this helps.
|
trianglehead 3 posts msg #114674 - Ignore trianglehead |
7/28/2013 5:22:29 PM
nomadrx,
Could you please explain us what do you need this for?
|
nomadrx 8 posts msg #114676 - Ignore nomadrx |
7/28/2013 6:19:19 PM
Yes... I have had great success over the years identifying stocks that have developed long, very defined channels and buying on the breakout. (I used to subscribe to a company that actually mailed out chartbooks quarterly). Unfortunately, ever since that company went belly-up in the modern computer charting age, I have never been able to replicate scanning a large volume of charts for the type of channel that I followed. Almost every scan that I can find show stocks that have channels that are not very define. There are other factors that go into buying the channel... such as length of the channel, what happened before the channel formed, etc... but I need to start with a very defined channel and then can build the model from there. I would be more than happy to post the code strategy that I develop if I can start to prove profitability.
|
nomadrx 8 posts msg #114677 - Ignore nomadrx |
7/28/2013 6:26:58 PM
@SAFeTRADE thanks for the code! It looks like the first one produces candidates more along the lines of what I am looking for... I'll play around with it and see what happens. Thank you!
|
nomadrx 8 posts msg #114714 - Ignore nomadrx |
8/1/2013 9:34:50 AM
I played around with it a little and think I was able to simplify it like this:
show stocks and etfs where high 52 week high > high 26 week high
and low 52 week low < low 26 week low
then you can add price parameters, volume, breakout, etc.
|