Optuma Forums › Optuma Scripting › On Balance Volume Script › Reply To: On Balance Volume Script
July 24, 2019 at 10:54 pm
#54145
- Topics: 70
- Replies: 790
- Posts: 860
Hi Liam,
That’s a pretty good way of doing it. The Accumulate function is ACC() so your last line would be ACC(V3).
Put it in a Show View tool and it will match the OBV tool, allowing you to tweak it as required.
Note the you can use CLOSE(1) for the previous close instead of using the OFFSET function, or you could remove VAR1 altogether and use the CHANGE() function in VAR2:
VAR2 = IF(CHANGE()> 0,1,-1);