Skip to content
Algo Trade Analytics Docs

math.min() - Pine Script Function

Returns the smallest of multiple values.

math.min(number0, number1, ...) → const int
NameTypeDescription
number0
number1
const intA sequence of numbers to use in the calculation.

The smallest of multiple given values.

//@version=6
indicator("math.min", overlay=true)
plot(math.min(close, open))
plot(math.min(close, math.min(open, 42)))