EMAEnvelope.UpperBand

Calculates the Upper Band of the EMA Envelope indicator.

Accepts the following parameters:

Parameter NameTypeDefault ValueNotes
applyToSeries<Number>
close
-
periodNumber14-
deviationNumber2-

Returns: Series<Number>

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

12
function EMAEnvelope.UpperBand(applyTo = close, period = 14, deviation = 2):
(1 + deviation / 100) * EMA(applyTo, period)