DonchianChannel.Upper

Calculates the Upper line of the Donchian Channel indicator.

Accepts the following parameters:

Parameter NameTypeDefault ValueNotes
periodNumber10-

Returns: Series<Number>

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

1 function DonchianChannel.Upper(period = 10): Highest(high, period)