MT5 indicators← High Low Deviation Balance 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

High Low Deviation Balance

Compares the dispersion of the high and of the low around their respective EMAs, and combines the ratio into 1 line.

Indicator name: High Low Deviation BalanceMetaTrader 5Separate window

50 is not the price center but the point where the 2 dispersions are equal

High → dispersion around the high's EMA HLow → dispersion around the low's EMA LDisplayed value = 100 × H ÷ (H + L)H = L → 50 / H = L = 0 → 5050
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Check the period firstDeviation Period is both the EMA period and the number of bars over which dispersion is measured.

2

Compare the 2 dispersionsAbove 50, the high side's share is larger; below 50, the low side's share is larger.

3

Read it separately from directionIt is not a number that shows the price direction or the size of the change itself.

Blue: ratio lineSilver dotted line: 50Vertical axis: 0 to 100
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
Period for dispersion and EMA
InpPeriod
10 → 30

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 = 10
High Low Deviation Balance default settings
The default is Deviation Period 10. Check the blue line and the 50 dotted line.
View the screen in detail at full size
High Low Deviation Balance default settings (actual size)
Example of changed settingsInpPeriod = 30
High Low Deviation Balance settings change example
An example with Deviation Period changed to 30. The same period is applied to both the EMA and the dispersion.
View the screen in detail at full size
High Low Deviation Balance 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

Blue line

The share of the total taken by the high-side dispersion.

Dotted line at 50

The point where the high side and low side are equal. It is not the midpoint of the price.

Latest bar

The value changes with the high and low of the forming bar.

3

What it measures

Places the center at each bar's EMA and measures recent highs and lows separately.

How dispersion is measured

Subtracts a common center, the current bar's EMA, from the values of the latest n bars. The squares of the differences are averaged and the square root is taken. It is not a calculation that uses the window's simple average as the center.

Conditions for moving away from 50

When changes in price level and in bar range coincide, a difference arises between the high-side and low-side dispersions. If bars with wide ranges are biased to the side above the EMA, it works toward a value above 50; if biased to the side below, toward a value below 50.

When the range is constant

If each bar's high − low is consistently the same, the value is 50 or very close to it whether the price moves up or down. If the ranges become equal partway, the earlier differences remain.

When the price moves a lot

When both the high and the low move away from their EMAs in the same direction, a common offset enters both dispersions and the ratio tends to move toward 50.

4

Situations for reading the display

The line is near 50

Indicator
The dispersions of the high and low are close.
Cross-check
Cross-check the relation to each bar's range, not the price direction.
Check
Check the period and the vertical axis.
Caution
It does not mean the price is not moving.

The line is near 0 or 100

Indicator
One side's dispersion is smaller than the other's.
Cross-check
100 occurs when only the low side is 0, and 0 when only the high side is 0.
Check
Consider separately the position of one side's price and its EMA.
Caution
Not all prices need to stop.

The price stopped

Indicator
At first the line moves because earlier bars remain in the window.
Cross-check
Even when the window contains only a constant price, traces remain until the EMA catches up.
Check
Do not expect it to return to 50 immediately; check the period.
Caution
It is not a rule that immediately holds the last value before the price stopped.
5

Steps for checking the display

1

Read the periods

The value in parentheses in the window name is Deviation Period.

2

Check the number of bars

With fewer than n bars, no value appears. Bar n has the first calculated value.

3

Look at the position relative to 50

Read it as a ratio and do not confuse it with the price position or direction.

4

Change the settings

Change only the period and compare it separately from the default chart.

6

Installation and checking the package contents

Included filePurpose / location
TRI_High_Low_Deviation_Balance.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 is 1 input. Change it on the Inputs tab of the properties. The English item name and input name defined in the source are shown together.

Period for dispersion and EMA

English item name
Deviation Period
Input name
InpPeriod
Default
10
Allowed range
Integer 2 to 1000
Description
Default 10. The same value is used for the period of the high and low EMAs and for the number of bars in the dispersion window.
8

Usage specifications

Behavior after the price stops

For n−1 bars after the stop, bars from before the stop remain in the window and the value moves. After that, a ratio that includes the influence from before the stop may continue for a while. When the EMA catches up and tiny dispersion is treated as 0, it may pass through 0 or 100 and reach 50. The longer the period, the longer the influence can remain.

Start of the history

The EMA is calculated from the first loaded bar. Values may change when history is added or the maximum number of bars is changed.

Lines, marks and notifications

This product shows the ratio line and a 50 level line. 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

No lines appear

At least Deviation Period bars are required. Check that the input is within 2 to 1000 and that the history is loaded.

0.00 is visible

0 is also a valid value. The number in the heading alone sometimes cannot distinguish it from a state with no value, so check the number of bars and whether the line is present as well.

Does not return to 50

Even if recent prices are constant, it does not become 50 immediately if past effects remain in the EMA.

The input is not accepted

Outside the range, calculation and drawing do not start. Check the Experts message and Deviation Period.

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

With n as the period, the high EMA and low EMA use a coefficient of 2/(n+1), and their initial values are the first high and low. H = √average((recent high − current high EMA)²), and L is found the same way with the low. The displayed value is 100H/(H+L), and 50 if both are 0.

Rounding and end values

Each dispersion is treated as 0 if it is at or below the absolute value of the corresponding EMA × 10 to the power of −12. 100 occurs when only L is 0, and 0 when only H is 0. The vertical axis is fixed at 0 to 100.

Start of display and heading

Counting the first bar of the chart as bar 1, drawing starts from bar n. The window name is the product name and the period, and the value has 2 decimal places. Identity with MT5 standard indicators is not assumed.