Line
An RSI built from smoothed averages of the close's upward and downward changes. The latest value and color change while the bar is forming.
Shows in one window the RSI line calculated from the close and dots on closed bars that met the conditions for band squeeze and release. Read the line color, the dot position and the dot conditions separately.
Read the RSI lineThe value is 0 to 100. The color is determined by the set upper and lower levels and by the previous color.
Separate the gold, light blue and magenta dotsGold is a squeeze. Light blue and magenta are records based on RSI 50 and the band conditions.
Separate the right edge from closed barsOn the forming bar, the line changes. A dot is placed based on the conditions after that bar closes.
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.
An RSI built from smoothed averages of the close's upward and downward changes. The latest value and color change while the bar is forming.
A gold dot is placed when both the upper and lower bands fit inside the channel from 1 bar earlier.
Dots that start from the preceding squeeze and the RSI and band conditions. Because there are also continuation conditions, they are not placed only right after a squeeze.
RSI is a line of values; the dots are a record of conditions comparing the price bands with the channel. It does not draw price targets.
Splits close-to-close changes into upward and downward ranges and converts the ratio of their averages, smoothed over the period, to 0 to 100. If the average down is 0, the value is 100; if the up is also 0, it is 50. This manual explains this product's calculation and does not assume complete equality with the MT5 standard indicator.
Compares the band of close average ± deviation multiplier × standard deviation with the channel of EMA ± coefficient × simple average of the true range from 1 bar earlier. If both upper and lower are strictly inside, it is a squeeze. Equal values are not included. Not only the width but also a shift of the center matters.
Starts when there was a squeeze within the previous 2 bars, RSI is above 50, and the lower band is below the lower line of the channel from 1 bar earlier. It is not a dot that shows the upper band moving out upward.
Starts when there was a squeeze within the previous 2 bars, RSI is below 50, and the upper band is above the upper line of the channel from 1 bar earlier. When RSI is exactly 50, neither release condition is met.
After a light blue dot, the dots continue if the lower band falls further and RSI is above 50. For magenta, they continue if the upper band rises further and RSI is below 50. However, while there was a squeeze within the previous 2 bars, they continue if the start condition holds, even if the band does not move further.
Continuation dots can also be placed on bars far from the squeeze or after the band has returned inside the channel. If the start condition of the opposite side holds, the dots switch to the opposite side partway through.
Look at the RSI line, the gold dots, then the light blue and magenta dots, in that order. The vertical axis is 0 to 100.
Check the settings table so as not to confuse the period, the band and channel widths, the line color levels and the dot placement positions.
Read the changes in the line at the right edge and the dots on the closed bars to its left separately.
Setting Alert on Release Start to true notifies you of newly starting dots. The default is false. It is not a setting that notifies you of past dots all at once.
| Included file | Purpose / location |
|---|---|
| TRI_RSI_Squeeze_Release.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 11 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpRSIPeriodInpBandsPeriodInpBandsDeviationInpChannelEMAPeriodInpChannelATRPeriodInpChannelFactorInpLineUpLevelInpLineDownLevelInpUpperDotHeightInpLowerDotHeightInpAlertExpansionBelow the lower level it is red, and above the upper level it is green. Between them and at equal values, the previous color is kept. Exactly 50 in the defaults also keeps the previous color. The first value is red if below the lower level, otherwise green.
When a new light blue or magenta point starts on a closed bar, it sends 1 notification on the first price movement of the next bar. The calculation right after attaching does not notify past points. Even if several bars close at once, only the latest closed bar is evaluated.
The notification text contains release began with RSI above 50, or below 50, followed by the symbol, the timeframe and the start date and time of that closed bar. The same content also remains in the Experts tab. The product does not call email or push. Sound depends on the terminal settings.
RSI and EMA carry over past states, so if the start of the history changes, values, colors and points on the older side may change.
The 6 numbers after the name are, in order, RSI period, band period, deviation multiplier, EMA period, range period and coefficient. The value that follows is only the RSI with 2 decimal places; point height values are not shown. The deviation multiplier and coefficient are rounded to 2 decimal places in the name, but the calculation uses the input values as entered.
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 line requires RSI period + 1 bars. Dots have a separate number of warm-up bars and are not placed unless the conditions are met. Even while the line is still warming up, only squeeze dots may appear. See the technical information for the detailed numbers of bars.
0 can be displayed even on bars without a line. On the other hand, an RSI of 0 is also a valid value, so check whether the line is present and the required number of bars. Do not decide from a 0 in the heading alone that it is a calculated result.
RSI values of 0/100 overlap the frame. Setting the dot height to 0/100 or 50 makes the dots overlap the frame or the gold dots. A level line can also pass over the dots.
If the upper color level is 100, RSI cannot rise above 100 after turning red, so the line does not return to green. If the lower color level is 0, the line does not turn red. Check the settings and the comparisons, which do not include equal values.
Check the input ranges and the upper/lower relationships, and read the English diagnostic on the Experts tab. Even if several settings are out of range, 1 line of diagnostic appears for the first matching group.
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.
The band is the simple average of the close ± deviation multiplier × population standard deviation. The channel is the close EMA ± coefficient × simple average of the true range. The true range is the range that also covers the distance from the previous close to the high and low. The current band is compared with the channel from 1 bar earlier.
Counting the first bar on the old side as bar 1, the line starts from bar RSI Period + 1. With f = max(Bands Period − 1, Channel ATR Period, Channel EMA Period), the conditions are judged for squeeze dots from bar f + 1 and for release dots from bar max(f + 2, RSI Period + 1). For a dot to be visible, the bar must close and the condition must also hold.
If the average down is 0 and there is some up, the value is 100; if both are 0, it is 50. When RSI is exactly 50, release dots neither start nor continue.
The dot heights and level lines are placement scales. A dot does not mean RSI reached that height. The line color settings are also independent of the dot decisions.