MT5 indicators← Boundary Side Averages 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

Boundary Side Averages

Splits the base value above and below a boundary, and updates each average line only with the bars on its own side.

Indicator name: Boundary Side AveragesMetaTrader 5Separate window

While on the opposite side, a side line stops

Base on the upper side → only the upper line updatesBase on the lower side → only the lower line updatesBoundary: 50 or 0
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Choose the baseChoose from RSI, Cascade Smoothed RSI, Stochastic %K or MA Gap.

2

The side lines update separatelyOrange exponentially averages only the upper-side values, and purple only the lower-side values.

3

Colors compare on the same barGreen is a value above the upper line, red is below the lower line, and gray is neither.

Orange: upper-side averagePurple: lower-side averageGray, green, red: base state
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
Base type / Oscillator Base
InpBase
RSI → MA Gap
Price average gap method / Gap Average Method
InpGapMethod
SMA → EMA
Fast average period / Fast Period
InpFastPeriod
5 → 10
Slow average period / Slow Period
InpSlowPeriod
34 → 24
Side line average period / Side Average Period
InpAveragePeriod
32 → 7

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 settingsInpBase = RSI / InpGapMethod = SMA / InpFastPeriod = 5 / InpSlowPeriod = 34 / InpAveragePeriod = 32
Boundary Side Averages default settings
The default is RSI 32, Side Average Period 32. Check the sections where the upper and lower lines are horizontal.
View the screen in detail at full size
Boundary Side Averages default settings (actual size)
Settings change exampleInpBase = MA Gap / InpGapMethod = EMA / InpFastPeriod = 10 / InpSlowPeriod = 24 / InpAveragePeriod = 7
Boundary Side Averages settings change example
Example with Fast Period 10, Slow Period 24 and Average Period 7. Compare the green, red and gray bars with the orange and purple side averages.
View the screen in detail at full size
Boundary Side Averages settings change example (actual size)

Published example: M1. This is an example to explain the display. The example with changed settings is not a set of recommended values. Details can be checked in the actual-size view. Also check the vertical axis and units of the separate window. Except for products with a fixed scale, the scale changes with the settings and the displayed range.

2

How to read it in 30 seconds

Boundary

0 for MA Gap, 50 for the other 3 types.

Colors

It is not up/down versus the previous bar, but greater/smaller than the side lines on the same bar.

Stopped side line

While the base is on the opposite side, that line is not updated.

3

What it measures

Side Average Period is not a period that averages all bars continuously.

The 4 base types

RSI, Cascade Smoothed RSI and Stochastic %K are drawn as lines; MA Gap draws the difference between a fast and a slow price average as bars. For the MA Gap average, choose SMA or EMA.

Upper-side and lower-side averages

The exponential average is updated with coefficient 2/(Side Average Period + 1) only on bars on that side. On bars on the opposite side, the previous value is kept.

Bars equal to the boundary

For the 0 to 100 types, exactly 50 keeps both side lines. For MA Gap, an exact 0 updates as the upper side.

How the color is decided

Green if the base is greater than the upper line on the same bar, red if smaller than the lower line, gray otherwise. Equal to a line is also gray.

BaseMain inputs usedBoundary / type
MA GapGap Average Method、Fast/Slow、Applied Price0 / bars
RSI / CascadeOscillator Period、Applied Price50 / line
Stochastic %KOscillator Period、Stochastic Slowing50 / line

Side Average Period is used with all bases. Unused inputs are also checked for range and combination.

4

Situations for reading the display

One line is flat

Indicator
The base is on the opposite side, so updating is paused.
Cross-check
This is different from a stop in price feed. Also check the base line or bars.
Check
Look at the boundary and the position of the base.
Caution
The upper and lower lines are not averages over the same period for all bars.

It turned gray

Indicator
The value has not gone outside the upper and lower side lines on the same bar.
Cross-check
It is not compared with the change from the previous bar.
Check
Also note that if Side Average Period is 1, everything is gray.
Caution
The color is not a guide to the strength or direction of the value.

Different history gives different values

Indicator
One side line can go without updating for a long time, and the influence of old history remains up to the latest bar.
Cross-check
Compare the maximum bars and the start of the loaded history.
Check
Align not only the inputs but also the history.
Caution
The line values and colors of the latest bar can also change.
5

Steps for checking the display

1

Check the base

The window name shows the type: RSI, Cascade, Stochastic or MA Gap.

2

Check the inputs in use

Each base needs different inputs. Keep unused inputs within the allowed range as well.

3

