Variables
volume
The volume traded in the bar. It is a float rather than an int, so it carries fractional volumes without a conversion.
Example
indicator(title="Average Volume Example", overlay=true)
length = 20
average_volume = talib.sma(volume, length)
plot(volume, title="Volume", color=color.blue)
plot(average_volume, title="Average Volume", color=color.red)
Type
series float