MACD Divergences on price and indicator

v10.3
MACD Divergences on price and indicator

Here you are an indicator that shows divergences on price and MACD at the same time.

Indeed, you need to put 1 indicator on the price chart and another as a new indicator.

Divergences are drawn automatically and it does not repaint.

 

 

 

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. supertiti • 06/14/2018 #

    @ Jose
    Gracias por estos indicadores que parecen muy buenos !

    @Nicolas
    Puedes preguntar a PRT para tener los segmentos mas gruesos ?

    gracias

  2. Jose7674 • 06/14/2018 #

    De nada, un placer. Adaptarlo a cualquier otro indicador es sencillo.
    Si el indicador es rapido (estocastico, rsi), N deberia ser 20.

    En indicadores mas “lentos” como un MACD estandar se puede subir el valor de N a 40

  3. juanj • 06/14/2018 #

    Neat! You should do the same for RSI and MFI. I usually validate divergence on all three.

    • Jose7674 • 06/14/2018 #

      It’s quite simple.
      Just change mimacd=rsi[14](close)
      On both and it’s done

      You can use any other indicator this way

  4. JohnScher • 06/14/2018 #

    ty
    fine work
    I’ve been looking for this for a long time.

  5. Inertia • 06/14/2018 #

    Well done !

  6. TAC Bolsa • 06/14/2018 #

    Muy Buen trabajo Jose… no lo he podido mirar hasta ahora… y me parece muy bueno…… sobre todo en otros indicadores, con tu permiso lo adaptare para otros indicadores como HPI.. la versión mejorada..

    • Jose7674 • 06/14/2018 #

      Claro, es muy sencillo de adaptar!
      Ya pondrás algún resultado o idea que saques. La idea surgió al ver tu indicador modificado. Creía que también dibujaba las divergencias … y ya empecé a pensar como hacerlo

  7. cc • 06/14/2018 #

    Excelente indicador @jose7674 Seria ideal que pudiera detectar las divergencias reales como lo hace y ademas las escondidas (hidden). Gracias

  8. tradingthelife • 06/14/2018 #

    @jose7674 este indicador es una auténtica joya, muchas gracias por compartirlo.
    Uno de los inconvenientes es la visibilidad, como comentaba @supertiti. Lo he tuneado un poco y después del drawsegment he añadido

    DRAWARROWDOWN(barindex[1], miRSI[1]) COLOURED(200,0,0)

    para las bajistas, y

    DRAWARROWUP(barindex[1], miRSI[1]) COLOURED(0,200,0)

    para las alcistas.

    Lo de las divergencias ocultas sería un plus. No tengo nivel para esto, pero @Francesco hizo también un gran trabajo con este indicador que sí las incluye: https://www.prorealcode.com/prorealtime-indicators/rsi-classical-hidden-divergences-indicator/

    Saludos y gracias de nuevo por tu aporte.

  9. abhay • 06/14/2018 #

    divergence lines on MACD indicator are not showing. It shows only on Price chart

    • Nicolas • 06/14/2018 #

      Because you have to apply it on the price chart too.

  10. tradingthelife • 06/14/2018 #

    Hay alguna manera de hacer un proscreener para este indicador? Lo he intentado pero no lo consigo.
    Saludos y gracias.

    • franciscojbritop • 06/14/2018 #

      Hola tradingthelife, has tenido suerte encontrando un screener para este indicador? He estado un tiempo largo buscandolo y no logro conseguirlo tampoco. Saludos

    • franciscojbritop • 06/14/2018 #

      Hola Jose7674, Utilizas algun screener para encontrar candidatos que esten mostrando estas MACD divergences mostradas en tu codigo? Saludos

  11. thomas2004ch • 06/14/2018 #

    How can I just draw the latest divergency line? I try the following but no line is drawn.

    for i2=1 to N
    if mimacd[i2]=extremum11[1] then
    zz2=i2

    drawsegment(barindex[1], mimacd[1], barindex[zz2], mimacd[zz2]) coloured(0,200,0)
    endif
    break
    next

  12. thomas2004ch • 06/14/2018 #

    I use the break to get off after the first divergency line is drawn. But this seems not work.

  13. FrancoisB • 06/14/2018 #

    Nice, does anyone know how to show the hidden divergence as well?

  14. tradingthelife • 06/14/2018 #

    Hi friends, any help with a screener for this indicator? Best regards.

  15. Psg91450 • 06/14/2018 #

    Good evening José7674,
    First of all thank you for sharing on the macd. I would like to put an alert on the green and red color changes but I can’t do it. Can you help me and give me the code please.
    Thank you in advance.

  16. Bertone • 06/14/2018 #

    Great job. It really works, especially on the weekly chart.Awesome!! Can it be used as a Screener??

  17. pacorapvalle • 06/14/2018 #

    Gracias por el indicador y me uno a los que han preguntado si hay algun screener.

  18. Jose7674 • 06/14/2018 #

    Intentaré poner el screener está semana

  19. Lily Rios • 06/14/2018 #

    Excelente trabajo Jose, existe algún screener para este indicador?

  20. GUCCI ONE • 06/14/2018 #

    Bonjour, Nicolas. Pourriez-vous m’aider à transformer cet indicateur en screener, svp ? Merci

    • Nicolas • 06/14/2018 #

      disponible ici: https://www.prorealcode.com/topic/divergences-screener/

  21. julien1978 • 06/14/2018 #

    hello to all, i recently discovered this indicator. would it be possible to add the detection of hidden divergences on it? that would be awesome!

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+28 more likes

