ZigZag with cumulative volume
Forums › ProRealTime English forum › ProBuilder support › ZigZag with cumulative volume
- This topic has 48 replies, 3 voices, and was last updated 2 years ago by Nicolas.
-
-
02/17/2017 at 5:11 PM #25431
Full indicator with zigzag points and segments in the cumulative volume window has been posted into the code library, you can download it here:
https://www.prorealcode.com/prorealtime-indicators/zigzag-cumulative-volume/
02/20/2017 at 4:10 PM #25768There is still issue with cumulative volume.
in line 6 as it is the sum value is missing first volume after change of direction.
I’ve changed line 6 to:
cumV =cumV+volume[1] than the sum is missing last volume before direction change
How to fix this?
02/20/2017 at 4:13 PM #2577002/20/2017 at 4:26 PM #2577502/20/2017 at 9:46 PM #2581702/21/2017 at 10:02 AM #25828Here is the version with negative Volumes when the last zigzag was a peak.
1234567891011121314151617181920212223242526272829303132333435363738//PRC_CumulativeVolume ZigZag | indicator//17.02.2017//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledge// --- parameters// percentVariation = 9zz = ZigZag[percentVariation](close)peak = zz<zz[1] and zz[1]>zz[2]tough = zz>zz[1] and zz[1]<zz[2]if color=1 thencumV = cumV+volumeelsecumV = cumV-volumeendifif peak thentext = cumV/1000drawtext("#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 = -Volumecolor = -1previousX = barindex[1]previousY = cumV[1]+0.20*cumV[1]elsif tough thentext = cumV/1000drawtext("#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 = Volumecolor = 1previousX = barindex[1]previousY = cumV[1]+0.20*cumV[1]endifreturn cumV coloured by color02/23/2017 at 3:13 PM #2615602/23/2017 at 3:33 PM #2616402/23/2017 at 4:25 PM #2617002/23/2017 at 4:31 PM #2617102/23/2017 at 4:41 PM #2617702/23/2017 at 4:54 PM #2618302/25/2017 at 3:17 PM #2634502/25/2017 at 6:06 PM #2635703/02/2017 at 12:43 AM #26861Thanks for your contributions Nicolas. I’ve been benefitting a lot from it so I thought I should make a small contribution. Here is my edit of the code in this thread to give an alternate display of the WeisWave indicator.
123456789101112131415161718192021222324252627282930//Weis Wave// --- parameterspercentVariation = nww = ZigZag[percentVariation](close)peak = ww<ww[1] and ww[1]>ww[2]trough = ww>ww[1] and ww[1]<ww[2]cumV = cumV+volumeif peak thentext = Round(cumV[1]/1000)drawtext("#text#K",barindex,1.02*highest[2],Dialog,Bold,10) coloured(160,160,160)drawsegment(barindex[1],highest[2],previousX,previousY) coloured(160,160,160)cumV = VolumepreviousX = barindex[1]previousY = highest[2]elsif trough thentext = Round(cumV[1]/1000)drawtext("#text#K",barindex,0.98*lowest[2],Dialog,Bold,10) coloured(160,160,160)drawsegment(barindex[1],lowest[2],previousX,previousY) coloured(160,160,160)cumV = VolumepreviousX = barindex[1]previousY = lowest[2]endifreturn2 users thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on