Sunday, November 23, 2008

Muddy filter 3 day fail - JV modification

I spent this morning analyzing the fail filter. Yes, this is how I spend my Sunday mornings. I believe Muddy said that the original intent of this filter was to look for weak stocks that were ready to pop. In that regard the filter selects for longer bottom tails than top ones as a sign of reversal. For shorts, we want the opposite- shorter bottom tails and less reversal. So I flipped the code to reflect that point.  I only changed 3 words- you can copy the code below. I put this in a separate post so you can use both filters as you see fit. Very nice coding by Murknd.


set{x,count(volume 3 days ago above volume 4 days ago,1)*2} and set{y,count(volume 3 days ago above average volume(90),3)} and set{z,x+y} and z is above 1.1 and close 3 days ago had been decreasing over the last 3 days and average volume(90) 3 days ago is above 100000 and close 3 days ago is between 1 and 10 and low 3 days ago is below lower bollinger band(20) 3 days ago and count(close 3 days ago above open 3 days ago,3) is below 2.1 and day change has been below 0 for the last 3 days and set{a,count(volume above volume 1 day ago,1)} and set{toptail,high-open} and set{bottail,close-low} and set{taildelta,bottail-toptail} and set{b,count(taildelta is below 0,1)} and set{c,a+b} and c is above 0 and set{d,count(volume 1 day ago above volume 2 days ago,1)} and set{toptaila,high 1 day ago-open 1 day ago} and set{bottaila,close 1 day ago-low 1 day ago} and set{taildeltaa,bottaila-toptaila} and set{e,count(taildeltaa is below 0,1)} and set{f,d+e} and f is above 0 and set{g,count(volume 2 days ago above volume 3 days ago,1)} and set{toptailb,high 2 days ago-open 2 days ago} and set{bottailb,close 2 days ago-low 2 days ago} and set{taildeltab,bottailb-toptailb} and set{h,count(taildeltab is below 0,1)} and set{i,g+h} and i is above 0 offset is 0

** UPDATE

2 day and 1 day fail filters with JV modification



2 day fail

set{x,count(volume 2 days ago above volume 3 days ago,1)*2} and set{y,count(volume 2 days ago above average volume(90),3)} and set{z,x+y} and z is above 1.1 and close 2 days ago had been decreasing over the last 3 days and average volume(90) 2 days ago is above 100000 and close 2 days ago is between 1 and 10 and low 2 days ago is below lower bollinger band(20) 2 days ago and count(close 2 days ago above open 2 days ago,3) is below 2.1 and day change has been below 0 for the last 2 days and set{a,count(volume above volume 1 day ago,1)} and set{toptail,high-open} and set{bottail,close-low} and set{taildelta,bottail-toptail} and set{b,count(taildelta is below 0,1)} and set{c,a+b} and c is above 0 and set{d,count(volume 1 day ago above volume 2 days ago,1)} and set{toptaila,high 1 day ago-open 1 day ago} and set{bottaila,close 1 day ago-low 1 day ago} and set{taildeltaa,bottaila-toptaila} and set{e,count(taildeltaa is below 0,1)} and set{f,d+e} and f is above 0


1 day fail

set{x,count(volume 1 day ago above volume 2 days ago,1)*2} and set{y,count(volume 1 day ago above average volume(90),3)} and set{z,x+y} and z is above 1.1 and close 1 day ago had been decreasing over the last 3 days and average volume(90) 1 day ago is above 100000 and close 1 day ago is between 1 and 10 and low 1 day ago is below lower bollinger band(20) 1 day ago and count(close 1 day ago above open 1 day ago,3) is below 2.1 and day change is below 0 and set{a,count(volume above volume 1 day ago,1)} and set{toptail,high-open} and set{bottail,close-low} and set{taildelta,bottail-toptail} and set{b,count(taildelta is below 0,1)} and set{c,a+b} and c is above 0


enjoy.

3 comments:

Charlie G. said...

so the first one is a scan for long plays (weak and pop), and the one here is for shorting (weak and drop)?
Thanks, CG

johnnyvento said...

they really both can be used for shorting- but the original code selects for longer bottom tails- actually many of the same stocks come up on both

Charlie G. said...

thanks for the clarification. i need to take some time to drill down through all your posts because you have a lot of muddy stuff explained with bonus JV add ons!

CG