Aroon

aroontrendForge API 1

How recently the highest high and the lowest low happened.

Inputs

NameTypeDefaultRange
periodint141 to 5000

Outputs

NameTypeRequiredDescription
upvalueOptionalcolor theme.up, style line, width 1
downvalueOptionalcolor theme.down, style line, width 1
oscvalueOptionalcolor 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.