Range & PivotPine Script v6

ta.min()Min

Returns the lowest value of one source from the start of the loaded chart history through the current bar. This is a cumulative minimum.

TradingView language reference

Syntax

Syntax
ta.min(source) → series float

Arguments

ParameterTypeDescription
sourceseries int/floatSeries whose running minimum is required.

Returns

Minimum of source across the available history up to the current bar.

Remarks

The result depends on the loaded history and need not be the instrument lifetime low. It is not limited to the visible chart range.

Code Examples

Pine Script v6 Example
//@version=6
indicator("ta.min")
plot(ta.min(close), title="Running lowest close")

Trading Applications

Track the running minimum of a source series

Compare the current source with its loaded-history low

Distinguish a cumulative low from a rolling-window low

Related Functions

Frequently Asked Questions

ta.min(source) returns the running minimum of one series across available history. It takes one source argument.

ta.lowest(source, length) returns a rolling-window minimum. ta.min(source) includes available history through the current bar and has no length parameter.

Use math.min(a, b) for a current-bar comparison of values. Use ta.min(source) for the running minimum over time. They are not interchangeable.

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.