Aroon
How recently the highest high and the lowest low happened.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| period | int | 14 | 1 to 5000 |
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| up | value | Optional | color theme.up, style line, width 1 |
| down | value | Optional | color theme.down, style line, width 1 |
| osc | value | Optional | color theme.accent, style line, width 1 |
- Warm-up
- period bars (14 at the defaults)
- Repaints
- No
- Parity
- TA-Lib, within 1e-9
Formula
up = 100 * (period - bars since the highest high of the last period + 1 bars) / period
down = the same with the lowest low, osc = up - down
A tie goes to the most recent bar.