Functions
array.avg()
Returns the mean of the array's elements.
Syntax
array.avg(series array id) → series float
Arguments
id required series array Return Type
series float Example
//@lipi=2
indicator("array.avg Example", overlay=true)
prices = array.from(high, low, close)
plot(array.avg(prices), title="Typical Price", color=color.blue)