Cumulative volumes zigzag divergences

v10.3
Cumulative volumes zigzag divergences

This indicator is based on volume analysis such as the one already posted here: ZigZag Cumulative Volume
In this version, bullish and bearish divergences are identified according to the volume accumulation and distribution waves in relation to the price.
The waves are calculated using the ZigZag indicator included in the platform.

  • Bearish divergence: if the volumes decline between 2 successive waves and the price increases (makes a new high), then a divergence would announce a possible lowering of the price.
  • Bullish divergence: if the volumes decline between two successive waves and the price decreases (makes a new low), then a divergence would announce a possible price increase.

The ZigZag waves are adaptable with their validation percentage in the indicator settings or in the code (default is 3%). It will of course be necessary to modify this value according to the instrument and the timeframe used.

Divergences are plotted on the indicator using segments between successive waves and red and green arrows.

Due to its natural behavior, the ZigZag indicator will retrace itself if a new higher or lower is found. As a result, the latest information in the chart may not be completely frozen in real time. On the other hand, in the case of the history of the price graph, the discrepancy information will always be indicated with the last known information which does not necessarily appear on the current bar, but afterwards when the highest or the lowest has has been validated.

Original idea of this indicator came from this French topic: Cumulative Volume Zig Zag – Divergences

 

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. Matriciel • 02/19/2018 #

    Merci Nicolas.
    Il y a une petite erreur de rien du tout.
    Tu as mentionné deux fois “//bearish divergence” dans les commentaires. Il manque juste “//bullish divergence” pour la condition “tough”. 🙂

  2. haseluis • 02/19/2018 #

    Hello Nicolas, the indicator volume at price level, can I fade in the right of the chart?

  3. Rosario Spina • 02/19/2018 #

    Ciao Nicolas complimenti per l’indicatore è veramente ottimo utilizzarlo assieme l’analisi tecnica.

  4. haseluis • 02/19/2018 #

    the indicator “volume at price level” is shown on the left side of the chart, I want to have it on the right,

    • Nicolas • 02/19/2018 #

      Well, why not, but it has nothing to deal with this post? and I don’t think that’s possible sorry.

  5. Kris75 • 02/19/2018 #

    Bonjour Nicolas,
    Auriez-vous créé un backtest d’une stratégie long short avec cet indicateur ?
    Par ailleurs, comment vous joindre en MP ?
    Bien à vous,
    Chris

    • Nicolas • 02/19/2018 #

      I didn’t code any strategy with this indicator. You can contact me with the form of the contact page.

  6. LUCASSEN • 02/19/2018 #

    great indicator but repainting

    • Nicolas • 02/19/2018 #

      That’s obvious with zigzag 🙂

  7. Real Pro • 02/19/2018 #

    Hi Nicolas, I’ve been trying to add a dynamic parameter for the “percentVariation”, using the video on this subject but I can’t get it working. Could you help please?

    • Nicolas • 02/19/2018 #

      I can’t help publicly since it is included in the paid learning videos.

    • Nicolas • 02/19/2018 #

      Which video please?

  8. Real Pro • 02/19/2018 #

    Sorry I don’t understand. I just watched the video without paying.

    • Real Pro • 02/19/2018 #

      “Adding dynamic parameters to your indicators” – on Youtube.

  9. Real Pro • 02/19/2018 #

    Well I got it working eventually! Instead of [x] I used (x) as the variable. The video may need updating.

  10. sixtofer • 02/19/2018 #

    Bonjour. Magnifique indicateur, d’un coup d’œil et de le tester dans plusieurs valeurs ne manque aucun signal. Ce que je dois savoir, c’est si l’indicateur repeindre. Autrement dit, si le signal peut être donné pour acheter ou vendre et le lendemain, le signal disparaît?

    Merci beaucoup et excellent travail.

    • Nicolas • 02/19/2018 #

      Oui en effet, basé sur le zigzag, ce comportement est normal.

  11. websnake • 02/19/2018 #

    HI Nicolas! Thanks for the great work you’re putting into this forum! I have a question – This works great as an indicator, but I’d like to use it for screening potential buys/sells as well. Importing your code into ProScreener doesn’t work because of this section…Do you know haw to fix this?
    drawsegment(lastpeakbar,lastpeakvol,peakbar,peakvol) coloured(r,g,0)
    drawarrowdown(peakbar,peakvol) coloured(r,g,0)
    endif”

    Best Regards

    Chris/Sweden

    • Nicolas • 02/19/2018 #

      These 2 instructions are not allowed in ProScreener, just delete them. They are only there to plot things on chart, it will not affect the divergences finding of the main code.

    • websnake • 02/19/2018 #

      Super! Thanks for the quick reply – And please keep up the good work! I’m learning a lot! All the best!// Chris

  12. websnake • 02/19/2018 #

    As I wrote, thanks for the help. Did’t work in the ProScreener – unable to just delete what you wrote – Then, new problems appears. I guess this code isn’t written as a screener, just an indicator. Would be nice to have it compatible to the screener, since your zigzag indicator looks promising…Is it possible to wish for that?I guess you are a busy man, but now you know ;)! Thanks and all the best! Chris

  13. Real Pro • 02/19/2018 #

    Nicolas, I’d like to add a condition to the code, namely internal bar strength (IBS) < x.

    I tried this, but something isn't right with my syntax. Could you suggest a fix please?

    IBS = ( (Close – Low) / (High – Low))*100
    if(peak) then
    if peakhigh>lastpeakhigh and peakvol<lastpeakvol and IBS<20 then
    endif
    endif

  14. Real Pro • 02/19/2018 #

    Seems I can’t edit or delete any post which has errors, like the above. Try again!

    ibs = ( (Close – Low) / (High – Low))*100
    if(peak) then
    if peakvol>lastpeakvol and ibs<(ibsPK) then
    resistance = high[1]
    endif
    endif

    • Nicolas • 02/19/2018 #

      Please ask questions regarding codes in forums. Thank you.

  15. MAMTA FA • 02/19/2018 #

    i have only one request . Can u help to make the code compatible with amibroker ?

    • Nicolas • 02/19/2018 #

      Sorry but this website deals only with the ProRealTime trading platform programming.
      https://www.prorealcode.com/PRT-TRADING-english/

  16. beppe8949 • 02/19/2018 #

    Ciao Nicolas! Perdonami, ma come si fa a estendere il periodo dell’indicatore a 100 000 unità? Purtroppo lo vedo solo fino a 10 000 dopo di che è tutto nero. Grazie mille!

  17. stecr • 02/19/2018 #

    Ciao a tutti e a NIcolas,
    vpoichè con lo zigzag non è attendibile l’ultima barra (visto che il giorno dopo può cambiare) chiedo se vedendo le ultime due barre il segnale è attendibile, spero di essermi spiegato
    grazie

  18. sublime06 • 02/19/2018 #

    bonjour Nicolas. serait t’il possible de le coder en screener. je ne s’ai pas faire. merci

    • Nicolas • 02/19/2018 #

      Je le retrouve très rapidement dans notre forum: https://www.prorealcode.com/topic/cumulative-volumes-zigzag-divergences-pro-screener/

  19. sublime06 • 02/19/2018 #

    merci, j ai essayer mais erreur, il me dit la fonction prc n existe pas ?

    • Nicolas • 02/19/2018 #

      “PRC_CumVol ZigZag Divergences”, c’est le nom de cet indicateur, il doit être présent dans la plateforme et sous ce même nom. Sinon un message d’erreur apparaît et c’est ce qu’il se passe dans ton cas.

  20. Al Wikah • 02/19/2018 #

    Bonjour,
    Je ne trouve pas le screener permettant d’afficher les actions qui montrent une flèche rouge ou verte sur le zigzag.
    J’ai pourtant cherché dans la librairie et vu votre lien mais rien qui fait ressortir cet indicateur en screener.
    Pourriez-vous me fournir le lien SVP ?
    Bonne année à tous !

    • Nicolas • 02/19/2018 #

      question posée et répondue 2 messages plus haut:
      Je le retrouve très rapidement dans notre forum: https://www.prorealcode.com/topic/cumulative-volumes-zigzag-divergences-pro-screener/

  21. Al Wikah • 02/19/2018 #

    Bonjour et merci beaucoup Nicolas
    J’avais identifié et testé le code en question
    Mais, le code du screener étant tellement différent de celui de l’indicateur et ne comprenant pas l’italien,
    j’en ai déduit que le screener fourni répondait à une autre question.
    Et il retournait trop de résultats (1060 actions).
    sans critère de filtre (flèche achat / flèche vente apparue en date t ou en t-1 ou t-2).
    Ou bien je n’ai peut être pas bien saisi l’utilité ou l’utilisation de l’indicateur et/ou du screener?
    Cordialement

    • Nicolas • 02/19/2018 #

      Ce sujet en Français et plus complet devrait t’intéresser. A noter que l’historique de ProScreener est limité à 255 bars et que les calculs commenceront donc à partir de ce moment alors que sur l’affichage graphique de l’indicateur, ils pourraient commencer beaucoup plus tôt, dépendant de la quantité d’unités affichées. Donc des différences seraient observables et par conséquent une incompréhension vis-à-vis du screener.

  22. szohori • 02/19/2018 #

    Hellow
    I would like to make screener that will show me the change from red to green and from green to red

    • Nicolas • 02/19/2018 #

      I’m almost sure that it has already been coded in a topic in one of the forums.

  23. julien1978 • 02/19/2018 #

    Bonjour Nicolas, je suis tombé sur cet indicateur qui est très intéressant mais n’y -a-t il pas une erreur pour les divergences haussières? En tendance baissière, l’indicateur devrait signaler une divergence haussière lorsque le prix établit un nouveau plus bas, et que le volume cumulé est inférieur à la précédente vague baissière. Or l’indicateur indique une divergence lorsque la nouvelle vague est supérieure en volume! Cela n’est pas logique à mon sens. Serait-il possible de rectifier? Ou bien il y a peut-être quelque chose qui m’échappe?!

    • Nicolas • 02/19/2018 #

      Je pense que tu trouveras les explications à ce sujet et le pourquoi / comment ici : https://www.prorealcode.com/topic/cumulative-volume-zig-zag-divergences/

  24. Whisper74 • 02/19/2018 #

    Hi All,
    I run in to a problem with this indicator. The problem is that when you restart the proRealtime system it shows different values. I used 1 minute bars on the Daxx Future for 1 day period.

    • Nicolas • 02/19/2018 #

      Because of the redrawing (repainting) nature of the zigzag indicator. It doesn’t give the same values in real time than on Closed bars (when the history is read).

  25. leoulve • 02/19/2018 #

    Hello Nicolas, sorry for this dummy question, but what does express the orange ‘square’ on the chart? Thanks

    • Nicolas • 02/19/2018 #

      I don’t know what you are talking about, this code doesnt plot anything on the price chart.

  26. GenesisEX • 02/19/2018 #

    Thank you all for your contributions this is a great submission. Thanks for your inputs.

  27. tino • 02/19/2018 #

    Bonjour nicolas. Je ne parviens pas à recopier le screener de l’indicateur. Auriez vous la gentillesse d’attache le fichier itf du screen ? merci nicolas

    • Nicolas • 02/19/2018 #

      Quel screener svp? C’est dans un des sujets du forum? Merci de fournir le lien.

