Moving Average Envelope

You are here:
< All Topics

MovingAverageEnvelopeTop(Periods, MA Type, Shift) or
MAET(Periods, MA Type, Shift)

MovingAverageEnvelopeBottom(Periods, MA Type, Shift) or
MAEB(Periods, MA Type, Shift)

Moving Average Envelopes consist of moving averages calculated from the
underling price, shifted up and down by a fixed percentage.

Moving Average Envelopes (or trading bands) can be imposed over an actual price or another indicator. When prices rise above the upper band or fall below the lower band, a change in direction may occur when the price penetrates the band after a small reversal from the opposite direction.

Recommended Parameters
Periods: 20
Shift: 5

set BUY = CLOSE > MAET(20, SIMPLE, 5)
Evaluates to buy when the close is greater than a 20-day Moving Average
Envelope Top calculated by 5% using a simple moving average.

Previous Bollinger Bands
Next Keltner Channels
Table of Contents