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?

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

  1. supertiti • 340 days ago #

    @ Jose
    Gracias por estos indicadores que parecen muy buenos !

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

    gracias

  2. Jose7674 • 340 days ago #

    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 • 340 days ago #

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

    • Jose7674 • 340 days ago #

      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 • 339 days ago #

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

  5. Inertia • 336 days ago #

    Well done !

  6. TAC Bolsa • 335 days ago #

    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 • 335 days ago #

      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 • 287 days ago #

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

  8. tradingthelife • 205 days ago #

    @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 • 190 days ago #

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

    • Nicolas • 190 days ago #

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

  10. tradingthelife • 183 days ago #

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

    • franciscojbritop • 59 days ago #

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

    • franciscojbritop • 59 days ago #

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

  11. thomas2004ch • 94 days ago #

    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 • 94 days ago #

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

  13. FrancoisB • 70 days ago #

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

  14. tradingthelife • 67 days ago #

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

avatar
Register or

Likes

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

+16 more likes

Related users ' posts
Juanjo Hola, Buscando un sistema valido para operar el squeeze, he reprogramado el indicador para ...
mauro1966 BRAVO....
Gianluca THANK YOU!!!!!
Polnet Solucionado, gracias
Jan Wind Hallo Tac Bolsa, Thanks a lot for your coding above. As I am personally not very charm...
TAC Bolsa Thank you, Jan Any modification is good reference if it helps us win in the market.
Nicolas Merci de formuler la demande dans un nouveau sujet dans le forum approprié.
Hugues Bontour Ok ;-) Normalement c'est au bon endroit. Merci à toi
Juanjo Hola Muchas Gracias por el indicador, ...queria preguntar si se podria añadir la visualiza...
juanj DId some tests using MACD validations on higher timeframes using MTF functionality and unfor...
FREDNC Hi Francesco I tried with :
FREDNC adx[14]>adxmin and adx[14] > adxr[14] and adx[14]>adxmin and adx[14] DIminus[3](clo...
jpm380 Merci pour ce super indicateur. Comment puis-je mettre une alerte dès changement dès croisem...
bala Hi Kris, I have imported the screen. I don't see any instrument loaded under this screen....
Kris75 Hi Bala, you need first to install ZeroLagMACDWeek indicator and then add on it the diverg...
berga Hi, thank you very much for this very useful screener. I would like to get another very clos...
Nicolas Thank you Xusto. Thank you a lot for your contribution :) Since your code is a Pathfinder'...
Xusto Hello, Fully Agree, I will update it with your advice. Btw Can would you like share you co...
Niklas johansson hägglund do you now if it's possible to use this strategy with this code in tradingview also?
AGTrader Interesante, muy visual Doc. Felicidades!!!
Andraxx simplemente impresionante Dom...te sigo en youtube. Me ha gustado tu canal. Gracias por comp...
Toto le Heros Thanks Nicolas. I read somewhere that in the calculation, we should round the value of the A...
Nicolas aADX = round(adx[10])
JanWd Hey Doctrading, I tried your code, optimising the A and V and the RSI period, see below. ...
Glen Marquis This will work as there is plenty of room for the Target before the Stop, yet the Stop would...
magicT I did a copy and paste of this code and PRT 10.3 returns a synthax mistake: OneTradePerD...
Nicolas I'm almost sure that it has already been coded in a topic in one of the forums.
julien1978 Bonjour Nicolas, je suis tombé sur cet indicateur qui est très intéressant mais n'y -a-t il ...
Nicolas Je pense que tu trouveras les explications à ce sujet et le pourquoi / comment ici : https:/...
MaoRai54 Hi, first of all Happy New Year. Well, I've inserted your indicator in DAX 1h but I cann...
Vinks_o_7 Hi Mao Happy New Year ! This is just an improved RSI where you plot a standard price momen...
Angel Perez Ciao Francesco. First of all thanks for the indicator and also fro the screener. I do have a...
robdav Try this link, it actually works. https://drive.google.com/file/d/1-EZBYlTi8qWOYT4_ZxgTlE...
Adil How to install in META 4 ?
Nicolas Our website is about programming for ProRealTime trading platform and not about Metatrader4!...
juanj Definitely, need to code this into an automated strategy.
Marc Boliart dear nicolas, tyvm for your indicators and strategies, i have this following error when i ch...
Nicolas Your picture is too small, but for sure the problem is about the fact you are still using v1...
TAC Bolsa
2 years ago
RB-MACD TIMING
RB-MACD TIMING
0
Screeners

Top