MT5 indicators← MA Envelopes Plus product page日本語の取扱説明書

This product is in preparation for release. Product files are not yet distributed; the manual is published so that you can review its content. This manual is an English translation of the Japanese manual. Images (screens and figures) are not translated and may contain Japanese text or earlier names.

For Trilogy users

MA Envelopes Plus

Displays up to 3 sets of upper and lower lines placed a fixed percentage away from a moving average.

Indicator name: MA Envelopes PlusMetaTrader 5On the price chart

The upper and lower distances are percentages of the moving average

Upper = moving average × (1 + percentage)Display of the center is optionalLower = moving average × (1 − percentage)Deviation is in %. It is not a standard deviation or an average of ranges.
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Based on the MAThe center is calculated from the period, method and price.

2

Specify percentagesDeviation 1 to 3 specify the percentages of the upper and lower lines.

3

Center displayThe center line can be displayed with Show Moving Average.

Up to 3 sets of upper and lower linesCenter line can be displayedWidth specified in %
1

MT5 display and examples of changed settings

Compares the default settings and a settings change example on a screen with only this product applied.

Settings change example: these items are changed
Average period / MA Period
InpPeriod
14 → 55
Set 2 percentage / Deviation 2 (%, 0 = off)
InpDeviation2
0 → 0.2
Set 3 percentage / Deviation 3 (%, 0 = off)
InpDeviation3
0 → 0.3
Center line display / Show Moving Average
InpShowMiddle
false → true

All other inputs remain at their defaults. On a PC, the default is on the left and the change example on the right; at smartphone width they appear in the same order from top to bottom.

Default settingsInpPeriod = 14 / InpDeviation2 = 0 / InpDeviation3 = 0 / InpShowMiddle = false
MA Envelopes Plus default settings
Simple, 14, Close, Deviation 1 = 0.1%, center line hidden.
View the screen in detail at full size
MA Envelopes Plus default settings (full size)
Settings change exampleInpPeriod = 55 / InpDeviation2 = 0.2 / InpDeviation3 = 0.3 / InpShowMiddle = true
MA Envelopes Plus settings change example
MA Period = 55, Deviation 1 / 2 / 3 = 0.1 / 0.2 / 0.3%, Show Moving Average = true. Everything else is at the defaults.
View the screen in detail at full size
MA Envelopes Plus settings change example (full size)

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.

2

How to read it in 30 seconds

Blue solid line

Set 1 of upper and lower lines. The default is 0.1%.

Sets 2 and 3

Set 2 is an orange dashed line, and set 3 is a SteelBlue dotted line. Hidden when set to 0.

Gray center

Hidden by default. Setting Show Moving Average to true displays it as a dashed line.

3

What it measures

These lines apply a fixed percentage to the center price. This is not a product that calculates the width according to the dispersion of prices.

Percentage and price difference

Deviation = 0.1 means 0.1%. The upper and lower lines become M×1.001 and M×0.999.

The price difference is not constant

Even with the same percentage, the distance changes when the center price changes. It is not specified in points.

Differences between methods

MA Method changes how the center is calculated. The upper and lower lines apply the same percentage formula to that center.

4

Situations for reading the display

Looking at differences in percentage

Indicator
Multiple upper and lower lines
Cross-check
Deviation 1 to 3
Check
Compare the differences in distance based on the same MA.
Caution
Do not treat inside or outside the lines as a boundary of profit or loss.

Looking at the position relative to the center

Indicator
Show Moving Average
Cross-check
Position of the MA and the upper and lower lines
Check
Check the positional relationship between the center and the fixed-percentage lines.
Caution
There is no guarantee that the price will return from the position where it touched a line.
5

Steps for checking the display

1

Look at the defaults

Check the upper and lower lines for Simple, 14, Close and Deviation 1 = 0.1.

2

Add the sets you need

Enter positive percentages in Deviation 2 and 3. The center is displayed with Show Moving Average.

3

Check the order of magnitude of the %

