StockFetcher Forums · Filter Exchange · outside reversal filter<< >>Post Follow-up
FuriousThug
256 posts
msg #61896
Ignore FuriousThug
4/28/2008 4:33:36 PM

Can anyone help a noob figure out what I'm doing wrong here in building a weekly outside reversal filter?


set{body_bottom,min(open,close)}
set{body_top,max(open,close)}
show stocks where body_top above body_top 5 days ago
and body_bottom below body_bottom 5 days ago
and close below open
and open 5 days ago below close 5 days ago


chetron
2,817 posts
msg #61917
Ignore chetron
4/29/2008 8:35:35 AM

clickable...

Fetcher[

set{body_bottom,min(open,close)}
set{body_top,max(open,close)}
show stocks where body_top above body_top 5 days ago
and body_bottom below body_bottom 5 days ago
and close below open
and open 5 days ago below close 5 days ago



]



FuriousThug
256 posts
msg #61935
Ignore FuriousThug
4/29/2008 1:13:11 PM

Thanks. This looks exactly like what I had...I guess what's confounding me is the inclusion of high/low in the filter rather than just open/close. I want the full trading range to be included.

maxreturn
745 posts
msg #61937
Ignore maxreturn
modified
4/29/2008 1:54:10 PM

Original post seemed to request a weekly outside bar reversal? If so this may be what you're looking for:

Fetcher[
/*WEEKLY OUTSIDE BAR WITH UPCLOSE*/

weekly high above weekly high 1 week ago
and weekly low below weekly low 1 week ago
and weekly close above weekly high 1 week ago
and chart-display is weekly
]



Fetcher[
/*WEEKLY OUTSIDE BAR WITH DOWNCLOSE*/

weekly high above weekly high 1 week ago
and weekly low below weekly low 1 week ago
and weekly close below weekly low 1 week ago
and chart-display is weekly
]



Regards
Max

nikoschopen
2,824 posts
msg #61940
Ignore nikoschopen
4/29/2008 2:45:03 PM

Hello Max,

I just wanna point out that "and weekly close above weekly high 1 week ago" in the third line doesn't necessarily mean there's a reversal. For example, if last week's candle ended the week on the positive, then you would have two consecutive white candles.

You might want to consider the following:

Fetcher[
chart-display weekly
set{reversal, sign(weekly opcl) + sign(weekly opcl 1 week ago)}
reversal equals 0
]



maxreturn
745 posts
msg #61942
Ignore maxreturn
modified
4/29/2008 4:00:21 PM

Yes Niko...I thunk about that after I had posted but got busy after that and didn't have the chance to correct before you did. Johnny on the spot!


Quote from Niko:



Hello Max,

I just wanna point out that "and weekly close above weekly high 1 week ago" in the third line doesn't necessarily mean there's a reversal. For example, if last week's candle ended the week on the positive, then you would have two consecutive white candles.

You might want to consider the following:



chetron
2,817 posts
msg #61947
Ignore chetron
4/29/2008 10:15:10 PM

OR SETTLE FOR.....

Fetcher[

show stocks where HIGH above HIGH 5 days ago
and LOW below LOW 5 days ago
and close below open
and open 5 days ago below close 5 days ago

]



FuriousThug
256 posts
msg #61951
Ignore FuriousThug
4/30/2008 2:12:39 AM

Thanks, Max and Niko. I've managed to use your suggestions to piece together what I was looking for to build both weekly and daily reversal screens, as well as backtest. Much appreciated.

StockFetcher Forums · Filter Exchange · outside reversal filter<< >>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.