MT5 indicators← Smoothed Range Location 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

Smoothed Range Location

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.

Indicator name: Smoothed Range LocationMetaTrader 5Separate window, blue line

Read the height of the blue line within the smoothed range

Smooth first, then measure the location within the range1 Top of the range0.50 Bottom of the rangeBlue line = location of the smoothed weighted close / 0.5 = guide to the middle
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Height is location0 is the bottom of the range and 1 is the top. 0.5 is a guide to the middle.

2

Smooth firstThe price and the highs and lows that form the range are each smoothed before the location is calculated.

3

A flat range is 0When the high side and the low side match and the range has no width, 0 is displayed.

Location from 0 to 1Default: 40 / 5No marks or notifications
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
Bars for the range / Range Period
InpRangePeriod
40 → 30
Bars for smoothing / Smoothing Length
InpSmoothingLength
5 → 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 settingsInpRangePeriod = 40 / InpSmoothingLength = 5
Smoothed Range Location default settings
Default: Range Period = 40, Smoothing Length = 5. Check the blue line and the 0.5 dotted line.
View the screen in detail at full size
Smoothed Range Location default settings (actual size)
Settings change exampleInpRangePeriod = 30 / InpSmoothingLength = 7
Smoothed Range Location settings change example
Change example: Range Period = 30, Smoothing Length = 7. Both the range bars and the smoothing bars are changed.
View the screen in detail at full size
Smoothed Range Location 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

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.

Check the setting names

The parentheses in the window name show Range Period, then Smoothing Length. The default is (40, 5).

The latest bar changes

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.

3

What it measures

It is the location of the smoothed weighted close within the recent range formed from the smoothed highs and lows.

Price used

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 3 smoothed series

The high, low and weighted close are smoothed separately. The weights make newer bars heavier and older bars lighter. Future bars are not used.

How the range is built

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).

Smoothing length and closeness to the ends

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.

4

Situations for reading the display

The blue line is above 0.5

Indicator
It is a location above the middle of the smoothed range.
Cross-check
Read the price of the same bar and the location of the blue line separately.
Check
Confirm the calculated result that it lies in the upper half.
Caution
It does not indicate the subsequent direction of price or any trading decision.

The blue line approaches an end

Indicator
It is a location close to 0 or 1.
Cross-check
The blue line is a ratio of the smoothed price to the range.
Check
Do not confuse it with a display that directly counts touches of the high or low.
Caution
On a normal bar with a range, the blue line does not necessarily match an end even when the price makes a high or low.

The blue line became 0

Indicator
It is 0 when it matches the bottom of the range, and also when the width of the range is 0.
Cross-check
Compare it with sections where the price was constant.
Check
Do not immediately conclude that a large change from the previous value is a sudden price move.
Caution
When a run of constant prices makes the width 0, the blue line can move to 0 even though the price does not change.

The shape changed after changing the settings

Indicator
Both the range bars and the smoothing bars affect the shape.
Cross-check
First check the values of the default settings and the change example.
Check
Record which setting you changed and compare.
Caution
The change example is not a recommended value. Do not treat the meaning as identical based only on how smooth it looks.
5

Steps for checking the display

1

Display with the default settings

With Range Period = 40 and Smoothing Length = 5, check the blue line in the separate window.

2

Read the scale and the reference line

Check the fixed scale marks at 0 and 1 and the 0.5 dotted line in the middle.

3

Check the meaning of the value

Read the height as "the location within the smoothed range". The value of the blue line is not a price.

4

Check the settings one at a time

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.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Smoothed_Range_Location.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 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.

Bars for the range

English item name
Range Period
Input name
InpRangePeriod
Default
40
Allowed range
Integer 2–1000
Description
The number of bars over which the maximum and minimum are searched from the smoothed highs and lows. It is separate from the number of bars used for smoothing.

Bars for smoothing

English item name
Smoothing Length
Input name
InpSmoothingLength
Default
5
Allowed range
Integer 1–100
Description
The smoothing length that makes newer bars heavier. At 1, no smoothing is done and the bar's own high, low and weighted close are used. There is no input that directly specifies the shape of the weights.
8

Usage specifications

History needed before display starts

The 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 there is no range

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.

Latest bar and settings changes

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.

Name and display digits

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.

Difference from Smoothed Stochastic

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.

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

The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.

9

Troubleshooting and usage notes

The line does not appear yet

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.

The line dropped to 0

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.

End values do not appear

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.

An input is outside the range

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.

10

Technical information and specification details

Calculation order

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.

Conditions for 0 and 1

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.

Relationship between inputs and history

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.

External functions

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.