I want this to work in a tick chart but also in larger frames.
For tickchart this follows:
Buy volume/positive volume:
If close is above last close then add its volume as positive volume. And if next close is on the same price or above last close then also add volume to positive volume.
Selling volume/ negative volume:
If close is < the close[1] then add its volume as negative volume. And if next close is on the same price or below last close then also add volume to negative volume.
Remember, close price can be equal close price like 30 times in a tick chart, i think this may be some of the tricky part.
Think in terms of a tick chart and you can get a better visualization of it.
I hope this will also work in like 1 hour chart.
Suggestion for an anwser:
You can set the variable zeroonnewday as you prefer.
If you want to set the value as “0” at the beginning of the day, please type zeroonnewday=1, otherwise type zeroonnewday=0
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue