Sidechair

ta.min()

Browse the reference

Returns the smallest value source has taken from the first bar to the current one.

Try it in the editor

ta.min keeps a running minimum. It starts with the first value and only falls, ignoring na values.

It marks the lowest point of a series on the loaded history, such as the bottom of an oscillator.

Syntax

Pine Script
ta.min(source: series int/float) -> series float

Arguments

NameTypeDefaultDescription
sourceseries int/floatrequiredThe series whose lowest value so far is kept. Later bars can only lower it.

Returns

series float: the minimum of source over all bars so far.

Remarks

Example

Pine ScriptDistance above the running lowOpen in editor
//@version=6
indicator("Above running low")
floor_ = ta.min(low)
plot((close / floor_ - 1) * 100, "% above low", color = color.green, style = plot.style_area)

See also

Runs on Sidechair