0.1 and 1 differ in distance by a factor of 10. For lines that go off the screen, also check the display scale.

6

Installation and checking the package contents

Included filePurpose / location
TRI_MA_Envelopes_Plus.ex5The 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.

1

Extract the ZIP

Extract the ex5 main file rather than leaving it in the compressed file.

2

Open the data folder

In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.

3

Apply this product

Refresh the Navigator or restart MT5, and apply it to the target chart. When comparing different settings, using separate charts makes checking easier.

4

Check the settings and display

First check with the default values. Changes and removal are done from the chart's 'Indicators List'.

Using this product does not require allowing DLLs. When removed, this product's drawings are cleared.

7

Settings

There are 7 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.

Average period

English item name
MA Period
Input name
InpPeriod
Default
14
Allowed range
1 to 1000
Description
The number of bars calculated for the center MA.

Average method

English item name
MA Method
Input name
InpMethod
Default
Simple
Allowed range
Simple / Exponential / Smoothed / Linear Weighted
Description
Simple is a simple average, Exponential is exponential smoothing, Smoothed is a smoothed moving average, and Linear Weighted is an average that weights newer bars more heavily.

Average price

English item name
MA Price
Input name
InpPrice
Default
Close
Allowed range
7 types
Description
Close = close, Open = open, High = high, Low = low, Median = (high + low)/2, Typical = (high + low + close)/3, Weighted = (high + low + close×2)/4.

Set 1 percentage

English item name
Deviation 1 (%)
Input name
InpDeviation1
Default
0.1
Allowed range
0.001 to 100 %
Description
The upper and lower lines are calculated as center × (1 ± percentage/100).

Set 2 percentage

English item name
Deviation 2 (%, 0 = off)
Input name
InpDeviation2
Default
0
Allowed range
0 to 100 %
Description
At 0, set 2 is not drawn.

Set 3 percentage

English item name
Deviation 3 (%, 0 = off)
Input name
InpDeviation3
Default
0
Allowed range
0 to 100 %
Description
At 0, set 3 is not drawn.

Center line display

English item name
Show Moving Average
Input name
InpShowMiddle
Default
false
Allowed range
true / false
Description
true displays the moving average as a dashed line.
8

Usage specifications

The latest bar is forming

The current bar is included in the calculation. The latest displayed values change with price updates.

Calculated on the chart timeframe

There is no function to specify a higher timeframe. Changing the timeframe or the history range also changes what is calculated.

Start of display

EMA is calculated from the oldest bar, and the others once MA Period bars are available. Changing the start of the history may affect EMA and SMMA values.

For on-screen display only

The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.

9

Troubleshooting and usage notes

Nothing is displayed

Check the input ranges and the number of history bars. If an input is out of range, loading is refused and the reason is written to the Experts log.

Colors or thin lines are hard to see

Check the combination with the background and the display scale. Details of the published images can be checked in the full-size view.

The upper and lower lines are not visible

If the percentage is large, the lines fall outside the display range of the price chart. Reduce the percentage or check the price scale.

Caution about a negative center

With negative prices, the upper/lower relationship of Upper and Lower in the formula is reversed. Do not judge the position from the labels alone.

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.

10

Technical information and specification details

Formula of the upper and lower lines

Upper and lower of each set = M × (1 ± Deviation/100). With Deviation = 100, the result of the Lower formula is 0. Even if the center is hidden, it is used to calculate the upper and lower lines.

Price and average types

Close = close, Open = open, High = high, Low = low, Median = (high + low)/2, Typical = (high + low + close)/3, Weighted = (high + low + close×2)/4. Simple is a simple average, Exponential is exponential smoothing, Smoothed is a smoothed moving average, and Linear Weighted is an average that weights newer bars more heavily.

Distinguishing what is displayed from what is not yet verified

The inputs and calculations in this document are based on the product's implementation. The actual display in the Data Window and the input screen, and how it looks during long operation on actual symbols or with long history, have not been verified.