Center
Always 50, not the RSI average.
Shows the recent dispersion of the RSI as the width between 2 lines, upper and lower, centered on 50.
Distinguish blue and orangeBlue is the RSI; orange is the deviation lines centered on 50.
Check the deviation typeThere is a method that averages each bar's difference from its average, and a population standard deviation method.
Do not treat the outside as specialThe lines are not the range of past RSI. Going outside is also just one calculation result.
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.
Always 50, not the RSI average.
Determined by the recent RSI dispersion × Width.
The frequency changes with the settings. Outside the lines is not treated as a special decision level.
The same period is used for the RSI and the deviation; only the deviation calculation method can be chosen.
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.
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.
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 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.
The window name shows the period, price, AvgDist/SD and width.
The RSI and the upper and lower lines need different numbers of bars for preparation.
Read the center of the orange lines and the position of the blue RSI separately.
When changing the deviation method and width, check the differences caused by both.
| Included file | Purpose / location |
|---|---|
| TRI_RSI_Centre_Deviation_Lines.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 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.
InpRSIPeriodInpPriceInpDeviationInpWidthWith 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.
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.
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.
The vertical axis is automatic. RSI is 0 to 100, but the upper and lower lines are not fixed to that range.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.
The upper and lower lines need longer preparation than the RSI. Check the number of history bars needed for the selected method.
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.
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.
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.
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.
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.
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.
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.