math.min
Take the smaller of two series, bar by bar.
math.min(a, b)The smaller of two values.
Parameters
A series parameter takes a value on every bar. A constant parameter must be known before the first bar, such as a number or an input.
| Name | Kind | Type | Default | Range | Description |
|---|---|---|---|---|---|
a | Series | number | - | - | First value. |
b | Series | number | - | - | Second value. |
Output
| Name | Type |
|---|---|
value | number |
Warm-up and missing values
- Warm-up
- None.
- Missing values
- na in either argument gives na.
Example
math.min(close, open)plot(math.min(close, open), "Lower of open and close")