Nicolas

ZigZag Cumulative Volume

Category: Indicators By: Nicolas Created: February 17, 2017, 5:08 PM
February 17, 2017, 5:08 PM
Indicators
27 Comments
ZigZag Cumulative Volume

The theory is based on R Wyckoff works and refined by D Weis. In the nutshell cumulative volume helps to asses the strength of the ZigZag section which is difficult to measure if you looking at the individual volume bars only.

This indicator has been coded from a request on the english support forum:
https://www.prorealcode.com/topic/zigzag-with-cumulative-volume/

The indicator is based on percent variation ZigZag, the new peak or tough are triggered by a new price variation of X percent you can change with the “percentVariation” parameter in the indicator window.
I hope it will be helpful for people interested in Wave Weis analysis.

//PRC_CumulativeVolume ZigZag | indicator
//17.02.2017
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge

// --- parameters
// percentVariation = 9

zz = ZigZag[percentVariation](close)

peak = zz<zz[1] and zz[1]>zz[2]
tough = zz>zz[1] and zz[1]<zz[2]

cumV = cumV+volume

if peak then
 text = cumV/1000
 drawtext("#text#K",barindex[1],cumV[1]+0.17*cumV[1],Dialog,Bold,12) coloured(0,200,0)
 drawsegment(barindex[1],cumV[1]+0.20*cumV[1],previousX,previousY)
 cumV = Volume
 color = -1
 previousX = barindex[1]
 previousY = cumV[1]+0.20*cumV[1]
elsif tough then
 text = cumV/1000
 drawtext("#text#K",barindex[1],cumV[1]+0.23*cumV[1],Dialog,Bold,12) coloured(200,0,0)
 drawsegment(barindex[1],cumV[1]+0.20*cumV[1],previousX,previousY)
 cumV = Volume
 color = 1
 previousX = barindex[1]
 previousY = cumV[1]+0.20*cumV[1]
endif

return cumV coloured by color

 

Download
Filename: PRC_CumulativeVolume-ZigZag.itf
Downloads: 760
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

toni1750
6 years ago
#

Hola, funciona en P11? lo he puesto y no me sale como en la imagen. gracias.

mrdeepak
6 years ago
#

Hi Nicolas. Thank you for this excellent indicator. I am using it in particular for Wykoff-Weis analysis. Are you able to advise how i would also calculate the price movement of each swing. i.e. if it is an upswing, the price delta would be the close - trough price. Else if it is a downswing, the price delta wold be a peak price - close. This is the Weis Pip Swing wave. similar to the volume wave, just calculating the price movement of each swing.

Nicolas
6 years ago
#

Sure, please open a new topic in the probuilder forum with all specifications needed.

Radical007
8 years ago
#

Bonjour Nicolas, en trading automatique avec la dernière version de ProRealCode: la fonction ZigZag est renseignée comme obsolète - comment détourner celà? - merci d'avance

Nicolas
8 years ago
#

Pas obsolète mais impossible à utiliser pour le trading automatique sous ProOrder. Je vous encourage à essayer d'autres techniques pour trouver les pics et les creux (plus haut / plus bas).

Real Pro
9 years ago
#

Hi Nicolas. Thanks for this helpful indicator. I wonder if you'd consider a modification? My idea is to plot the cumulative swing vol on the price chart, but as line thickness. For example, if the swing has high volume, it's thick, if low it's thin... with graded thickness. I'd love to do this myself but lack the coding skills. Would you mind please? Many thanks.

DegoodBoby
9 years ago
#

Thank you, Nicolas, for the swift response, however, i do add it as an oscillator not on chart and am getting the same result

DegoodBoby
9 years ago
#

Hello Nicolas, pls I don't know what I have done wrong, cos this indicator don't work on my chart when insert it, it will appear in an area form and not exactly the way it is on the site. pls, help. Many Thanks Boby

Nicolas
9 years ago
#

Do not add it on price, but like a usual oscillator indicator instead. Be sure that the instrument got Volumes.

oraclus
9 years ago
#

Bonjour Nicolas , j'ai étudié cet indicateur et pour moi il repeint? est ce normal ou je ne sais l'utilisé?

Nicolas
9 years ago
#

Bien sûr, celui-ci étant basé sur la détection des pics et creux façon "zigzag", on ne peut jamais être sûr qu'un plus haut sera bien toujours le plus haut à la bougie qui suit.. Et vice versa pour les plus bas bien entendu. 

tatankayotanka
9 years ago
#

 Grazie Nicolas

tatankayotanka
9 years ago
#

Come posso fare per inserire uno proscreener che mi trovi quando lo zig zag cumulative presenti una candela verde?

 

Nicolas
9 years ago
#

https://www.prorealcode.com/topic/screener-cvzz/

Draper
10 years ago
#

Merci Nicolas pour cet indicateur et pour les précédents aussi!  Je n'arrive pas à comprendre son fonctionnement et comment puis-je l'utiliser en intraday ! Merci encore.

Sofitech
10 years ago
#

What i like is not the ZZ part of the indicator. Think i would switch with some kind of moving average in the code. But the histogram volume count. So... having the histoGram in positive and negative would be cool. 

Nicolas
10 years ago
#

Here is the link for the new version with cumulative Volumes as negative values when the last ZigZag was a peak.

https://www.prorealcode.com/topic/zigzag-with-cumulative-volume/page/2/#post-25828

Nicolas
10 years ago
#

Please add this request on probuilder forum. Thanks.

Sofitech
10 years ago
#

Same request. Having the red histogram value in négative. And the green in positive. For the red, to keep the same volume values but with - (under 0)

Nicolas
10 years ago
#

.. don't understand this interest since it is only a well known zigzag indicator?!

GabrielVP
10 years ago
#

Salut Nicolas. Je aimerais aussi que le volume des ventes était sous 0. Je pense que ce serait un bon filtre pour une utilisation dans un système automatisé avec Ichimoku.

Merci beaucoup pour l'indicateur

Nicolas
10 years ago
#

Voici le lien pour la version avec Volumes négatifs si le dernier ZigZag était un "peak".

https://www.prorealcode.com/topic/zigzag-with-cumulative-volume/page/2/#post-25828

m-zeter
10 years ago
#

Hello Nicolas,

again a really nice indicator! I have no coding skills, but can you or someone else change the code, so that the red candles are under 0 and the green stay over 0?

Best wishes zeter :)

GustavoLoboOrenstein
3 years ago
#

Hello Nicolas, I have a cumulative histogram update problem, the indicator often updates only after restarting the indicator, what should I try to do?

Nicolas
10 years ago
#

Not sure to perfectly understand, you want the red histogram to be under 0?

Ivars
10 years ago
#

Nicolas, is it possible to use this indicator for Gold trading at IG Market?

 

 

Nicolas
10 years ago
#

This indicator will work for any instrument which have Volumes information from the broker.

ProRealCode ProRealCode
Loading...