Regarding Nicolas’ code: https://www.prorealcode.com/prorealtime-indicators/cumulative-volumes-zigzag-divergences/
Can someone tell me how to reference previous values of peakvol/troughvol please?
Psuedocode would be something like: “if peak and previous troughvol > trough vol[1] then draw down arrow”
Visually, this is where I’d like an up arrow drawn:
Thanks for any help.