Envelopes.UpperBand

Calculates the Upper Band of the Envelopes indicator.

Accepts the following parameters:

Parameter NameTypeDefault ValueNotes
applyToSeries<Number>
close
-
periodNumber14-
deviationNumber0.1-

Returns: Series<Number>

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

1 function Envelopes.UpperBand(applyTo = close, period = 14, deviation = 0.1):
2 (1 + deviation / 100) * SMA(applyTo, period)