MT5 indicators← Range Scaled Price Candles 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

Range Scaled Price Candles

Candles in which the open, high, low and close are converted into the distance from the average of recent median prices. 1 scale unit is 0.2 times the average range; it is not a price scale.

Indicator name: Range Scaled Price CandlesMetaTrader 5Separate window

Distance from the average, converted by range

Each bar uses its own period average00: average of median prices. 1 scale unit: average range × 0.2The vertical axis is −15 to +15. Anything outside is not visible.
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Read the position of 0It is the average of the median prices of the latest Period bars, including that bar.

2

Check the unit of the scale0.2 times the average of high − low. It is not a range that includes gaps.

3

Separate color and positionThe color compares that bar's open and close. The vertical position is the distance from the average.

Not price or pipsFixed display −15 to +15All 4 values change while forming
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 for the basis and range
InpPeriod
5 → 10

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 = 5
Range Scaled Price Candles default settings
The default is Period 5. The price chart above and the converted candles below have separate scales.
View the screen in detail at full size
Range Scaled Price Candles default settings (full size)
Example of changed settingsInpPeriod = 10
Range Scaled Price Candles example of changed settings
The changed example uses Period 10. The basis and the conversion unit change, and some bars have candles outside the display frame and look blank.
View the screen in detail at full size
Range Scaled Price Candles example of changed settings (full 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

Converts 4 prices

Converts the open, high, low and close with the same basis and the same unit into 1 candle.

Colors

Green if the close is above the open, red if below, and gray if equal. It is not a comparison with the previous bar.

Bars that are not visible

There are separate reasons: insufficient history, an average range of 0, and being outside the display frame. Do not distinguish them by the blank alone.

3

What it measures

Because each bar has a different basis and unit, the up-and-down order of converted candles is not necessarily the same as that of prices.

Basis 0

The position of the average of (high + low) ÷ 2 for each of the latest Period bars. It includes the latest bar.

1 scale unit

The average of (high − low) over the latest Period bars multiplied by 0.2. The gap from the previous bar's close is not added.

Converted values

For each of the 4 prices, calculates (price − average of median prices) ÷ 1 scale unit. The values have no price unit.

Level lines

±6, ±8, ±10 and ±12 are positions 1.2, 1.6, 2.0 and 2.4 times the average range away from the basis. They are a distance scale and do not show future price movement.

4

Situations for reading the display

The position falls even though the price rises

Indicator
Up and down of converted candles
Cross-check
The median price average and the average range of each bar are moving.
Check
Separate changes on the price chart from the distance from the basis.
Caution
Do not read the direction of the next price from moves outside or inside the levels.

Candles stick out of the window

Indicator
Display frame of −15 to +15
Cross-check
The values themselves are calculated even outside the range.
Check
Check the full-size display example and the period setting.
Caution
A candle entirely outside looks blank. This differs from a bar without a value.

The position of the latest open moves

Indicator
Converted candle while forming
Cross-check
Updates of the high and low change the basis and unit.
Check
Confirm that the 4 converted values, including the open, move.
Caution
It does not mean the original open moved.
5

Steps for checking the display

1

Check the period

The default is Period 5. The period appears in parentheses in the window name.

2

Check the unit

The lower window shows converted values. Do not read them directly as the price scale above.

3

Check the color and shape

The color shows the relation between the open and close, and the height including wicks shows the ratio of the range.

4

Compare the example of changed settings

Going from 5 to 10 changes the aggregation range for the basis and unit. Compare them, including the fact that some parts are outside the frame.

6

Installation and checking the package contents

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

Period for the basis and range

English item name
Period
Input name
InpPeriod
Default
5
Allowed range
Integer 2 to 1000
Description
The number of bars used in common for the average of median prices and the average of high − low. The first value requires Period bars.
8

Usage specifications

Fixed display range

The indicator sets the vertical axis to −15 to +15. Parts outside it are not visible. Lengthening the period may increase the number of bars that fall entirely outside.

Bars that are not drawn

It does not draw the first Period−1 bars, when the number of bars is less than Period, or in sections where high = low on all of the most recent Period bars. In the last case, this is because the conversion unit becomes 0.

The 4 values and color while forming

Updates to the high or low change the reference and the unit, so all 4 values, including the open, change. The color is determined by the close and open at that moment, so it may change during the bar.

Right after a section with a range of 0

Because the average range is small, the converted values swing widely. If all of the previous Period−1 bars had a range of 0 and only that bar has a range, the height is 5×Period. With Period 7 or more it does not fit within the window height.

Header

The window name is followed by the period, and the 4 values after that are open, high, low and close, in that order, with 2 decimal places. This product does not call notifications.

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

Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.

9

Troubleshooting and usage notes

Some bars are blank

Check in order the required number of bars, the recent high − low, and the possibility that the candle is outside the display frame. Do not decide from the blank alone that it is not calculated.

The heading shows 0

0 can appear on bars that are not drawn. On the other hand, the value is also 0 when the actual price equals the median price average. Check the drawing together with the required number of bars; do not distinguish them by the heading alone.

The color is the same but the shape changes

Period changes the conversion basis and unit. The color is determined only by the bar's own open and close, so with the same price data the color rule does not change even if the period is changed.

Out-of-range input

If the Experts tab shows Range Scaled Price Candles: Period must be 2 to 1000., return Period to within the 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

Formula

n = Period, m = average of (high + low) ÷ 2 over the latest n bars, u = 0.2 × average of (high − low) over the latest n bars. Each drawn value is (corresponding price − m) ÷ u. When u = 0, no value is produced.

Candle height

Converted high − converted low is 5 × that bar's range ÷ the average range over the period. If that bar's range equals the average, the height is 5.

Display range and calculation range

−15 to +15 is the display frame; it is not a process that clips the calculated values to those upper and lower limits. The distance level lines are also not forecasts of the next price movement.

History and closed bars

With the same bar data and settings, the value is determined from the latest Period bars, including that bar. The forming bar changes, but the calculation does not use later bars to rebuild past converted values.