Functions
array.min()
Returns the smallest element. With `nth`, returns the nth smallest instead, counting from 0.
Syntax
array.min(series array id, series int nth) → series float
Arguments
id required series array nth series int Return Type
series float Example
//@lipi=2
indicator("array.min Example", overlay=true)
prices = array.from(open, high, low, close)
plot(array.min(prices), title="Smallest (Low)", color=color.red)
plot(array.min(prices, 1), title="Second Smallest", color=color.orange)