MT5 indicators← Mirror Oscillator 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

Mirror Oscillator

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.

Indicator name: Mirror OscillatorMetaTrader 5Separate window

Read the main line and the reversed line around 0

MA Gap / RSI / CCI / StochasticRed: main line M / Blue: −MGold: signal calculated for each baseA cross of the main and reversed lines is the main line crossing 0
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Choose the baseChanging the type also changes the unit and the signal calculation.

2

2 lines symmetric above and belowThe reversed line only changes the sign of the main line. It is not independent confirmation.

3

Treat gold separatelyIt is not always a simple average. With RSI and CCI, the RSI or CCI of the main line itself is calculated.

The reversed line is not new informationUnit depends on the baseNo alerts
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
Base type
InpBase
MA Gap → RSI
Main line period
InpPeriod
20 → 14

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 settingsInpBase = MA Gap / InpPeriod = 20
Mirror Oscillator default settings
MA Gap 20, Signal 9. Red and blue are symmetrical above and below around 0, and gold is the simple average of the main line.
View the screen in detail at full size
Mirror Oscillator default settings (actual size)
Settings change exampleInpBase = RSI / InpPeriod = 14
Mirror Oscillator settings change example
Changed to RSI 14 and Signal 9. Red is RSI−50, and gold is the RSI−50 of the red series. The unit of the vertical axis also changes.
View the screen in detail at full size
Mirror Oscillator settings change example (actual size)

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.

2

How to read it in 30 seconds

Main line: red

The calculated value of the selected base. For RSI and Stochastic, 50 is subtracted.

Reversed line: blue

The main line multiplied by −1. It is drawn the same distance on the opposite side of the main line.

Signal: gold

SMA for MA Gap, the RSI or CCI of the main line for RSI and CCI, and EMA for Stochastic.

3

What it measures

A display for comparing the base indicator value and its reversed value on the same 0 axis.

MA Gap

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

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

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.

Stochastic

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.

4

Situations for reading the display

Red and blue cross

Indicator
Intersection of the main and reversed lines
Cross-check
Position of 0
Check
Check whether the main line crossed 0
Caution
It does not mean 2 independent conditions were met.

Values appear even though price is flat

Indicator
CCI or Stochastic is not 0
Cross-check
Is it a stretch where the close is unchanged?
Check
Keep it separate from the strength of price movement
Caution
In a flat calculation window, Stochastic is +50, and CCI can be non-0 due to rounding.
5

Steps for checking the display

1

Check the base name

First read MA Gap, RSI, etc. in the window name.

2

Check the unit and 0

Do not directly compare heights between charts with different bases.

3

Check the calculation of the 3rd line

Check which formula calculates the gold line before reading it.

6

Installation and checking the package contents

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

This product does not require DLL permission or enabling automated trading. When removed, this product's drawings are cleared.

7

Settings

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.

Base type

Name shown on screen
Base Oscillator
Input name
InpBase
Default
MA Gap
Allowed range
MA Gap / RSI / CCI / Stochastic
Description
Selects how the main line and the signal are calculated.

Main line period

Name shown on screen
Oscillator Period
Input name
InpPeriod
Default
20
Allowed range
2〜500
Description
Period of the chosen base. For Stochastic it is %K.

Signal period

Name shown on screen
Signal Period
Input name
InpSignalPeriod
Default
9
Allowed range
2〜500
Description
Period of the signal made from the main line. For Stochastic it is %D.
8

Usage specifications

Notes on flat sections

Because 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.

Start of the main line and the signal

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.

Forming bar

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.

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

This product shows calculation results through plot buffers and does not place trade orders. It does not guarantee profit or future price movement.

9

Troubleshooting and usage notes

Only the gold line does not appear

The required history differs by base. Check the starting bar count in the technical information and the period settings.

Nothing is shown after changing 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.

The range of movement differs when the base is changed

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.

10

Technical information and specification details

Number of bars before display starts

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.

Notes on RSI and CCI

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.

Notes on Stochastic

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.