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
Extended RSI Bands
RSI, a repeated average and deviation bands in 1 window. An additional average line and marks on closed bars can be selected in the settings.
The band center and the RSI average line are separate calculations
Schematic diagram of how to read it. This is not an actual terminal screen.
1
5 lines by defaultShows the orange RSI, the blue average line and 3 gray bands.
2
Distinguish the band sourceThe bands and the return ◆ are calculated for the series selected in Bands Source.
3
Additional functions are disabled initiallyThe 2nd average line and the marks appear only when their settings are enabled.
Orange: RSIBlue: 1st average lineGray dotted lines: bands
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
RSI period / RSI Period InpRSIPeriod8 → 10
1st average period / MA Period InpMAPeriod8 → 4
Band period / Bands Period InpBandsPeriod20 → 24
Band width / Bands Width (x deviation) InpBandsWidth2 → 1.5
2nd average period / Second MA Period (0 = off) InpMA2Period0 → 12
2nd average source / Second MA Source InpMA2SourceRSI Average → RSI
Average line cross dots / Show Average Cross Marks (needs Second MA) InpCrossMarksfalse → true
◆ on bars that returned into the bands / Show Back Inside Band Marks InpBackMarksfalse → 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.
With the default settings, average line 2 and the marks do not appear. The gray band is separate from the horizontal 30 and 70 level lines.View the screen in detail at full size
Example with RSI Period 10, MA Period 4, Bands Period 24, Bands Width 1.5 and Second MA Period 12. Orange is the RSI, blue is the average line and purple is the 2nd average line.View the screen in detail at 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
First identify the lines
The thick blue line is the RSI average; orange is the RSI itself.
Distinguish the center band
The band center is the simple average of the source. It is not the same as the blue average line.
Latest bar and marks
The lines change while the bar is forming. Dots and ◆ are placed only on closed bars.
3
What it measures
The 1st average line, the bands and the 2nd average line each have their own source and period.
RSI and the 1st average
Calculates the RSI from the selected price and averages it with SMA, EMA, SMMA or LWMA. The same method and period can be stacked up to 3 times. The repetition applies only to the 1st line.
Band center and width
The center is the simple average of the last Bands Period bars of the selected series, and the population standard deviation × Bands Width is added and subtracted above and below. MA Period and MA Method do not directly set the center band.
2nd average line
Averages the RSI or the 1st average line with a different method and period. Second MA Shift displays past values moved to the right. It does not use future values and does not extend into the empty space on the right.
Display range
The RSI and the average lines are in the 0 to 100 range, but the bands can go outside it. The vertical axis is automatic. The 30 and 70 horizontal lines are fixed scale marks.
4
Situations for reading the display
Reading the cross dots
Indicator
A light blue dot records the 1st line crossing above the 2nd. A magenta dot records it crossing below.
Cross-check
The comparison is not of the RSI itself but of the 1st average line and the 2nd average line after shifting.
Check
Set Second MA Period to 1 or more and Show Average Cross Marks to true.
Caution
A bar with equal values keeps the previous above/below relationship. Dots are on closed bars only.
Reading the band return ◆
Indicator
A gold ◆ records that the series, which was outside one of the bands on the previous bar, has returned inside both bands on the current bar.
Cross-check
It is placed at the height of the lower band when returning from below, and at the upper band when returning from above.
Check
Check Bands Source and Show Back Inside Band Marks.
Caution
A bar equal to a band, or a bar that has gone through to the outside of the opposite side, is not inside.
Viewing the shifted average
Indicator
The 2nd line shows past calculated values on the bars up to the present.
Cross-check
The calculated values for the latest bars, as many as the shift, are not shown yet and do not appear to the right of the latest bar.
Check
Check the shift in Second MA Shift.
Caution
Even when the lines look overlapping, cross dots can continue because of small differences.
5
Steps for checking the display
1
Check the lines with the defaults
Tell apart the RSI, the average and the 3 bands.
2
Choose the source
Check what the bands and the 2nd average each use as their source.
3
Enable additional functions
Set the 2nd period to 1 or more, then enable the cross dots. The band return mark is an independent setting.
4
Align settings and history
When comparing, align the price, periods, methods, number of repetitions and band source.
6
Installation and checking the package contents
Included file
Purpose / location
TRI_Extended_RSI_Bands.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.
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 14 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
RSI period
English item name
RSI Period
Input name
InpRSIPeriod
Default
8
Allowed range
Integer 2 to 500
Description
The period used to average price changes.
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. It does not appear in the window name, so check it in the Inputs tab.
1st average period
English item name
MA Period
Input name
InpMAPeriod
Default
8
Allowed range
Integer 1 to 500
Description
The period of the average applied to the RSI. When repeated, each stage uses the same value.
1st average method
English item name
MA Method
Input name
InpMAMethod
Default
SMA
Allowed range
SMA / EMA / SMMA / LWMA
Description
Choose from simple, exponential, smoothed or linear weighted.
Band period
English item name
Bands Period
Input name
InpBandsPeriod
Default
20
Allowed range
Integer 2 to 500
Description
The number of bars used for the band center and the population standard deviation.
Band width
English item name
Bands Width (x deviation)
Input name
InpBandsWidth
Default
2
Allowed range
0.1〜10
Description
The multiplier applied to the population standard deviation.
Repetition of the 1st average
English item name
MA Passes
Input name
InpMAPasses
Default
1
Allowed range
Integer 1 to 3
Description
Applies the same average again to the output of the previous stage.
Band source
English item name
Bands Source
Input name
InpBandsSource
Default
RSI
Allowed range
RSI / RSI Average
Description
With RSI Average, both the bands and the return ◆ use the 1st average line as their source.
2nd average period
English item name
Second MA Period (0 = off)
Input name
InpMA2Period
Default
0
Allowed range
Integer 0 to 500
Description
0 disables it. 1 or more shows the purple line.
2nd average method
English item name
Second MA Method
Input name
InpMA2Method
Default
SMA
Allowed range
SMA / EMA / SMMA / LWMA
Description
The method for the 2nd line. It is not used with period 0, but its value is still checked.
2nd average source
English item name
Second MA Source
Input name
InpMA2Source
Default
RSI Average
Allowed range
RSI / RSI Average
Description
Specifies which one to average.
2nd shift
English item name
Second MA Shift
Input name
InpMA2Shift
Default
0
Allowed range
Integer 0 to 100
Description
Displays past values at a position moved this many bars to the right.
Average line cross dots
English item name
Show Average Cross Marks (needs Second MA)
Input name
InpCrossMarks
Default
false
Allowed range
false / true
Description
Works only when the 2nd period is 1 or more. Default false.
◆ on bars that returned into the bands
English item name
Show Back Inside Band Marks
Input name
InpBackMarks
Default
false
Allowed range
false / true
Description
Records closed bars where the band source returned strictly inside. Default false.
8
Usage specifications
Mark positions
An upward crossing point is at the height of the value of line 1, and a downward crossing point at the height of the value of line 2. The return ◆ is at the height of the band on the side it returned to, and is the same gold color for both up and down.
When the band target is the average line
Even if the RSI itself enters or leaves the band, that alone does not add a ◆. The entries and exits of the target average line are calculated.
History and the forming bar
RSI and recursive averages are affected by the start of the history. The line on the latest bar is updated, but marks are recorded after the bar closes. There are no notification or sound functions. Even if the price moves sideways, RSI does not necessarily return to 50 immediately.
Unused inputs
Even if line 2 is disabled, the allowed ranges of its method, target and shift are checked. Being unused does not make out-of-range values acceptable.
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
The lines do not line up
By default, the RSI starts from bar 9, the average line from bar 16 and the bands from bar 28. The number of bars needed for preparation changes with the settings.
No marks appear
The marks are disabled by default. The cross dots also need the 2nd average. Neither dots nor ◆ are placed on the forming bar.
I want to check settings not in the name
Check Applied Price, Bands Source, Second MA Source, Second MA Shift and the 2 mark settings in the Inputs tab.
The header shows 0
Do not tell a bar without a value from a legitimate 0 by the header alone; check the number of bars and the actual lines. With inputs out of range, calculation and drawing do not start.
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
How the drawing start is found
Take the first bar as index 0. The RSI starts at n. The average start function T(s,m) is s for EMA and s+m−1 otherwise. For the 1st line, T is applied as many times as the repetition count. The bands start at the source start + Bands Period−1. The 2nd line applies T to the source start and adds the shift. To read them as ordinals, add 1 to each value.
Bars that receive marks
Cross dots apply from the bar after both averages are available, and return ◆ from the bar after the bands are available. When equal at a cross, the previous state is kept. A return means the previous bar was strictly outside and the current bar is strictly inside both bands.
Definition of RSI
The RSI line is calculated with the same definition as the MT5 built-in RSI. If the average of declines is 0 it is 100, and if the average of rises is also 0 it is 50. The average line and bands are not claimed to have the same values as the built-in ones.
Reading the header
SMA 8x3 means the 1st line is an SMA with period 8 stacked 3 times, off means no 2nd line, and 20 x 2 is the band period and width. The header values are the RSI, the average and the 3 bands, followed by the 2nd line's value if it is used. The mark values are not shown. The width display is rounded to 6 significant digits, so check details in the Inputs tab.