How to find Up-Down Volume Ratio

You have to use code tags when inserting code. Please follow forum rules.


Just use

up = ROC(C,1)>0;
dn = NOT up;
upvol = Sum(up*V,50);
downvol = Sum(dn*V,50);
udratio = upvol/downvol;
5 Likes