CumulativeVolume ZigZag -

#1
Hello,
I want to get a ZIG ZAG Cumulative Volume chart
I found a code on the forum


4.png



https://www.prorealcode.com/prorealtime-indicators/zigzag-cumulative-volume/


Code:
//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

The code is not working.

3.jpg




What's the problem?
Where can I get / buy a working code?
 

primitivetrader

Well-Known Member
#2
the above code is not for amibroker. there is a code on the wisestocktrader.com site that may fulfill your req. GOOGLE weiss volume or volume wave afl.
 

Similar threads