ta.rising()
Rising
Tests whether the current source value is strictly greater than each of the prior length non-na values in the lookback window.
Syntax
ta.rising(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 greater 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.rising")
plot(close)
plotchar(ta.rising(close, 3), title="Rising 3", char="▲", location=location.belowbar, size=size.tiny, color=color.lime)Trading Applications
Confirm uptrend momentum
Filter entries to only rising markets
Validate breakout conditions
Use as a trend strength confirmation
Related Functions
Frequently Asked Questions
Generate ta.rising() Code with AI
Skip the manual coding. Use Pineify's AI Coding Agent to generate Pine Script code using ta.rising() and other built-in functions instantly.
Related Pine Script Functions
ta.falling() - Falling
Learn how to use ta.falling() in Pine Script. Test if a series is consistently falling 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.crossover() - Crossover
Learn how to use ta.crossover() in Pine Script. Detect bullish crossovers for golden cross and buy signals.
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.change() - Change
Learn how to use ta.change() in Pine Script. Calculate bar-to-bar differences for price, time, and boolean series.