Related users ' posts
Djo Not working on V11. The RSI doesn't appear on the chart.
Mika83 Bonjour, J'ai des soucis de lecture de syntaxe avec la variable "drawsegment" sur la versio...
seb234 Salut Mika, j'ai la version V11.1, la formule fonctionne. Mais il est préférable, dixit Nico...
Nicolas
7 years ago
Loop Hi All! Would it be possible to have the same indicator with the MACD calculated with the DE...
Nicolas Why not, but do you think it would make such a noticeable difference?
Loop Good question Nicolas! That's why I was curious to check it! MACD based on DEMA is usually m...
supertiti Thanks you so much Lucassen
dreif123 hi, copied the above code, not working on 10.3 the system says "return can only be used at ...
LUCASSEN Hallo , i have no problem , and i have the same versie 10.3, maybe you can ask Nicolas, tha...
Nicolas
7 years ago
Nicolas Para cambiar los colores del histograma, deben usarse las variables r, gyb entre las líneas ...
leofib Hello, I was looking for a MACD Histogram with red and green bars according to the value of ...
Helgart Hi, it's great to have this option of having a histogram coloured based on rising or fall...
SAM
7 years ago
Nicolas
7 years ago
Jurik MACD
Jurik MACD
1
Indicators
ramonjp Hi Nicolas, this sentence is correct?? ftmp0 = (1-falpha)*price + falpha*tmp0[1] I thi...
bolsatrilera
7 years ago
MACD MIRROR
MACD MIRROR
0
Indicators
Nicolas
7 years ago
soulintact Thank you very much Nicolas for this great indicator. I have tried to apply it to a trading ...
laitus No funciona este indicador ¿¿?? ¿Alguien sabe por qué?
Nicolas
8 years ago
ALMA MACD
ALMA MACD
7
Indicators
Arnaud HALVICK Great indicator, thank you!
JMat45 Hi Nicolas, just reviewing this indicator and noticed that you have double assigned the vari...
Nicolas That would not make any difference because the code is read from top to bottom.
MikeGC I don't know if you have used the variables a and b to optimise the parameters for the Super...
gianpiero75 I have not optimized, I multiplied the parameters for 6 (5,8), to use them on the 4  hoursTF...
bertrandpinoy bonjour Mike j utilise TrendChaser V2.0 et quand il prend position cela ne programme pas le ...
Pelle Nævestad Thanks Nicolas, this is a keeper!
Chicane23 Hi, when uploaded the WAE isnt showing histogram; only line. Is there a way to modify?
Nicolas Change the way the lines are displayed in the indicator settings window : histogram, lines, ...
Bard Did anyone get an error with lines 25 and 26?
Nicolas
9 years ago
ZeroLag MACD
ZeroLag MACD
13
Indicators
sam00075 Hi Nicolas, can you please upload a version with TEMA, so those who don't know how to code c...
Nicolas Use the MACD code here: https://www.prorealcode.com/topic/standard-prt-code-for-macd/#post-1...
Alai-n Afin d'avoir l'Histogramme Macd il faut rajouter ligne18 : HistogrammeMacd = ZeroLagMACD - S...
Nicolas
9 years ago
Nicolas Just replace the last line with this : RETURN dm as "Volume Weighted MACD", masignal as "Si...
thomas2004ch I happen to read this article. I would say the formel 'd = maslow - mafast' could be inverse...
Nicolas You are right! but still the picture is looking good. The formula is inverted! dunno why :) ...
Nicolas
9 years ago

Top