Dear Sir,
Please help me as while I am inserting formula in amibroker it is displaying that syntax error unespected sundefined,Is there semicolon missing at the end of the previous line highlighting in line no-7 marked as bold.I have tried but cant do it.Pls do it I will be very greatful to you.
Best Regards,
Kamlesh Tiwari
//PRC_CumulativeVolume ZigZag
//17.02.2017
//Nicolas @ http://www.prorealcode.com
//Sharing ProRealTime knowledge
// — parameters
//PercentVariation = 0.05%
zz = ZigZag[0.05](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
cumV = Volume
color = -1
elsif tough then
cumV = Volume
color = 1
endif
return cumV coloured by color