I am trying to add a script to the Time Price Measure tool , to take th cumulative Volume and divide it by the current price, but when I reference Cumulative Vol, I just see text in the Label. What function do I need to reference to pull in the cumulative volume?
You’d wrap the accumulation function ACC() around the VOL() function.
You can then adjust the ACC look back period to be the number of bars you want to add the volume for.
EDIT: My script is for items like Show View and other areas where scripting is used. Time Price Measure does not use scripting, it’s an older tool that uses simple mathematical formulas. What you’re trying to achieve can’t be done with the TPM tool.
I was hoping I could use the Cumulative Volume in the screen shot (See Below), which is already defined in the label. I tried the Vol() and it does not seem to work, the label just shows “Vol()” instead of showing a volume value, in the same way the label shows Cumulative Volume, am I entering the function in the label incorrectly? (See Level 19).
I was hoping I could use the Cumulative Volume in the screen shot (See Below), which is already defined in the label. I tried the Vol() and it does not seem to work, the label just shows “Vol()” instead of showing a volume value, in the same way the label shows Cumulative Volume, am I entering the function in the label incorrectly? (See Level 19).
The Time Price Measure doesn’t use scripting, it uses functions. If you click here and go to the bottom of the article you will see a list of functions that are supported by the TPM, however i do not believe you can create a cumulative volume value using these, you need to use a script tool or the Time Price Label instead (which already has cumulative volume available).