ta.min()Min
Returns the lesser of two values. Note: This is a simple comparison, not a lookback function like ta.lowest().
Syntax
ta.min(source1, source2) → series floatArguments
| Parameter | Type | Description |
|---|---|---|
| source1 | series int/float | First value or series. |
| source2 | series int/float | Second 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
//@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
Frequently Asked Questions
Generate ta.min() Code with AI
Draft Pine Script using ta.min() with Pineify's AI Coding Agent, then review the arguments and test the result on your chart. Usage depends on your plan and available credits.
Related Pine Script Functions
ta.max() - Max
Learn how to use ta.max() in Pine Script. Return the greater of two values.
ta.lowest() - Lowest Value
Learn how to use ta.lowest() in Pine Script. Find the lowest value over a lookback period.
ta.range() - Range
Learn how to use ta.range() in Pine Script. Calculate the price range (highest minus lowest) over a period.
ta.pivotlow() - Pivot Low
Learn how to use ta.pivotlow() in Pine Script. Detect swing low pivot points for support levels.
ta.atr() - Average True Range
Learn how to use ta.atr() in Pine Script. Syntax, parameters, code examples for the Average True Range volatility indicator.