StockFetcher Forums · Filter Exchange ·  Please help: opening within body of previous candle<< 1 2 >>Post Follow-up
moby
314 posts
msg #90795
Ignore moby
modified
4/5/2010 12:13:37 AM

Please help me with this scan. Trying to narrow my results to scans that only print results that open within the body of the candle of the previous day. And regardless if the previous candle is red or green.

set{body_bottom,min(open,close)}
set{body_top,max(open,close)}
show stocks where body_top is above body_top 1 day ago

This is what I could find but I can't make it work.

Also, I would prefer if the previous candle is red and the alert to print that today's candle opened within the body of the previous candle and closed green.

I added

and opcl 1 day ago < 0 (makes the day before red)

but when I add

opcl > 0 (to show today's candle closed green, I get errored out).

Just posting the latter stuff to show I am trying, but I can't make it work.

If someone can help when they have time, I would appreciate it. Thank you.

four
5,087 posts
msg #90797
Ignore four
modified
4/5/2010 12:56:25 AM

perhaps 1...

Fetcher[
close 1 day ago < open 1 day ago
close > open

open < max(open 1 day ago, close 1 day ago) and do not draw max(open 1 day ago, close 1 day ago)
open > min(open 1 day ago, close 1 day ago) and do not draw min(open 1 day ago, close 1 day ago)

add column separator
add column open 1 day ago {open_1ago}
add column open {open_tdy}
add column close 1 day ago {close_1ago}
]



perhaps 2...

Fetcher[
close 1 day ago < open 1 day ago
close > open
close > max(open 1 day ago, close 1 day ago)

open < max(open 1 day ago, close 1 day ago) and do not draw max(open 1 day ago, close 1 day ago)
open > min(open 1 day ago, close 1 day ago) and do not draw min(open 1 day ago, close 1 day ago)

add column separator
add column open 1 day ago {open_1ago}
add column open {open_tdy}
add column close 1 day ago {close_1ago}
]



moby
314 posts
msg #90799
Ignore moby
4/5/2010 7:41:24 AM

Thank you very much Four, works perfect !

four
5,087 posts
msg #90811
Ignore four
4/5/2010 2:12:21 PM

Welcome

Which of the two filters: 1 or 2 works for you ?

Perhaps you will share the finished filter ?



heypa
283 posts
msg #90815
Ignore heypa
modified
4/5/2010 2:59:38 PM

I believe in simple
Fetcher[
open yesterday > close yesterday
open today < open yesterday
open today > close yesterday
close today > open yesterday
]



moby
314 posts
msg #90816
Ignore moby
4/5/2010 4:25:37 PM

Thanks heypa and Four.

Four: they both work. Trying to add one of them to settings as a global filter. Only had a few min this morning to try and add them to other filters. When I find a combination that works I will post it in this thread. Thanks again. :)

moby
314 posts
msg #90821
Ignore moby
4/5/2010 6:21:01 PM

Fetcher[show stocks where price crossed above ema(100) in the last one day

close 1 day ago < open 1 day ago
close > open

open < max(open 1 day ago, close 1 day ago) and do not draw max(open 1 day ago, close 1 day ago)
open > min(open 1 day ago, close 1 day ago) and do not draw min(open 1 day ago, close 1 day ago)


add column open 1 day ago {open_1ago}
add column open {open_tdy}
add column close 1 day ago {close_1ago}


set{ccDiff, close - close 1 day ago}
add column ccDiff }

set{WkRSI, weekly RSI(2)}
add column WkRSI

price is between 1 and 50
volume > 300000
volume(5) > 100000

sort column 14 descending
]



moby
314 posts
msg #90903
Ignore moby
modified
4/8/2010 1:51:16 AM

Four: I asked for help on something else, but I took out the first line of your scan and got this as another filter. Ones that don't take out a previous red candle.

Thanks again Four :)



Fetcher[show stocks where price crossed above ema(100) in the last one day

close > open


open > min(open 1 day ago, close 1 day ago) and do not draw min(open 1 day ago, close 1 day ago)


add column open 1 day ago {open_1ago}
add column open {open_tdy}
add column close 1 day ago {close_1ago}


set{ccDiff, close - close 1 day ago}
add column ccDiff }

set{WkRSI, weekly RSI(2)}
add column WkRSI

price is between 1 and 50
volume > 300000
volume(5) > 100000

sort column 14 descending
]



moby
314 posts
msg #90904
Ignore moby
4/8/2010 2:05:44 AM

Four: I like this too, but the ones that gap too much scare me. That they have gone away to far. How can I alter the last scan to limit the gap up to say less than .20 cents ? If you can help tweak this I'd appreciate it, if not I am already very happy with the scan you wrote. Thanks again :)

moby
314 posts
msg #90914
Ignore moby
modified
4/8/2010 8:31:38 AM

Four: Sorry I seem to be answering my own questions here. I was able to add this tweak from another scan and it seems to work together with your's. I thought my add on would create conflict and get zeroed out. Just posting this so you know I am trying and not always asking for help without putting in any effort. Thanks again for everything. Have a nice day.



Fetcher[show stocks where price crossed above ema(100) in the last one day

close > open


open > min(open 1 day ago, close 1 day ago) and do not draw min(open 1 day ago, close 1 day ago)


add column open 1 day ago {open_1ago}
add column open {open_tdy}
add column close 1 day ago {close_1ago}

set{candleSize, high - low }
set{candleHalf, candleSize / 2 }
set{candleMP, low + candleHalf }
set{xDiff, close minus candleMP 1 day ago }

and add column xDiff {BZ Diff}

and xDiff > 0.10
and xDiff < 0.20


set{ccDiff, close - close 1 day ago}
add column ccDiff }

set{WkRSI, weekly RSI(2)}
add column WkRSI

price is between 1 and 50
volume > 300000
volume(5) > 100000

sort column 15 descending
]



StockFetcher Forums · Filter Exchange ·  Please help: opening within body of previous candle<< 1 2 >>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.