Main line: red
The calculated value of the selected base. For RSI and Stochastic, 50 is subtracted.
You choose 1 of MA Gap, RSI, CCI and Stochastic; the indicator draws the main line, a line with its sign reversed, and a signal for each base in a separate window. The reversed line carries the same information as the main line.
Choose the baseChanging the type also changes the unit and the signal calculation.
2 lines symmetric above and belowThe reversed line only changes the sign of the main line. It is not independent confirmation.
Treat gold separatelyIt is not always a simple average. With RSI and CCI, the RSI or CCI of the main line itself is calculated.
Compares the default settings and a settings change example on a screen with only this product applied.
Example shown: 1-minute chart (M1). This is an example to explain the display. The settings change example is not a recommended value. Details can be checked in the full-size view. The vertical axis of the separate window is adjusted automatically for each image, so do not compare values by on-screen height alone.
The calculated value of the selected base. For RSI and Stochastic, 50 is subtracted.
The main line multiplied by −1. It is drawn the same distance on the opposite side of the main line.
SMA for MA Gap, the RSI or CCI of the main line for RSI and CCI, and EMA for Stochastic.
A display for comparing the base indicator value and its reversed value on the same 0 axis.
EMA of close − EMA of open. It corresponds to the EMA of the body (close − open), and the unit is price. It is not MACD, which is the difference of 2 EMAs with different periods.
RSI of close − 50. 0 is the original RSI 50, +20 is 70, and −20 is 30. The signal is the RSI−50 of the main line, not a moving average of the main line.
CCI calculated on the close. The signal is the CCI of the main line. This differs from the default applied price of the standard CCI.
Close/Close, slowing 3, %K = Oscillator Period, %D = Signal Period, signal is EMA. 50 is subtracted from both the main line and the signal. This differs from the standard default settings.
First read MA Gap, RSI, etc. in the window name.
Do not directly compare heights between charts with different bases.
Check which formula calculates the gold line before reading it.
| Included file | Purpose / location |
|---|---|
| TRI_Mirror_Oscillator.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'.
This product does not require DLL permission or enabling automated trading. When removed, this product's drawings are cleared.
There are 3 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.
InpBaseInpPeriodInpSignalPeriodBecause of residual rounding in the average, CCI may show values such as ±66.67 even when there is no price movement. The signal, which recalculates the main line's CCI, may also move sharply. For Stochastic, when the window's maximum = minimum and the denominator is 0, the main line is +50. Keep these separate from the strength of price movement.
With MA Gap, RSI and CCI, the signal is displayed later than the main line. Even if only the main line is visible, the history needed for the signal may be insufficient.
The values of the 3 lines change with updates of the close and other prices. Crossings of the lines are a record of calculation results. There are no notifications, emails or push notifications.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
This product shows calculation results through plot buffers and does not place trade orders. It does not guarantee profit or future price movement.
The required history differs by base. Check the starting bar count in the technical information and the period settings.
The period and the signal period are 2–500. With invalid settings the indicator does not start, and the reason is shown in English on the Experts tab.
Price units and indicator values cannot be compared at the same height. Check the vertical axis and the type.
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.
Taking the oldest bar as bar 1, with period n and signal q, the main line / signal start at: MA Gap = 1 / q, RSI = n+1 / n+q+1, CCI = n / n+q−1, Stochastic = n+2 / n+2. Series without enough bars are hidden.
If the average gain and average loss of RSI are both 0, RSI is set to 50 (0 on the main line). CCI is calculated from the simple moving average of the close and the mean deviation × 0.015. If the deviation is 0, it is 0, but it can be non-0 when floating-point rounding remains.
Against the highest and lowest close over the last n bars, the numerators (close − lowest) and denominators (highest − lowest) of 3 bars are each summed and their ratio is taken. If the denominator is 0, the value is 100, and 50 is subtracted for display. The signal is its EMA.