StockFetcher Forums · General Discussion · Stochastics Filter?<< >>Post Follow-up
danielmiz
3 posts
msg #68948
Ignore danielmiz
11/3/2008 12:18:03 AM

Looking for help on a stochastics filter to identify pullbacks - the general filter is:

Stochastic(7,10,4) %D has been decreasing for 4 days and Stochastic(7,10,4) %K has been increasing for 4 days


But would like to screen for pullbacks from 4 to 6 days. Ideally the filter looks like this:

Show stocks where Stochastic(7,10,4) %D has been decreasing for 4 days and Stochastic(7,10,4) %K has been increasing for 4 days
or show stocks where Stochastic(7,10,4) %D has been decreasing for 5 days and Stochastic(7,10,4) %K has been increasing for 5 days
or show stocks where Stochastic(7,10,4) %D has been decreasing for 6 days and Stochastic(7,10,4) %K has been increasing for 6 days

But since there's no "OR" statement in SF, how would you code this? Tried using TRO's count method to mimic the OR but couldn't figure it out.


chetron
2,817 posts
msg #68949
Ignore chetron
11/3/2008 6:57:03 AM

maybe...


Fetcher[


/* TACHIKAWA */


set{vpb4a,count(Stochastic(7,10,4) %D has been decreasing for 4 days,1)}
set{vpb4b,count(Stochastic(7,10,4) %K has been increasing for 4 days,1)}
set{vpb4,vpb4a * vpb4b}


set{vpb5a,count(Stochastic(7,10,4) %D has been decreasing for 5 days,1)}
set{vpb5b,count(Stochastic(7,10,4) %K has been increasing for 5 days,1)}
set{vpb5,vpb5a * vpb5b}


set{vpb6a,count(Stochastic(7,10,4) %D has been decreasing for 6 days,1)}
set{vpb6b,count(Stochastic(7,10,4) %K has been increasing for 6 days,1)}
set{vpb6,vpb6a * vpb6b}

set{vallpba,vpb4 + vpb5}
set{vallpb,vallpba + vpb6}


add column vpb4
add column vpb5
add column vpb6


draw vpb6 on plot vpb4
draw vpb5 on plot vpb4

vallpb above .5
do not draw vallpb

]







StockFetcher Forums · General Discussion · Stochastics 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.