Lipi Reference
Lipi

Variables

orderflow.buyvolume

The volume bought in the bar. A bar can carry more buy trades than sell trades while more volume goes the other way, so pick the count or the volume according to the question.

Example


          //@lipi=2
indicator("Buy Volume per Bar", overlay=false)
buyVol = orderflow.buyvolume
plot(buyVol, title="Buy Volume", style=plotStyle.histogram, color=color.green)
        

Type

series int