math.min() - Pine Script Function
math.min()
Section titled “math.min()”Overview
Section titled “Overview”Returns the smallest of multiple values.
Syntax
Section titled “Syntax”math.min(number0, number1, ...) → const intParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| number0 | — | — |
| number1 | — | — |
| … | const int | A sequence of numbers to use in the calculation. |
Returns
Section titled “Returns”The smallest of multiple given values.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("math.min", overlay=true)plot(math.min(close, open))plot(math.min(close, math.min(open, 42)))