Blue line
The share of the total taken by the high-side dispersion.
Compares the dispersion of the high and of the low around their respective EMAs, and combines the ratio into 1 line.
Check the period firstDeviation Period is both the EMA period and the number of bars over which dispersion is measured.
Compare the 2 dispersionsAbove 50, the high side's share is larger; below 50, the low side's share is larger.
Read it separately from directionIt is not a number that shows the price direction or the size of the change itself.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
The share of the total taken by the high-side dispersion.
The point where the high side and low side are equal. It is not the midpoint of the price.
The value changes with the high and low of the forming bar.
Places the center at each bar's EMA and measures recent highs and lows separately.
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.
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.
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 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.
The value in parentheses in the window name is Deviation Period.
With fewer than n bars, no value appears. Bar n has the first calculated value.
Read it as a ratio and do not confuse it with the price position or direction.
Change only the period and compare it separately from the default chart.
| Included file | Purpose / location |
|---|---|
| TRI_High_Low_Deviation_Balance.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'.
Using this product does not require allowing DLLs. When removed, this product's drawings are cleared.
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.
InpPeriodFor 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.
The EMA is calculated from the first loaded bar. Values may change when history is added or the maximum number of bars is changed.
This product shows the ratio line and a 50 level line. There are no mark or notification functions.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.
At least Deviation Period bars are required. Check that the input is within 2 to 1000 and that the history is loaded.
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.
Even if recent prices are constant, it does not become 50 immediately if past effects remain in the EMA.
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.
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.
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.
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.