Hidden Divergence
Forums › ProRealTime English forum › ProBuilder support › Hidden Divergence
- This topic has 5 replies, 4 voices, and was last updated 5 years ago by Vonasi.
-
-
05/22/2017 at 7:44 PM #36335
Hi Nicolas and Traders,
in the last days i’ve done some backtest on divergence, since i realy think it really gives an edge.
Results were pretty good and i like the idea behind it.
I personally used CCI-Divergence, based on the cci-divergence indicator in the following thread, posted from Nicolas and based on the code from HK-LISSE:https://www.prorealcode.com/reply/10038/
Code is:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061// DIVERGENCES CCI adapted from HK-LISSE codex = CCI[p]y=average[filterperiod](x)// BEARISH DIVERGENCES CCIif x>overboughtzone thenhi=max(hi,x)hico=max(hico,max(high,high[1]))endifif x crosses under y thensto2b=sto1bsto1b=hihi=0p3b=p1bp2b=max(p1b,hico1)p1b=max(highest[3](high),hico)if p2b=p1b thenp2b=max(p3b,p4b)endifhico=0hico1=0endifif x<y thenp4b=hico1hico1=max(hico1,high)endifif p1b>p2b and sto1b<sto2b and x crosses under y and x<x[1] thensignB= -2elsesignB= 0endif// BULLISH DIVERGENCES CCIif x<oversoldzone thenlo=min(lo,x)lowco=min(lowco,min(low,low[1]))endifif x CROSSES OVER y thensto2h=sto1hsto1h=lolo=100p3h=p1hp2h=min(p1h,lowco1)p1h=min(lowest[3](low),lowco)if p2h=p1h thenp2h=min(p3h,p4h)endiflowco=100000lowco1=100000endifif x>y thenp4h=lowco1lowco1=min(lowco1,low)endifif p1h<p2h and sto1h > sto2h and x crosses over y and x>x[1] thensignH= 2elsesignH= 0endif////////////////////////////////////////////////return signH as " div CCI H ", signB as " div CCI B " , 0 as " zero "Since i’m not very clever at coding, my question is:
Is it possible to add hidden divergences to the indicator?
This would be absolutely awesome!
Should be a almost complete toolkit to trade then.Any help would be highly appreciated 🙂
Many thanks in advance and best regards
Robert
05/24/2017 at 10:21 PM #3659905/25/2017 at 11:53 AM #36617Maybe make it easy and add a link to info on hidden divergence? I had to look to refresh myself! 🙂
http://www.babypips.com/school/high-school/trading-divergences/divergence-cheat-sheet.html
http://www.babypips.com/school/high-school/trading-divergences/hidden-divergence.html
Cheers
GraHal05/25/2017 at 5:29 PM #36644Sorry GraHal,
you’re absolutely right!
Totally forgot about it.
Thank you very much for posting the links.Shortly for everyone:
UPTREND
Price: Higher Low
Indicator: Lower Low-> Price should continue to rise
DOWNTREND
Price: Lower High
Indicator: Higher High-> Price should continue to fall
Greetings,
Robert
05/08/2019 at 12:47 PM #9793605/08/2019 at 1:43 PM #97954 -
AuthorPosts