IchimokuCloud.Upper

Calculates the Upper line of the Ichimoku Cloud indicator.

Accepts the following parameters:

Parameter NameTypeDefault ValueNotes
applyToSeries<Number>--

Returns: Series<Number>

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

1 function IchimokuCloud.Upper(applyTo):
2 kenkanSen = (Highest(applyTo, 9) + Lowest(applyTo, 9)) / 2
3 kijunSen = (Highest(applyTo, 26) + Lowest(applyTo, 26)) / 2
4
5 (kenkanSen + kijunSen) / 2