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

ta.min() returns the smaller of two inputs bar by bar. It does not search backward for the minimum of a single series.

ta.lowest() returns the minimum of one series over length bars. ta.min() compares exactly two operands on the current bar.

Behavior matches math.min for two values; use whichever fits your style. ta.min keeps expressions in the ta namespace.

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.