Look at the blue line first
The vertical axis runs from 0 to 1. Read whether the line is above or below the 0.5 dotted line as a location within the range.
Smooths the high, low and weighted close first, and shows with a blue line from 0 to 1 where the smoothed weighted close lies within that range. It is not the price itself or a future price level.
Height is location0 is the bottom of the range and 1 is the top. 0.5 is a guide to the middle.
Smooth firstThe price and the highs and lows that form the range are each smoothed before the location is calculated.
A flat range is 0When the high side and the low side match and the range has no width, 0 is displayed.
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 vertical axis runs from 0 to 1. Read whether the line is above or below the 0.5 dotted line as a location within the range.
The parentheses in the window name show Range Period, then Smoothing Length. The default is (40, 5).
On the latest bar, the blue line also changes as the price updates. There is no function that signals confirmation with a mark or notification.
It is the location of the smoothed weighted close within the recent range formed from the smoothed highs and lows.
The weighted close of each bar is (high + low + close × 2) ÷ 4. The open is not used. There is no input for choosing the price type.
The high, low and weighted close are smoothed separately. The weights make newer bars heavier and older bars lighter. Future bars are not used.
The top is the maximum of the smoothed highs over Range Period bars, and the bottom is the minimum of the smoothed lows over the same number of bars. The blue line is (smoothed weighted close − bottom) ÷ (top − bottom).
Making Smoothing Length longer changes not only the price side but also the range side. It is not the case that a longer length always moves the line away from 0 or 1.
With Range Period = 40 and Smoothing Length = 5, check the blue line in the separate window.
Check the fixed scale marks at 0 and 1 and the 0.5 dotted line in the middle.
Read the height as "the location within the smoothed range". The value of the blue line is not a price.
When comparing, check the input values together with the shape of the blue line. Distinguish the movement on the latest bar from the display on past bars.
| Included file | Purpose / location |
|---|---|
| TRI_Smoothed_Range_Location.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 2 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpRangePeriodInpSmoothingLengthThe first calculated value needs Range Period + Smoothing Length − 1 bars. With the defaults, bar 44 from the start is the first calculated position, and earlier bars are blank.
When the upper and lower edges of the range are equal, the value is 0. This also applies when a constant price continues long enough. When price movement resumes, it calculates with the range at that time.
When the high, low or close of the forming bar changes, the value also changes. If the settings or the history change, the displayed calculation results can also change.
The window name shows the 2 input values in parentheses. Values are displayed with 3 decimal places. Distinguish display rounding from the internal calculated values.
This product first smooths the price and the high and low, and then derives the position. Smoothed Stochastic smooths after finding the position. The prices used, the smoothing method, the scale and the rule for when there is no range also differ, so the values and shapes are not necessarily the same.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
Check whether the history has reached the number of bars needed to start the display. Distinguish the initial blanks from a calculated 0. Do not judge that there is a valid value from 0.000 in the header alone; also check that the blue line is drawn.
It cannot necessarily be explained by a price drop alone. It also becomes 0 when the width of the range becomes 0. Check for sections where the price was constant.
Because it is the location of the smoothed weighted close, a touch of the high or low on the chart and a match with 0 or 1 are different things. There is also no rule that a longer smoothing always moves the line away from the ends.
The indicator refuses to start and writes the reason in English to the Experts log. Check for "Smoothed Range Location: Range Period must be 2 to 1000." or "Smoothed Range Location: Smoothing Length must be 1 to 100." and set the value back within the allowed range.
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.
The weighted close of each bar is calculated, and the high, low and weighted close are smoothed individually with the same length. Then the maximum of the smoothed highs and the minimum of the smoothed lows over Range Period bars are taken, and the location of the smoothed weighted close is calculated. It is not a method that smooths the smoothed location again.
In the formula, excluding rounding, matching 1 within a range of positive width requires that the bars included in the smoothing have the same high, low and close, and that the current smoothed high is the top of the range. There is a corresponding bottom condition for 0. However, if the width of the whole range is 0, it is set to 0 by a separate rule. Even if the display shows 0.000 or 1.000, the internal value does not necessarily match the end exactly.
With Range Period as n and Smoothing Length as m, the first value is placed at bar m + n − 1 from the start. Bars still in preparation have no drawn value. If the available history is insufficient, the line is not displayed for that portion.
This product has no marks, notifications or order handling. It calculates from the chart's price data and draws a line in a separate window.