StockFetcher Forums · General Discussion · Slope feature to spot divergences<< >>Post Follow-up
glgene
523 posts
msg #36364
Ignore glgene
6/17/2005 2:17:26 PM

I'm a newbie. Trying to develop a filter to spot a divergence between price (increasing) and RSI (decreasing), since that often results in a stock's price eventually going down. Here is my filter:

"Show stocks where the 22 day slope of the close is between 0 and 1.0
and the 22 day slope of RSI is between -0.25 and -1.0
and price increased the last 1 day"

I think the last line is not correct, and it might need a 4th line (with some reference to RSI). Would appreciate help. Or am I off base trying to use "Slope" to accomplish the task?

GL Gene


xplorer
257 posts
msg #36366
Ignore xplorer
6/17/2005 8:18:38 PM

Fetcher[
Show stocks where the 22 day slope of the close is between 0 and 1.0
and the 22 day slope of RSI is between -0.25 and -1.0
and price is greater than price 1 day ago
]




TheRumpledOne
6,358 posts
msg #36375
Ignore TheRumpledOne
6/18/2005 6:43:32 PM

Since I can't short all the stocks, I'll share this filter with you.

One of my "secret" filters:

Fetcher[
/* will show stocks that have 2 day to 5 day negative divergence between price and rsi(2).

column nd2345 = xxxx where:

1xxx = 2 day negative divergence
x1xx = 3 day negative divergence
xx1x = 4 day negative divergence
xxx1 = 5 day negative divergence

*/

set{nd2,count(close above close 2 days ago,1) * count(rsi(2) below rsi(2) 2 days ago,1)}}

set{nd3,count(close above close 3 days ago,1) * count(rsi(2) below rsi(2) 3 days ago,1)}

set{nd4,count(close above close 4 days ago,1) * count(rsi(2) below rsi(2) 4 days ago,1)}

set{nd5,count(close above close 5 days ago,1) * count(rsi(2) below rsi(2) 5 days ago,1) }

Set{n1, nd5 * 1}
Set{n2, nd4 * 10}
Set{n3, nd3 * 100}
Set{n4, nd2 * 1000}

Set{na, n1 + n2}
Set{nb, n3 + n4}
Set{ND2345, na + nb}

and add column ND2345

and add column rsi(2)
and add column weekly rsi(2)

and sort column 6 descending

and close above 1
and volume above 1000000

and ND2345 above 0


/* next line can be omitted if you want more stocks */

and rsi(2) above rsi(2) 1 day ago

]




Change price and volume to fit your trading strategy.

MAY ALL YOUR FILLS BE COMPLETE.



mktmole
319 posts
msg #36390
Ignore mktmole
6/20/2005 2:40:15 PM

Thanks RO.
Here's a stab at Positive Divergence for Longs.
[/* shows stocks that have 2 day to 5 day positive divergence between price and rsi(2). (decreasing price and increasing RSI(2), and a volume spike

column pd2345 = xxxx where:

1xxx = 2 day positive divergence
x1xx = 3 day positive divergence
xx1x = 4 day positive divergence
xxx1 = 5 day positive divergence

*/

set{pd2,count(close below close 2 days ago,1) * count(rsi(2) above rsi(2) 2 days ago,1)}}

set{pd3,count(close below close 3 days ago,1) * count(rsi(2) above rsi(2) 3 days ago,1)}

set{pd4,count(close below close 4 days ago,1) * count(rsi(2) above rsi(2) 4 days ago,1)}

set{pd5,count(close below close 5 days ago,1) * count(rsi(2) above rsi(2) 5 days ago,1) }

Set{p1, pd5 * 1}
Set{p2, pd4 * 10}
Set{p3, pd3 * 100}
Set{p4, pd2 * 1000}

Set{pa, p1 + p2}
Set{pb, p3 + p4}
Set{PD2345, pa + pb}

set{voldiff, average volume(1) - average volume(30)}
set{volratio, voldiff / average volume(30)}
set{volpercent, volratio*100.0}
volpercent is above 200
and do not draw volpercent
and add column VolPercent


and add column PD2345

and add column weekly rsi(2)
and add column rsi(2)

and sort column 6 descending

and close above .5
and volume above 500,000

and PD2345 above 0

and rsi(2) above rsi(2) 1 day ago
and close above close 1 day ago]





TheRumpledOne
6,358 posts
msg #36393
Ignore TheRumpledOne
6/20/2005 8:25:37 PM

Fetcher[
/* shows stocks that have 2 day to 5 day positive divergence between price and rsi(2). (decreasing price and increasing RSI(2), and a volume spike

column pd2345 = xxxx where:

1xxx = 2 day positive divergence
x1xx = 3 day positive divergence
xx1x = 4 day positive divergence
xxx1 = 5 day positive divergence

*/

set{pd2,count(close below close 2 days ago,1) * count(rsi(2) above rsi(2) 2 days ago,1)}}

set{pd3,count(close below close 3 days ago,1) * count(rsi(2) above rsi(2) 3 days ago,1)}

set{pd4,count(close below close 4 days ago,1) * count(rsi(2) above rsi(2) 4 days ago,1)}

set{pd5,count(close below close 5 days ago,1) * count(rsi(2) above rsi(2) 5 days ago,1) }

Set{p1, pd5 * 1}
Set{p2, pd4 * 10}
Set{p3, pd3 * 100}
Set{p4, pd2 * 1000}

Set{pa, p1 + p2}
Set{pb, p3 + p4}
Set{PD2345, pa + pb}

set{voldiff, average volume(1) - average volume(30)}
set{volratio, voldiff / average volume(30)}
set{volpercent, volratio*100.0}
volpercent is above 200
and do not draw volpercent
and add column VolPercent


and add column PD2345

and add column weekly rsi(2)
and add column rsi(2)

and sort column 6 descending

and close above .5
and volume above 500,000

and PD2345 above 0

and rsi(2) above rsi(2) 1 day ago
and close above close 1 day ago
]





Railwhore
69 posts
msg #37908
Ignore Railwhore
9/10/2005 4:22:32 PM

RO,

I think you have a bug in your filter. Shouldn't that last line in your Negative Divergence be this:

and rsi(2) BELOW rsi(2) 1 day ago?

I seem to get much better results this way.


TheRumpledOne
6,358 posts
msg #37927
Ignore TheRumpledOne
9/13/2005 12:47:26 PM

"RO,

I think you have a bug in your filter. Shouldn't that last line in your Negative Divergence be this:

and rsi(2) BELOW rsi(2) 1 day ago?

I seem to get much better results this way."

Not a bug, just a variation.

You don't even have to have that line in there!


MAY ALL YOUR FILLS BE COMPLETE.


TheRumpledOne
6,358 posts
msg #41944
Ignore TheRumpledOne
3/12/2006 4:35:11 PM

POP TO THE TOP


StockFetcher Forums · General Discussion · Slope feature to spot divergences<< >>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 2016 - 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