Optuma Forums › Optuma Scripting › Net Advancing Volume Percent › Reply To: Net Advancing Volume Percent
January 28, 2021 at 3:20 pm
#62153

- Topics: 0
- Replies: 1
- Posts: 1
Hi,
I’m also building this breadth, however I’m unsure if my total Advance/Decline Volume script is correct.
My scripting is different however achieves the same (forgive me I’m still relatively new to scripting):
Advancing Volume:
u1 = VOL();
u2 = VOL(OFFSET=-1);
u3 = u2 – u1;
u3 > 0
Declining Volume:
u1 = VOL();
u2 = VOL(OFFSET=-1);
u3 = u2 – u1;
u3 < 0
Advance/Decline Volume:
u1 = VOL();
u2 = VOL(OFFSET=-1);
u3 = u2 – u1;
u4 = u3 > 0;
u5 = u3 < 0;
u6 = (u4 – u5) / u1;
u6