Blue main line
Multiplier × (Fast MA − Slow MA).
Shows the difference between 2 averages whose method and price are selected separately, and the changes in that difference.
Blue main lineMultiplier × (Fast MA − Slow MA).
Additional linesShows the lines you select from the average, the sign inversion, the 1-bar difference and the 2nd-order difference.
The reference is 0The sign of the main line represents which of the 2 averages is larger.
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 example of changed settings is not a recommended value. Details can be checked in the full-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 display range.
Multiplier × (Fast MA − Slow MA).
Shows the lines you select from the average, the sign inversion, the 1-bar difference and the 2nd-order difference.
The sign of the main line represents which of the 2 averages is larger.
Shows the difference between 2 averages whose method and price are selected separately, and the changes in that difference.
The default is the difference between an SMA 4 of the close and an SMA 6 of the open. It is not a product that measures only the period difference on the same price.
Mirror is the sign inversion of the main line, Slope is the 1-bar difference of the main line, and Acceleration is the 1-bar difference of that difference. They are not speed or acceleration divided by time.
Applies an average of the specified method to the main line. Although it is named Signal, its crossings and line direction are not provided as trading signals.
First, check how to read it with the default settings.
On the Inputs tab, check the price, period, method and display selections.
Change 1 item at a time, and also check the scale of the values and the start position.
| Included file | Purpose / location |
|---|---|
| TRI_Price_MA_Divergence_Plus.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. When comparing different settings, using separate charts makes checking easier.
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 13 inputs. Change them on the Inputs tab of the properties. The English item names defined in the source are shown together with the input names.
InpFastPeriodInpFastMethodInpFastPriceInpSlowPeriodInpSlowMethodInpSlowPriceInpMultiplierInpSignalPeriodInpSignalMethodInpShowMirrorInpShowSlopeInpShowAccelerationInpLevelPointsThe main line starts once both MAs are available. Slope starts 1 bar later, and Acceleration 2 bars later. Signal averages from the main line's start position.
Levels are ±points × the symbol's point. They do not scale with Multiplier. With 0, there is only the 0 level.
The latest bar is included in the calculation. Displayed values and colors change with price updates. It calculates on the chart timeframe and has no function to specify a higher timeframe.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
Check the number of history bars, the input ranges and the display selections. If an input is out of range, loading is refused and the reason is written to the log.
The images shown can be checked by opening the full-size view. The scale changes with the settings and the display range.
This manual explains functions and operations. Colors and names such as Stop and Signal do not mean instructions to execute trades or to make trading decisions.
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.
D = multiplier × (F − S), Mirror = −D, Slope = D(t) − D(t−1), Acceleration = D(t) − 2D(t−1) + D(t−2).
Turning off the display of optional lines does not change the main line calculation. Check the items shown on screen on the Inputs tab.
Close = close, Open = open, High = high, Low = low, Median = (high + low) / 2, Typical = (high + low + close) / 3, Weighted = (high + low + close × 2) / 4. Simple is a simple average, Exponential is exponential smoothing, Smoothed is a smoothed moving average, and Linear Weighted is an average that gives newer bars more weight.
The descriptions of inputs and calculations are based on the implementation. The actual display in the Data Window and the input screen, and how it looks during long-running operation on actual symbols or with long histories, are not yet verified.