UtilityPine Script v6

ta.lowest()Lowest Value

Lowest value for a given number of bars back.

TradingView language reference

Syntax

Syntax
ta.lowest(source, length) → series float

Arguments

ParameterTypeDescription
sourceseries int/floatSeries to scan.
lengthseries intLookback length.

Returns

Lowest value in the series.

Remarks

The window includes the current bar and ignores na values. The one-argument overload ta.lowest(length) uses low. Define a prior-bar window explicitly for a breakdown test against earlier lows.

Code Examples

Pine Script v6 Example
//@version=6
indicator("ta.lowest")
plot(ta.lowest(low, 20), title="20-bar lowest low")

Trading Applications

Find the lowest price over a lookback period

Build Donchian Channel lower band

Create support level detection

Combine with correctly ordered peaks for a separate drawdown calculation

Frequently Asked Questions

ta.lowest(source, length) returns the minimum value of source over the most recent length bars, ignoring na values.

Use ta.lowest(low, 20). Swap in close or another series if you need the lowest close instead.

Together they form channel bands (e.g., Donchian), range metrics, or stochastic-style position of price within a window: (close - lowest) / (highest - lowest). Handle a zero range explicitly. A window high-minus-low alone is not maximum drawdown because it does not establish which occurred first.

Generate ta.lowest() Code with AI

Draft Pine Script using ta.lowest() 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.