MT5 indicators← RSI Centre Deviation Lines 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

RSI Centre Deviation Lines

Shows the recent dispersion of the RSI as the width between 2 lines, upper and lower, centered on 50.

Indicator name: RSI Centre Deviation LinesMetaTrader 5Separate window

The center of the lines is 50. Only the distance from the center moves.

Upper line = 50 + width × deviationLower line = 50 − width × deviation50The RSI also goes outside the lines
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Distinguish blue and orangeBlue is the RSI; orange is the deviation lines centered on 50.

2

Check the deviation typeThere is a method that averages each bar's difference from its average, and a population standard deviation method.

3

Do not treat the outside as specialThe lines are not the range of past RSI. Going outside is also just one calculation result.

Blue: RSIOrange: upper and lower deviation linesThe center is always 50
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
Deviation type
InpDeviation
Average Distance from Moving Average → Standard Deviation
Deviation multiplier
InpWidth
2 → 1

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 settingsInpDeviation = Average Distance from Moving Average / InpWidth = 2
RSI Centre Deviation Lines default settings
The default is RSI Period 14, AvgDist, Width 2. The orange lines are symmetric around 50.
View the screen in detail at full size
RSI Centre Deviation Lines default settings (actual size)
Settings change exampleInpDeviation = Standard Deviation / InpWidth = 1
RSI Centre Deviation Lines settings change example
Deviation changed to Standard Deviation and width to 1. The period and price stay at their defaults.
View the screen in detail at full size
RSI Centre Deviation Lines 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

Center

Always 50, not the RSI average.

Width

Determined by the recent RSI dispersion × Width.

RSI outside

The frequency changes with the settings. Outside the lines is not treated as a special decision level.

3

What it measures

The same period is used for the RSI and the deviation; only the deviation calculation method can be chosen.

AvgDist

Finds the absolute difference between each bar's RSI and the RSI average of the last n bars up to that bar. That difference is averaged over the last n bars. The result involves the RSI of the last 2n−1 bars.

SD

The population standard deviation of the RSI over the last n bars. The differences from the average of a single window are squared, averaged, and the square root is taken.

Common center

In both, the upper line is 50 + Width × deviation and the lower line is 50 − Width × deviation. The center does not move even when the RSI average moves.

When the RSI is stable

When the RSI stays stable away from 50, the deviation becomes smaller and the lines move toward 50. It is not unnatural for the RSI to stay outside the lines for a long time.

4

Situations for reading the display

The RSI is outside the lines

Indicator
The RSI's distance from 50 exceeds the recent deviation × Width.
Cross-check
The lines are not the RSI's past highest or lowest values.
Check
Check Width, the deviation type and the period.
Caution
Even with the defaults, being outside is not rare, but how often it happens changes greatly with the settings.

The upper and lower lines widen

Indicator
The deviation has become larger.
Cross-check
The center of the lines has not moved; the distance from 50 has changed.
Check
Read the upper and lower lines as equidistant from 50.
Caution
The lines can go outside 0 to 100.

The price stopped

Indicator
The RSI keeps its last value, and the deviation lines move toward 50 over time.
Cross-check
Depending on the movement just before, the lines may widen for a while.
Check
Distinguish inside/outside while the lines are moving toward 50 from the state after they overlap 50.
Caution
The RSI may also come inside along the way. Do not read the stop as a strong movement.
5

Steps for checking the display

1

Check the settings

The window name shows the period, price, AvgDist/SD and width.

2

Wait until the lines are available

The RSI and the upper and lower lines need different numbers of bars for preparation.

3

Look with 50 as the reference

Read the center of the orange lines and the position of the blue RSI separately.

4

Compare with the change example

When changing the deviation method and width, check the differences caused by both.

6

Installation and checking the package contents

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

Common period

English item name
RSI Period
Input name
InpRSIPeriod
Default
14
Allowed range
Integer 2 to 1000
Description
Used for both the RSI and the deviation. Default 14.

Applied price

English item name
Applied Price
Input name
InpPrice
Default
Close
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
The price used to calculate the RSI.

Deviation type

English item name
Deviation Type
Input name
InpDeviation
Default
Average Distance from Moving Average
Allowed range
Average Distance from Moving Average / Standard Deviation
Description
The former averages each bar's difference from its average; the latter is the population standard deviation.

Deviation multiplier

English item name
Width (x deviation)
Input name
InpWidth
Default
2
Allowed range
0.1〜10
Description
Sets the distance from 50 to the upper and lower lines. Default 2.
8

Usage specifications

After the price stops

With AvgDist the lines converge onto 50 over about 2n bars, and with SD over about n bars. In between they may widen once, and RSI may be inside them. After the lines converge onto 50, RSI will be outside them unless RSI itself stopped at 50.

Start of display

With n as the period, RSI starts from bar n+1, the AvgDist lines from bar 3n−1, and the SD lines from bar 2n. With the defaults, RSI starts from bar 15 and the lines from bar 41.

History and the latest bar

RSI uses accumulation from the beginning, so values may change with the start of the history. Values of the forming bar are updated. There are no marks or notifications.

Vertical axis

The vertical axis is automatic. RSI is 0 to 100, but the upper and lower lines are not fixed to that range.

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

Only the RSI appears

The upper and lower lines need longer preparation than the RSI. Check the number of history bars needed for the selected method.

I saw 0.00

0 is also a legitimate value. Check together whether the line is drawn and the number of history bars; do not judge whether there is a value from the header alone.

The lines overlap 50

If the deviation is 0, both upper and lower are 50. This happens not only when the price does not move but also when the RSI is constant.

The settings are not accepted

Check the ranges of the period and width, and the applied price and deviation type. When out of range, calculation and drawing do not start and the reason is output to the Experts tab.

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

AvgDist differs from the usual mean absolute deviation

For each bar j, the absolute difference between that bar's RSI and the n-bar average up to that bar is calculated. The current deviation is the average of the last n differences. It is not a method that measures all differences from one center, the average of the current window.

Handling the edges of the RSI

The averages of rises and declines are built from the initial n changes, and are then updated by carrying over the previous average. If the average of declines is 0 it is 100, and if the average of rises is also 0 it is 50. It is not claimed to always have the same values as the MT5 standard.

Name and header

Inside the parentheses are the period, price, deviation abbreviation and multiplier. The value fields are the RSI, upper line and lower line, in that order, with 2 decimal places. Check detailed inputs in the Inputs tab of the properties.

Relationship between width and inside/outside

With the same price, period and deviation, increasing Width does not increase the bars outside, and decreasing it does not reduce them. It does not mean a fixed proportion is outside across settings and symbols.