Skip to Content
API Referenceavg (average)

avg (average)

avg(series: Table<Array<Number>>) -> Array<Number>

Takes in a series of arrays, and returns an array with the element-wise average of all arrays.

Example:

local manual_ohlc4 = avg({open, close, high, low})