Do not mix up top and bottom
Low-Side, which uses the distance from the low to the close, is the green upper bars; High-Side, which uses the distance from the close to the high, is the red lower bars.
Weights each bar's distance from the low to the close and from the close to the high by factors such as closeness to the edges of the range over a set period. Shows them as green bars and negative red bars, and a blue line that averages their sum.
Green barsThe weighted distance from each bar's low to its close is aggregated and drawn above 0.
Red barsThe weighted distance from each bar's close to its high is aggregated and drawn as negative values.
Blue lineA simple average of the sum of the green and red values. It is not the average of 1 bar.
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.
Low-Side, which uses the distance from the low to the close, is the green upper bars; High-Side, which uses the distance from the close to the high, is the red lower bars.
The inclusion conditions are determined by the previous close and the current bar's range, not by whether the open or close is larger.
The blue line contains the result of adding green and negative red. 1 large bar alone does not decide the direction of the line.
A ratio in which the distance within each bar is weighted by closeness to the edges of the period range and optionally by volume. It is not the price itself or pips.
For each bar, finds the highest high and lowest low of the Range Period bars that include that bar. The distances aggregated are that bar's low-to-close and close-to-high.
Bars whose close is less than "previous close − 0.2 times the current high-low range" are excluded from the lower-edge side. Bars whose close is greater than "previous close + 0.2 times the current high-low range" are excluded from the upper-edge side. Equal values are included.
For Low-Side, the closer the bar's low is to the lowest low of the period, the larger the weight; for High-Side, the closer the bar's high is to the highest high of the period, the larger the weight. If Use Tick Volume is true, the bar's tick volume ÷ the maximum within the period is also multiplied.
The sum of the distances over Slowing bars is divided by the sum of the Range Period ranges calculated for each bar, and multiplied by 100. The upper-edge side is made negative. The blue line is a simple average over Average Period bars of the sum of both sides.
Check the green lower-edge side and the red upper-edge side.
The 3 types, Range, Slowing and Average, have different roles.
Check whether tick volume weighting is enabled. It is not a feature that switches to real volume.
Read it as the smoothed result of the sum of both sides.
| Included file | Purpose / location |
|---|---|
| TRI_Range_Edge_Close_Distance.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 are 4 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpRangePeriodInpSlowingInpAveragePeriodInpUseTickVolumeThe values and colors of the rightmost bar change while the bar is forming. Past displays are also recalculated when history is added or corrected or settings are changed.
If the required history is insufficient, lines and bars are not drawn. The 0 in the header alone cannot distinguish a valid 0 from the state before calculation, so check the number of bars and the drawing together.
The first bar value is at bar Range+Slowing−1, and the average line starts Average−1 bars later. With the defaults, bars start from bar 22 and the line from bar 24.
If the price range is 0 throughout Range+Slowing−1 bars, the bar is blank. The average line is blank if even 1 bar in its window is blank.
This product only displays. The horizontal ±10 are auxiliary scale lines, not levels that direct decisions.
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.
Check the required history and the input ranges. With out-of-range inputs, the indicator does not calculate or draw, and the reason appears in English on the MT5 "Experts" tab.
Open the full-size display of the comparison image. In the terminal, enlarge the separate window vertically to check the lines and scale.
It is determined by the ratio of each bar's tick volume to the maximum within the period. The difference from false is not always large.
On the forming bar, tick volume changes in addition to the high, low and close. The displayed values are updated, including the weights and denominator.
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.
Let HH be the highest high of the period, LL the lowest low, and H, L and C each bar's high, low and close. Low-Side is (C − L) × (HH − L) ÷ (HH − LL), and High-Side is −(H − C) × (H − LL) ÷ (HH − LL), multiplied by the volume weight if needed. On the side where L = LL or H = HH, the position weight is 1. If the period range is 0, each distance is also 0 and that bar contributes 0. The inclusion conditions and the Slowing aggregation are then applied.
For each of the Slowing bars, the Range Period highest high − lowest low is found, and these are added to form the denominator. It is not a calculation that adds the high-low ranges of the Slowing candles themselves. If the denominator is 0, no value is placed on the bar.
As long as the required reference bars and the previous close are the same, there is no smoothing state that depends on how older history starts. On charts with different price ranges or tick volumes, the results also differ.
The window shows the 3 periods, the volume setting, and the values of the lower-edge side, upper-edge side and average line. The values are distances divided by range widths, not prices or amounts of money. Do not judge whether a value is blank from a 0 rounded to the displayed digits alone.
Even for bars whose distance was not added because of the conditions, the period range is included in the denominator. With normal highs, lows and closes, at least one side's inclusion condition is met, but if the distance itself is 0, the contribution is also 0. Because the volume weight is 1 or less, switching from false to true under the same bar conditions does not make the absolute value of either set of bars larger. The blue line is the difference of the two sides, so the same relation does not hold for it.
Tick volume differs by broker and symbol. On a forming bar that has a range, whose close is away from the relevant edge and that meets the inclusion condition, the volume weight can increase and that side's bars can change even if the price does not change. When the maximum volume within the period is reached, the weight is 1. The blue line can move up or down. A bar with a range of 0 contributes 0 distance.