StockFetcher Forums · Filter Exchange · Filter for divergence<< >>Post Follow-up
sixerwrong@gmail.com
12 posts
msg #149041
Ignore sixerwrong@gmail.com
9/4/2019 6:50:18 PM

Hello to all,
is there a filter that can detect stocks having a divergence?

thanks in advance
kris

four
5,087 posts
msg #149042
Ignore four
modified
9/4/2019 8:30:20 PM

Which divergence are you looking for:
divergence between stock price and moving average
divergence between stock price and rsi -- https://youtu.be/BBJQ8-lGlbE
divergence between stock price and macd -- https://youtu.be/PsyUHGjVgTY
divergence between stock price and stochastics -- https://www.youtube.com/watch?v=AAtZF_Pvucg
divergence between two indicators (price not used)

AND

Bullish or Bearish
https://www.learningmarkets.com/how-to-trade-bullish-and-bearish-technical-divergences/
https://www.youtube.com/watch?v=-MHXQ9nCsqc

--
RSI
https://www.youtube.com/watch?v=wbz5dvY64MQ



graftonian
1,089 posts
msg #149045
Ignore graftonian
9/5/2019 3:35:05 PM

Kris, This bit of code by Kevin from GA may help.

Fetcher[
/*CODING FOR DIVERGENCES*/
OPTIONABLE
Average Volume(30) > 10000000
SET{VAR1_UP, COUNT(MACD(12,26,1) GAINED MORE THAN 7% OVER THE LAST 10 DAYS,1)}
SET{VAR1_DN, COUNT(MACD(12,26,1) DROPPED MORE THAN 7% OVER THE LAST 10 DAYS,1)}

SET{VAR2_UP, COUNT(MA(3) GAINED MORE THAN 7% OVER THE LAST 10 DAYS,1)}
SET{VAR2_DN, COUNT(MA(3) DROPPED MORE THAN 7% OVER THE LAST 10 DAYS,1)}

SET{POS_DIV, VAR1_UP * VAR2_DN}
SET{NEG_DIV, VAR1_DN * VAR2_UP}

ADD COLUMN POS_DIV and draw POS_DIV
ADD COLUMN NEG_DIV and draw NEG_DIV
/*****************/
set{macdline, indposition(MACD Fast Line(12,26,9), 20)}
draw macdline
set{priceline, indposition(MA(3), 20)}
draw priceline on plot macdline
/******************/
draw MACD Fast Line(12,26,9)


]



sixerwrong@gmail.com
12 posts
msg #149046
Ignore sixerwrong@gmail.com
9/5/2019 6:16:01 PM

hi guys thank so much for the information that both provided...to answer four question I was looking for a divergence in price vs macd....and will surely look into both info to learn more.

thanks both guys

risjr
229 posts
msg #149054
Ignore risjr
9/6/2019 6:09:39 PM

This filter is AWESOME!!

i will post a streamlined version of this.

Looks really good

In 2 days for so

dood

risjr
229 posts
msg #149066
Ignore risjr
9/8/2019 8:50:40 PM

HERE TIS


/*CODING FOR DIVERGENCES*/

Average Volume(30) > 5000000
SET{VAR1_UP, COUNT(MACD(12,26,1) GAINED MORE THAN 7% OVER THE LAST 10 DAYS,1)}
SET{VAR1_DN, COUNT(MACD(12,26,1) DROPPED MORE THAN 7% OVER THE LAST 10 DAYS,1)}

SET{VAR2_UP, COUNT(MA(3) GAINED MORE THAN 7% OVER THE LAST 10 DAYS,1)}
SET{VAR2_DN, COUNT(MA(3) DROPPED MORE THAN 7% OVER THE LAST 10 DAYS,1)}

SET{POS_DIV, VAR1_UP * VAR2_DN}
SET{NEG_DIV, VAR1_DN * VAR2_UP}

ADD COLUMN POS_DIV and draw POS_DIV
ADD COLUMN NEG_DIV and draw NEG_DIV
/*****************/
set{macdline, indposition(MACD Fast Line(12,26,9), 20)}
draw macdline
set{priceline, indposition(MA(3), 20)}
draw priceline on plot macdline
/******************/
draw MACD Fast Line(12,26,9)
AND CLOSE ABOVE 2
AND CLOSE BELOW 5





snappyfrog
731 posts
msg #149067
Ignore snappyfrog
9/9/2019 9:59:29 AM

Making it clickable.

Fetcher[

/*CODING FOR DIVERGENCES*/

Average Volume(30) > 5000000
SET{VAR1_UP, COUNT(MACD(12,26,1) GAINED MORE THAN 7% OVER THE LAST 10 DAYS,1)}
SET{VAR1_DN, COUNT(MACD(12,26,1) DROPPED MORE THAN 7% OVER THE LAST 10 DAYS,1)}

SET{VAR2_UP, COUNT(MA(3) GAINED MORE THAN 7% OVER THE LAST 10 DAYS,1)}
SET{VAR2_DN, COUNT(MA(3) DROPPED MORE THAN 7% OVER THE LAST 10 DAYS,1)}

SET{POS_DIV, VAR1_UP * VAR2_DN}
SET{NEG_DIV, VAR1_DN * VAR2_UP}

ADD COLUMN POS_DIV and draw POS_DIV
ADD COLUMN NEG_DIV and draw NEG_DIV
/*****************/
set{macdline, indposition(MACD Fast Line(12,26,9), 20)}
draw macdline
set{priceline, indposition(MA(3), 20)}
draw priceline on plot macdline
/******************/
draw MACD Fast Line(12,26,9)
AND CLOSE ABOVE 2
AND CLOSE BELOW 5
]



risjr
229 posts
msg #149071
Ignore risjr
9/9/2019 1:17:26 PM

this is how I trade...pls click below!

https://www.swing-trade-stocks.com/rsi-5-day-look-back-for-entry-and-exits.html

confirms are same criteria....but with 1 hr time frame

risjr
229 posts
msg #149074
Ignore risjr
9/9/2019 3:29:21 PM

ema 5 and cci 5 help...but are optional!!

StockFetcher Forums · Filter Exchange · Filter for divergence<< >>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.