Aroon.Up

Calculates the Up line of the Aroon indicator.

Accepts the following parameters:

Parameter NameTypeDefault ValueNotes
applyToSeries<Number>
close
-
periodNumber25-

Returns: Series<Number>

Aroon.Up is a built-in function - you can use it directly. Below is an example implementation:

1234
function Aroon.Up(applyTo = close, period = 25):
_, distanceToHighest = Highest(applyTo, period)

((period - distanceToHighest) / period) * 100