StockFetcher Forums · Filter Exchange · How to create a perfectly flat channel<< >>Post Follow-up
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
630 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

Fetcher[high 60 day high < high 120 day high
low 60 day low > low 120 day low

high 120 day high < high 180 day high
low 120 day low > low 180 day low

close >5

add column high 60 day high
add column high 120 day high
add column high 180 day high
add column separator
add column low 60 day low
add column low 120 day low
add column low 180 day low
]




SAFeTRADE
630 posts
msg #114672
Ignore SAFeTRADE
7/28/2013 2:42:54 PM

Another take. Sort ascending by spread to narrow or widen the spread.

Fetcher[
set{180hh, high 180 day high * 1.02}
set{180hl, high 180 day high * .98}

set{180lh, low 180 day low * 1.02}
set{180ll, low 180 day low * .98}

high 120 day high < 180hh
high 120 day high > 180hl

high 60 day high < 180hh
high 60 day high > 180hl

low 120 day low < 180lh
low 120 day low > 180ll

low 60 day low < 180lh
low 60 day low > 180ll

add column high 60 day high
add column high 120 day high
add column high 180 day high
add column separator
add column low 60 day low
add column low 120 day low
add column low 180 day low
add column separator

set{spread, 180hh / 180ll}

add column spread

sort column 13 ascending
]



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.


StockFetcher Forums · Filter Exchange · How to create a perfectly flat channel<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.