Divergence Indicator - page 30

To add comments, please log in or register
jetro1971
10
jetro1971  
tofazzle:
Hello jetro1971,

why dont you do on thing .you want to get value for Bar[1].so instead of changing Ea code ,chage the code for indicator

instead of for(i=limit; i>=0; i--) for loop for barcount, use for(i=limit; i>0; i--) .that way the indicator will only count closed bar.I am also trying to devolope an EA using divergent.But it seems divergent need to confermed by a second filter,SMA,fibo,Support,trendline etc.I also like one idea first get confermation of divergence on higher timeframe say H4,then wait for same type of divergent(Bullish hidden etc) in shorter timeframe 30M.Do you have any ideas on that. {

Hello tofazzle,

The indicator itself working well. My only issue is to call it from EA.

There are 5 buffers in the indicator, when I try to call it from EA I can get Wildhog[] and slope[] inline with indicator values however when there is a divergence occurs in the indicator, I cannot observe any meaningful change in the whda,whdb,bullishDivergence or bearishDivergence buffers.

double Wildhog[];

double whda[];

double whdb[];

double bullishDivergence[];

double bearishDivergence[];

double slope[];

Have you (or anybody) succeeded to get the right values when divergence occurs?

Regarding additional filters, yes of course it would require some other filters but my aim is to use a part of my EA. My experience is that this kind of indicator must be confirmed by price-action and my EA is already doing that. Hope this helps.

jetro1971
10
jetro1971  

This is the EA that I'm using for tests.

Testing in visual mode with M15 or H1. During tests I'm inserting the indicator and also looking to the journal to see the buffer values of index-1.

Indicator shows the divergence values good but cannot see it in the journal coming from EA. Only the slope and indicator line position shows the correct value.

Any comments appreciated.

Files:
Tam
197
Tam  
myname
3231
myname  
TamFX:
Good reading of divergence perry_j._kaufman_momentum_divergence.docx

Nice readings. Thanks

Pascal
271
Pascal  

Isn't divergence always lagging?

krelian99
1202
krelian99  

Yes, it looks nice but lagging and too many false signals.

Mladen Rakic
155794
Mladen Rakic  

By their nature divergence must lag (extremes confirmation - not just one extreme but 2) can not be made on a current bar and, because of that, they must lag

They are probably good on a long term (and high time frames) but in day trading, it is not what we are used ti use as "signals" and without any kind of "insider information" it is rather unlikely that a little Joe can use them for trading

myname
3231
myname  

Divergences are far too subjective to be used in TA - almost like patterns

Davide Corda
7
Davide Corda  

Hi everyone, this is a correlation indicator I modified in order to mirror the price movements (it's the difference between the stochastics of the related pair, in this case the difference between the EURUSD & EURJPY related to the price of USDJPY).

Could someone add an arrow who shows the divergence between the oscillator and the price, both for the classical and for the hidden? I tried but without great results, I'm not a great coder

stochdiff.mq4

tampa
2047
tampa  

A collection of different macd indicators with divergences

macd_averages_diver-level-arrow_mtf_alert_18ma.zip

To add comments, please log in or register