Lipi Reference Lipi

Variables

orderflow.delta

Returns the delta of the current bar, calculated as: Buy Volume − Sell Volume. This shows whether buying or selling pressure was dominant. A positive delta indicates net aggressive buying; a negative delta indicates net selling.

Example


          indicator("Orderflow Delta", overlay=false)
delta = orderflow.delta
plot(delta, title="Delta", style=plotStyle.histogram, color=delta >= 0 ? color.green : color.red)
        

Type

series int