MT5 indicators← Price Range Width Plus 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

Price Range Width Plus

Shows the high-low width over a set number of bars, or the total distance traveled by the close. You can choose whether to divide by the period and whether to also compare the previous window.

Indicator name: Price Range Width PlusMetaTrader 5Separate window

3 points of the display

1The blue line is the current window2Check the division by period and the units3Purple is the previous window
Schematic diagram of how to read it. This is not an actual terminal screen.
1

The blue line is the current windowChannel width is highest high−lowest low. Path length is the sum of the absolute differences between adjacent closes.

2

Check the division by period and the unitsBy default, the channel width in Point units is divided by Period. It is not the usual full channel width itself.

3

Purple is the previous windowIf Show the previous window is true, the output from Period bars before is overlaid.

Range and volatility comparisonMT5 onlyColors and levels are not trading instructions
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 / Period
InpPeriod
12 → 35
Divide by period / Divide by Period
InpDivide
true → false
Show the previous window / Show the previous window
InpShowPrevious
false → true

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 = 12 / InpDivide = true / InpShowPrevious = false
Price Range Width Plus default settings
Default: a blue line of the 12-bar channel width converted to Points and divided by 12.
View the screen in detail at full size
Price Range Width Plus default settings (actual size)
Settings change exampleInpPeriod = 35 / InpDivide = false / InpShowPrevious = true
Price Range Width Plus settings change example
Change example: the 35-bar width shown without dividing by the period. The output from 35 bars before is compared in purple.
View the screen in detail at full size
Price Range Width Plus settings change example (actual size)

Published example: M1. This is an example to explain the display. The published images are screens from before the brand display was added. The calculation and drawing conditions are the same, and the included version has display settings for the brand text and QR code. The example with changed settings is not a set of recommended values. Details can be checked in the full-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

The blue line is the current window

Channel width is highest high−lowest low. Path length is the sum of the absolute differences between adjacent closes.

Check the division by period and the units

By default, the channel width in Point units is divided by Period. It is not the usual full channel width itself.

Purple is the previous window

If Show the previous window is true, the output from Period bars before is overlaid.

3

What it measures

Shows the high-low width over a set number of bars, or the total distance traveled by the close. You can choose whether to divide by the period and whether to also compare the previous window.

Path length also adds back-and-forth moves

Even when the close rises and comes back, the distance moved along the way is added. This differs from highest high−lowest low.

Recursive smoothing

If N is 1, there is no smoothing. With 2 or more, the current width and the past N−1 smoothed outputs are added and divided by N.

4

Situations for reading the display

Read the default display

Indicator
Channel width is highest high−lowest low. Path length is the sum of the absolute differences between adjacent closes.
Cross-check
Check the candle and vertical axis for the same bar.
Check
First check the method, periods and units.
Caution
It is not a signal that shows a trading direction or a future price.

Compare by changing the settings

Indicator
Change example: the 35-bar width shown without dividing by the period. The output from 35 bars before is compared in purple.
Cross-check
Check the settings differences between the default screen and the change example.
Check
Use separate charts and compare on the same timeframe and history.
Caution
Changing the method can change even the units.

Investigate blank or equal-value bars

Indicator
After the current output starts, another Period bars of history are needed.
Cross-check
Check the history start position and the periods needed for the calculation.
Check
Distinguish no value from the number 0.
Caution
Do not judge it a fault only because the screen is blank.
5

Steps for checking the display

1

Apply with the defaults

Load history on the same symbol and timeframe, and first check the default settings.

2

Read the units and colors

Channel width is highest high−lowest low. Path length is the sum of the absolute differences between adjacent closes.

3

Change 1 condition at a time

Refer to the published change example and confirm how the inputs correspond to the display. For change examples with multiple conditions, separating each condition lets you follow the differences.

4

Compare on closed bars

The value on the current bar changes. Compare numbers at the same past time.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Price_Range_Width_Plus.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. When comparing different settings, using separate charts makes checking easier.

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 12 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.

Width type

English item name
Mode
Input name
InpMode
Default
Channel width (highest high - lowest low)
Allowed range
Channel width / Path length
Description
The high-low width, or the sum of Period close changes. Path length needs Period+1 bars of closes.

Period

English item name
Period
Input name
InpPeriod
Default
12
Allowed range
Integer 1–1000
Description
Period for measuring the width. The previous-window display is also delayed by the same number of bars.

Unit

English item name
Units
Input name
InpUnits
Default
Points
Allowed range
Price x Scale / Points
Description
Price width×scale, or price width÷Point.

Multiplier in price units

English item name
Scale (price units)
Input name
InpScale
Default
1
Allowed range
0.0001–1000000 (finite value)
Description
Acts only with Price x Scale.

Divide by period

English item name
Divide by Period
Input name
InpDivide
Default
true
Allowed range
true / false
Description
If true, divides the unit-converted width by Period.

Recursive smoothing N

English item name
Recursive Smoothing N (1 = none)
Input name
InpSmooth
Default
1
Allowed range
Integer 1–100
Description
1 means no smoothing. This differs from a normal SMA.

Show the previous window

English item name
Show the previous window
Input name
InpShowPrevious
Default
false
Allowed range
true / false
Description
true adds the output from Period bars before in purple.

Drawing style

English item name
Draw As
Input name
InpDrawAs
Default
Line
Allowed range
Line | Histogram
Description
Choose line or bars.

Show brand and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
true shows the brand text and QR. When several products from the same medium are used on the same chart, the display is shared.

Brand position

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Allowed range
Top left / Bottom left / Bottom right / Top right
Description
The default is the lower left. Move it if displays overlap.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer (pixels)
Description
Horizontal margin from the reference corner. Negative numbers are treated as 0.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer (pixels)
Description
Vertical margin from the reference corner. Negative numbers are treated as 0.
8

Usage specifications

Current bar

Values on the unclosed bar change as the price updates. Do not confuse them with closed bars.

Differences between history and data feeds

Values change with the symbol, timeframe, data provider and loaded history range. Compare under the same conditions.

Brand display

The packaged version has a function that shows Produced by Trilogy Inc. and a QR code linking to https://www.trgy.co.jp/. The position and other details can be changed in additional settings. There is no account authentication.

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 purple line is not there yet

After the current output starts, another Period bars of history are needed.

Changing the smoothing changes the starting part

Until valid past smoothed outputs are available, the width at that point is used as it is.

The display is crowded

Use separate charts, or change the brand position and margins. Increase the height of the separate window, and also refer to the actual-size images.

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

Order of processing

The order is: width calculation → unit conversion → optional division by period → recursive smoothing → display of past output.

Point and price

Point is the symbol's smallest displayed digit. Do not compare values shown in Points as the same price width regardless of symbol.