aroon_up
Aroon Up - measures time since highest high
aroon_up(period)
Parameters
| Name | Type | Description |
|---|---|---|
period |
int | Number of periods to look back for highest high |
Formula
aroon_up = ((period - bars_since_highest_high) / period) * 100
Examples
aroon_up(25); # Standard 25-period Aroon Up
aroon_up(14); # Shorter period (more sensitive)
aroon_up(25) > 70; # Strong uptrend (recent highs)
Returns
float
Range
period must be 2-400
Notes
The correlated subquery always finds the window's own max within itself, so bars_since_highest_high resolves to a value in [0, period-1] on every bar -- never NULL
See Also
References
TradingView: ta.aroon() returns [up, down]; developed by Tushar Chande