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
leoulve Hello, I uploaded correctly the screener and it is not selecting any. Is it normal? cheers
Oliviertrader2020 Hello, where do you find the ZeroLagMACDWeek indicator? You only posted the mtf-macd-diverge...
MJZTrader Good morning! I was trying to tweek the code in the way as to set it for intraday (1 Min to ...
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?
Alexander9 This code for metastock ?, can for amibroker . Thanks
AGTrader Interesante, muy visual Doc. Felicidades!!!
Andraxx simplemente impresionante Dom...te sigo en youtube. Me ha gustado tu canal. Gracias por comp...
mangiaragni Buongiorno io non riesco a visualizzare nessun tipo di volume , mi torna sempre una linea dr...
Nicolas Assicurati che lo strumento che stai guardando abbia dei volumi! È il caso?
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])
ak5hay2 Works like crazy on bitcoin. Use different timeframes. Thanks a lot Doc!!!
richyowen Hi, great code thanks. Very new to this forum. Is there a way to add a 100point target on an...
lisamitch50 Morning all, Just backtested on quite a few instruments, worked well on backtesting, but tel...
GenesisEX Thank you all for your contributions this is a great submission. Thanks for your inputs.
tino Bonjour nicolas. Je ne parviens pas à recopier le screener de l'indicateur. Auriez vous la g...
Nicolas Quel screener svp? C'est dans un des sujets du forum? Merci de fournir le lien.
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...
PSIDIO Ciao to you all, I also have a question and would be very happy for a helpful comment. I a...
SpreadBetMH Hi there, I have V11.1. I get the Indicator but no Arrows on the price. Kind Regards...
Alai-n Ciao Francesco, sei ancora in giro?
Metodi97 This indicator is great but can someone create strategy based on the same indicator it will ...
Giuseppe68 ciao, ho provato l'indicatore e mi sembra interessante, ma in fase di backtest non riesco ad...
poldoposta veramente bello.....complimenti
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...
Rory Dryden Thanks. This looks useful.
TACBOLSA
6 years ago
RB-MACD TIMING
RB-MACD TIMING
0
Screeners
Lydia1948 Hi I really like this indicator - is it easy to change the colour of the blue dots to say g...
Nicolas Lines 23 and 24 are the Red and Blue value between 0 to 255, you can change the color of the...
bolsatrilera Hi Nicolas, I have this version of the True Balance Power ,created by eykpunter on Tradingvi...
bolsatrilera and the code : REM TRUE BALANCE OF POWER // código original de eykpunter para la plataform...
mahdi how can I import itf file into mt4? please help
Nicolas That code is not for MT4, we do not offer free assistance for this platform, but you can ask...
guinsu2000 hello could you share your copy in a pdf or where you whant please ?
Francesco
7 years ago
oraclus Merci il lui ressemble bcp
juanj Think this is something we can experiment with in the 'universal' strategy along with the Bo...
ggolfet Hello Francesco, thanks for the code. Now I can do backtests on this indicator. I'm testin...
Lotech123 Thanks for this indicator. Working on a 3 M timeframe with the DJI, it can produce some inte...
JSTAR PRODUCTIONS Hi there, I downloaded the Indicator but the indicator does not show up on my charts. Am...
JSTAR PRODUCTIONS Hi, Worked it out. Thanks
CavalierDeCesDames Bonjour Nicolas, Thanks for your use full job. I tried this indicator on a shorter timefram...
Nicolas You are welcome. I'm glad you like it.
Bolbo It does not appear over the price indicator on V11. Thanks in advance.

Top