Tell the lines and the boundary apart

Distinguish the orange upper-side average, the purple lower-side average and the silver boundary.

4

Check the display type

MA Gap is bars; the other bases are lines. If the type differs from what you intended, remove this product and attach it again with the selected settings.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Boundary_Side_Averages.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. Place only 1 instance of the same product on 1 chart.

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 8 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.

Base type

English item name
Oscillator Base
Input name
InpBase
Default
RSI
Allowed range
MA Gap / RSI / Cascade Smoothed RSI / Stochastic %K
Description
Default RSI. Cascade Smoothed RSI is abbreviated as Cascade in the window name.

Price average gap method

English item name
Gap Average Method
Input name
InpGapMethod
Default
SMA
Allowed range
SMA / EMA
Description
Used only with MA Gap.

Fast average period

English item name
Fast Period
Input name
InpFastPeriod
Default
5
Allowed range
Integer 1 to 500, less than Slow Period
Description
Used only with MA Gap.

Slow average period

English item name
Slow Period
Input name
InpSlowPeriod
Default
34
Allowed range
Integer 2 to 500, greater than Fast Period
Description
Used only with MA Gap.

Base period

English item name
Oscillator Period
Input name
InpOscPeriod
Default
32
Allowed range
Integer 2 to 500
Description
Used with RSI, Cascade and Stochastic. Not used with MA Gap.

%K smoothing period

English item name
Stochastic Slowing
Input name
InpSlowing
Default
3
Allowed range
Integer 1 to 500
Description
Used only with Stochastic. Sums the ranges and the distances from the close to find the ratio.

Side line average period

English item name
Side Average Period
Input name
InpAveragePeriod
Default
32
Allowed range
Integer 1 to 500
Description
Used with all bases. With 1, the line on that side has the same value as the base, and the color is gray only.

Applied price

English item name
Applied Price
Input name
InpPrice
Default
Close
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
Used for bases other than Stochastic. Stochastic uses the high, low and close and does not use this input.
8

Usage specifications

Start of the side lines

For 0 to 100 type bases, the side lines use 50 as their initial value and update from the bar of the base's first value. With MA Gap, a side line is not drawn until a value for that side first appears. One side alone may not appear for a long time.

Flat price and %K

If all high-low ranges in the window are 0, %K is 100. Until the upper line catches up to 100 it is green, and when they reach the same value it is gray. Do not read 100 or the color as the strength of price change.

Flat price and RSI/Cascade

RSI keeps its last value. Cascade keeps moving for a while after the stop and may reach 0 or 100; if the smoothed size of change is nearly 0, it is 50. Values and colors during the stop and for a while after it carry no meaning about price direction.

Latest bar and display range

Values and colors of the forming bar change. The vertical axis is automatic, and the range is not fixed even for 0 to 100 types. There are no mark or notification functions.

Only 1 instance of the same product on 1 chart

This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.

For on-screen display only

Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.

9

Troubleshooting and usage notes

One side line is missing

With MA Gap, values on that side may not have appeared yet. Do not judge from a 0 in the header alone that the line is at the boundary.

The base line is missing too

Check the required history. Cascade restarts its preparation when the price does not move from the start of the history, so the first value can be delayed.

I want to see inputs not in the name

Check them in the Inputs tab of the properties. Unused inputs are also checked, so even with RSI, it does not start if Fast and Slow have the same value.

The type is different after changing the base

MA Gap is bars; the others are lines. Remove the indicator, attach it again, and check the type and inputs.

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

Where the base starts drawing

Count the first bar as bar 1. For MA Gap, SMA starts at bar Slow Period and EMA at bar 1 (the first difference is 0). RSI starts at bar Oscillator Period + 1. %K starts at bar Oscillator Period + Stochastic Slowing − 1. Cascade starts at bar max(Oscillator Period−1,5) + 1 at the earliest, but is delayed when its preparation restarts.

Colors and an exact 0

A 0 in MA Gap is the upper side, but if a very small positive or negative difference remains from rounding in the calculation, it is classified to the side of that sign. A number or bar height that looks like 0 on screen is not necessarily an exact 0.

EMA and history

The MA Gap EMA uses the oldest price as its initial value. The first section is affected by how it starts. Because the side lines stop while on the opposite side, that influence can remain even at the latest bar.

Header

There are 3 values: the base, the upper side line and the lower side line. MA Gap uses the price digits + 1 digit; the others use 2 decimal places. On bars where the required values are not available yet, do not distinguish a displayed 0 from an actual 0 by the header alone.