ta.falling()
Falling
Tests whether the current source value is strictly lower than each of the prior length non-na values in the lookback window.
Syntax
ta.falling(source, length) → series boolArguments
| Parameter | Type | Description |
|---|---|---|
| source | series int/float | Series to evaluate. |
| length | series int | Number of prior bars to compare against. |
Returns
true if current source value is less than any previous source value for length bars back, false otherwise.
Remarks
na values in the source series are ignored.
Code Examples
//@version=6
indicator("ta.falling")
plot(close)
plotchar(ta.falling(close, 3), title="Falling 3", char="▼", location=location.abovebar, size=size.tiny, color=color.red)Trading Applications
Confirm downtrend momentum
Filter short entries to falling markets
Validate breakdown conditions
Use as a bearish trend confirmation
Related Functions
Frequently Asked Questions
Generate ta.falling() Code with AI
Skip the manual coding. Use Pineify's AI Coding Agent to generate Pine Script code using ta.falling() and other built-in functions instantly.
Related Pine Script Functions
ta.rising() - Rising
Learn how to use ta.rising() in Pine Script. Test if a series is consistently rising over a given period.
ta.cross() - Cross
Learn how to use ta.cross() in Pine Script. Detect when two series cross each other in either direction.
ta.crossunder() - Crossunder
Learn how to use ta.crossunder() in Pine Script. Detect bearish crossunders for death cross and sell signals.
ta.lowest() - Lowest Value
Learn how to use ta.lowest() in Pine Script. Find the lowest value over a lookback period.
ta.change() - Change
Learn how to use ta.change() in Pine Script. Calculate bar-to-bar differences for price, time, and boolean series.