MA Envelopes
Description
The Moving Average Envelope consists of moving averages calculated from the underlying price, shifted up and down by a fixed percentage.
Syntax
MAEnvelopes(double envelopePercentage, int mAType, int period)
MAEnvelopes(ISeries\<double\> input, double envelopePercentage, int mAType, int period)
Returns upper band levels
MAEnvelopes(double envelopePercentage, int mAType, int period).Upper[int barsAgo]
MAEnvelopes(ISeries\<double\> input, double envelopePercentage, int mAType, int period).Upper[int barsAgo]
Returns moving average value
MAEnvelopes(double envelopePercentage, int mAType, int period).Middle[int barsAgo]
MAEnvelopes(ISeries\<double\> input, double envelopePercentage, int mAType, int period).Middle[int barsAgo]
Returns lower band levels
MAEnvelopes(double envelopePercentage, int mAType, int period).Lower[int barsAgo]
MAEnvelopes(ISeries\<double\> input, double envelopePercentage, int mAType, int period).Lower[int barsAgo]
Return Value
double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.
Parameters
Examples
Source Code
You can view this indicator method source code by selecting the menu New > NinjaScript Editor > Indicators within the NinjaTrader Control Center window.

