ta.lowest()
Lowest Value
Lowest value for a given number of bars back.
Syntax
ta.lowest(source, length) → series floatArguments
| Parameter | Type | Description |
|---|---|---|
| source | series int/float | Series to scan. |
| length | series int | Lookback length. |
Returns
Lowest value in the series.
Remarks
na values in the source series are ignored.
Code Examples
//@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
Calculate drawdown from highest point
Related Functions
Frequently Asked Questions
Generate ta.lowest() Code with AI
Skip the manual coding. Use Pineify's AI Coding Agent to generate Pine Script code using ta.lowest() and other built-in functions instantly.
Related Pine Script Functions
ta.highest() - Highest Value
Learn how to use ta.highest() in Pine Script. Find the highest value over a lookback period for Donchian Channels.
ta.lowestbars() - Lowest Bars Offset
Learn how to use ta.lowestbars() in Pine Script. Find how many bars ago the lowest value occurred.
ta.valuewhen() - Value When
Learn how to use ta.valuewhen() in Pine Script. Get the value of a series when a condition was true.
ta.barssince() - Bars Since
Learn how to use ta.barssince() in Pine Script. Count bars since a condition was last true.