Range & PivotPine Script v6

ta.min()

Min

Returns the lesser of two values. Note: This is a simple comparison, not a lookback function like ta.lowest().

Syntax

Syntax
ta.min(source1, source2) → series float

Arguments

ParameterTypeDescription
source1series int/floatFirst value or series.
source2series int/floatSecond value or series.

Returns

The lesser of the two values.

Remarks

Evaluates element-wise on each bar; unrelated to ta.lowest() window extrema.

Code Examples

Pine Script v6 Example
//@version=6
indicator("ta.min")
plot(ta.min(close, open), title="Lesser of O/C")

Trading Applications

Compare two indicator values

Build custom indicator combinations

Create conditional calculations

Use in true range computation

Related Functions

Frequently Asked Questions

Generate ta.min() Code with AI

Skip the manual coding. Use Pineify's AI Coding Agent to generate Pine Script code using ta.min() and other built-in functions instantly.