Center
Read with the blue Slow EMA as the reference.
Draws upper and lower bands from smoothed price deviation around a slow EMA. An optional fast EMA is also overlaid, so the center line and the band distance can be read separately.
Blue and gold solid linesBlue is the slow EMA and gold is the fast EMA. The fast EMA is not used to calculate the band width.
Green and red dotted linesUpper and lower bands placed away from the slow EMA by smoothed deviation × multiplier.
The bands do not contain priceIn sharp moves, candlesticks can move outside the bands.
Compares the default settings and a settings change example on a screen with only this product applied.
Example shown: 1-minute chart (M1). This is an example for explaining the display. The settings change example is not a recommended value. Details can be checked in the full-size view. Please also check the price scale of the main chart and the positions of the candlesticks.
Read with the blue Slow EMA as the reference.
The distance from the center to one side is the smoothed deviation × multiplier.
With a longer period, the width changes more slowly.
The center is the Slow EMA. The deviation base is the EMA of Deviation Period, which is not necessarily the same line.
Squares the differences between the latest m values of the selected price and the current m-period EMA, averages them, and takes the square root.
The resulting deviation is smoothed with an EMA of Deviation Smoothing. The first deviation is used as the starting value.
The distance from the center to one side is multiplier k × smoothed deviation G. The full width from the upper band to the lower band is 2×k×G.
These are not fixed-percentage bands. The calculation also differs from standard Bollinger Bands with an SMA center.
The upper and lower bands are dotted lines; Slow and Fast are solid lines.
Deviation period, smoothing period and multiplier each have separate roles.
Compare setting differences after aligning the history and price type.
| Included file | Purpose / location |
|---|---|
| TRI_EMA_Deviation_Envelope.ex5 | The MT5 main file. Place it in MQL5/Indicators. |
The ZIP contains only 1 item, the main file. The manual is opened from the product page on the site. Source code is not included. MT5 only; registration, account authentication and placing a license file are not required. Use it without changing the file name.
Extract the ex5 main file rather than leaving it in the compressed file.
In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.
Refresh the Navigator or restart MT5, and apply it to the target chart. Place only 1 instance of the same product on 1 chart.
First check with the default values. Changes and removal are done from the chart's 'Indicators List'.
This product does not require DLL permission or enabling automated trading. When removed, this product's drawings are cleared.
There are 6 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.
InpSlowPeriodInpFastPeriodInpDevPeriodInpDevSmoothingInpPriceInpMultiplierWhile the latest bar's price is moving, the displayed values and colors can also change. They are recalculated when history is added or corrected or settings change. Permanent non-repainting is not guaranteed.
Compare with the same symbol, timeframe, settings and loaded history. The display is not a forecast of future price movement.
The upper and lower bands start from bar Deviation Period. The default is the 60th bar, and the solid EMA line starts from the 1st bar.
With long smoothing, the effect of the starting value remains for a long time. With the default of 200, about 13% remains even after 200 bars, and about 1% even after 460 bars, so take care when comparing short histories.
As long as the bar's open does not change, the value on the forming bar does not change either. It is recalculated when the history or settings change.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
This product shows calculation results through plot buffers and does not place orders. It does not guarantee profit or future price movement.
Check whether Fast EMA Period is 0.
While there are not enough bars for the deviation, the upper and lower bands do not appear.
Check the allowed range of the inputs and the number of history bars. Outside the range, the indicator does not start, and the reason is shown in English in the Experts tab of the Toolbox. No explanation is shown on the chart.
If the first display does not appear, check history loading and the input ranges. If an earlier display has stopped updating, first check the price feed and the terminal's connection status.
With Em as the m-period EMA, D=√{sum of (price−current Em)² over the latest m bars ÷m}. G is the q-period EMA of D; upper band=Slow EMA+kG, lower band=Slow EMA−kG.
G starts from D at the m-th bar, where the deviation is first available. If the oldest loaded history bar changes, the EMA starting value also changes and can affect later values.
Upper Band is ForestGreen, Lower Band is Crimson, Slow EMA is DodgerBlue and Fast EMA is Gold. There are no notifications.