StockFetcher Forums · Filter Exchange · Basic question on "offsetting" a filter for a "lookback period"<< >>Post Follow-up
jhenninger
63 posts
msg #77731
Ignore jhenninger
8/20/2009 3:24:08 PM

Hello all,

I have what is likely another rookie question: I am running the following scan, but I was wondering if there is a way to change the coding a bit so that it looks for the same basic structure, EXCEPT that it took place x days ago (10, 20, whatever..)

RSI(3) crossed above 70 and RSI(3) 1 day ago had been below 70 for the last 20 days
and average volume(30) is greater than 300000
and close is above 1


So basically, I'm trying to find a scan that is capable of finding stocks where the RSI(3) crossed above 70 for the first time in 20 days... except that this actually happened x days ago (after the fact).

Thoughts? Any help is greatly appreciated, as always..

Jon

dwiggains
444 posts
msg #77746
Ignore dwiggains
8/20/2009 7:40:25 PM

Hi

Try this
Fetcher[
rsi (3) < 20 for the last 20 days and draw rsi (3)
]



You get 41 matches

add Price of close > 5 and -----

Fetcher[
close > 5 and rsi (3) < 20 for the last 20 days and draw rsi (3)
]



You get 3 matches with low -- low volume.

see ya
David

jhenninger
63 posts
msg #77814
Ignore jhenninger
8/21/2009 2:28:56 PM

Hey David, appreciate the follow up. However, I think we may have some miscommunication going on here b/c those scans seem to be pulling up some weird results.

What I'm trying to code is something that can find when the RSI(3) has crossed above the 70 area for the first time in 20 days --- BUT THAT this actually happened x days ago (a lookback period so that I can find results after the fact and not the day of).

Does this make sense?

Thanks again...

welliott111
98 posts
msg #77823
Ignore welliott111
modified
8/21/2009 4:18:17 PM

Fetcher[
avgvol(90) > 500000
not otcbb
rsi(3) crossed above 70
count(rsi(3) crossed above 70,20) equals 1
date offset is 5
]



Adjust date offset to your preference

StockFetcher Forums · Filter Exchange · Basic question on "offsetting" a filter for a "lookback period"<< >>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.