avatar
Register or

Likes

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

+11 more likes

Related users ' posts
TAC Bolsa Estas equivocado al 99,9%. La correlación entre las series de precios y volúmenes las des...
Domenec Si hablas de un indice regional como el Ibex es posible que sea asi yo nunca lo he operado y...
TAC Bolsa Regional de Mostoles, en una cosa tienes razón mejor dejarlo aquí...
GUCCI ONE Bonjour, Nicolas. Pourriez-vous m'aider à transformer cet indicateur en screener, svp ? Merci
Nicolas disponible ici: https://www.prorealcode.com/topic/divergences-screener/
julien1978 hello to all, i recently discovered this indicator. would it be possible to add the detectio...
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
TACBOLSA
7 years ago
luxrun Thank you so much Tac BOLSA, I can not post the picture tonight I'll try tomorrow. I loaded ...
TAC Bolsa A new version of TAC Volume HPI DIV10.4 is available. that marks the divergence In the fo...
Raymundo Buenas tardes. Como puedo descargar algunos indicadores de esta pagina ?
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?
Carlos Garcia If price tags the lower BBand, look for IIIX has positive values to enter a trade. Converse...
Thally Thanks for the quick response Nicholas. Would you have any idea how to resolve. Manually ref...
Thally Do you think adjusting the below code might help? newperiod = minuteminute[1] if newperi...
Nicolas There is no "second" instruction.
YvesRobert Merci beaucoup Nicolas. Existe t'il un petit programme qui permet de tracer sur la graphe en...
Nicolas Oui il y a celui ci: https://market.prorealcode.com/product/prt-renko/?lang=fr
YvesRobert Bonjour Nicolas, j'ai une question technique à te poser. Je visualise souvent le cours en RE...
gabri Ha ragione in computer, ho sbagliato io BullAD = summation[period](ADvolbull*((Close-Low) –...
marcov66 Perfetto! Funziona. Grazie di tutto!
SkrHugo Bonjour, J'essaye d'utiliser le script avec le graphique renko mais sa ne marche pas, quelq...
Tonicejudo Hola Nicolas, a ver si me puedes ayudar. Hay un indicador que se llama volumen stop de bolsa...
Nicolas Utilice los foros para hacer preguntas no relacionadas con la página actual ...
Alai-n I also have the same problem that I can not solve especially on LowVolume (Yellow) ... Sorry
Mert No need to apologise, my friend. It is great code. I hope you find a solution soon. Regards.
gabri I think it's because the lookback period changes at every new bar and that means that many c...
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
rb-72 Thank you, area of twist by dilatacion of the price, missing part of the code that is not pu...
Thomas007 after reading your blog now I understand why there is only a part of your code here. I'm try...
Juanjo Hola¡¡ la estrategia se podria aplicar sobre acciones con marco temporal diario?? gracias.
rb-72 5 Minutes, 15 Minutes, The most effective 1 Hour below 0 or above 0 as a turn signal in the ...
Andraxx Interpretación de el indicador??? Gracias
TAC Bolsa Oscilador que hace una medición ponderara basado en la distancia entre precio y una media Mó...
Nicolas Better to download the file from the page and import it into your platform in order to not c...
marcov66 Hi Nicolas, thanks for sharing the VWAP Date Indicator. It is really powerful. Nevertheless,...
Nicolas Are you sure you are using the same exact date, hours, minutes, seconds for anchor?

Top