Functions
array.median()
Returns the median of the array's elements: the middle value once they are sorted, or the mean of the two middle values when the count is even.
Syntax
array.median(series array id) → series float
Arguments
id required series array Return Type
series float Example
//@lipi=2
indicator("array.median Example", overlay=true)
prices = array.from(open, high, low, close)
plot(array.median(prices), title="Median of OHLC", color=color.blue)