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

Oscillator Divergence Marks

Compares oscillator peaks and troughs, and the price highs and lows of those bars, with earlier peaks and troughs. Regular and hidden divergences are recorded as marks in the separate window at the bar where the peak was confirmed.

Mismatch between price and indicator peaks and troughsMetaTrader 5Separate windowSite edition, no account authentication

Mismatch between price and indicator peaks and troughs

STEP 1Indicator peaks and troughs
STEP 2Compare with past peaks and price
STEP 3Mark on the confirming bar
1

Mark timingThe arrow is on the confirming bar, not the peak bar. Its height is the indicator value at the peak, so it can be away from the indicator line at that time.

2

4 color categoriesRegular bearish is Crimson, hidden bearish is DarkOrange, regular bullish is SeaGreen, and hidden bullish is MediumTurquoise.

3

Provisional while formingMarks change until the latest confirming bar closes. There is no input to show closed bars only.

The figure explains the processDisplay only, no order functionsCreated by Trilogy
1

Checking the display

Settings change example: Peak Rule: Zero-Cross Waves → Recent Local Peak

Everything not listed stays at the default. On a PC the order is 'Default, Change example' from left, and on a smartphone from top. The change example is not a set of recommended values.

Default settings
Oscillator Divergence Marks default screen
Defaults: Marks in 4 colors on Zero-Cross Waves confirming bars. The height of a mark is the peak value, not necessarily the tip of the current bar.
Settings change example
Oscillator Divergence Marks change example
Changed to Recent Local Peak. The color and position of some of the visible marks change. No comparison line is drawn on the price side.

The published images are display examples from before the brand display was added. The product has display settings for the brand text and QR code, but the screen with the brand display has not yet been verified. The timeframe shown in the image does not indicate how often this appears on that timeframe in practice. Marks at the edges may be cut off outside the screen.

Check all inputs of the change example

Oscillator = OsMA、Fast EMA (OsMA, MACD) = 12、Slow EMA (OsMA, MACD) = 26、Signal SMA (OsMA) = 9、RSI Period = 14、Stochastic %K Period = 5、Stochastic Slowing = 3、Peak Rule = Recent Local Peak、Left Bars (Zero-Cross Waves) = 2、Right Bars (Zero-Cross Waves) = 1、Minimum Peak Size (Zero-Cross Waves) = 0、Show Hidden Divergence = true。

The 4 brand display items are not included in the capture.

2

30-second guide

Mark timing

The arrow is on the confirming bar, not the peak bar. Its height is the indicator value at the peak, so it can be away from the indicator line at that time.

4 color categories

Regular bearish is Crimson, hidden bearish is DarkOrange, regular bullish is SeaGreen, and hidden bullish is MediumTurquoise.

Provisional while forming

Marks change until the latest confirming bar closes. There is no input to show closed bars only.

3

What it measures

Compares oscillator peaks and troughs, and the price highs and lows of those bars, with earlier peaks and troughs. Regular and hidden divergences are recorded as marks in the separate window at the bar where the peak was confirmed.

Regular / hidden

In the high comparison, a falling indicator peak with a rising price high is regular bearish, and the reverse is hidden bearish. In the low comparison, a rising indicator trough with a falling price low is regular bullish, and the reverse is hidden bullish. No mark is placed when they are equal.

Zero-Cross Waves

Detects peaks and troughs that are strictly higher or lower than all of the specified number of bars on the left and right. A candidate that exceeds ±Size and is more extreme than anything so far within the wave is compared with the extreme of the previous wave. For equal extremes, the newer candidate is kept.

Recent Local Peak

Confirms peaks and troughs with 1 bar on the right and 1 bar on the left. If there is a more extreme value before the opposite sign is reached on the older side, the candidate is rejected. It is compared with the first local peak or trough that is at least 5 bars older. The Left, Right and Size inputs are not used.

Oscillator

OsMA is the close MACD − its SMA, and MACD is the difference of the close EMAs. RSI and Stochastic have 50 subtracted to center them on 0. Stochastic uses the high/low method, and a flat denominator gives 50 (0 after centering).

4

Reading scenarios

When you want to classify the display

The arrow is on the confirming bar, not the peak bar. Its height is the indicator value at the peak, so it can be away from the indicator line at that time.

When you want to switch conditions and compare

Use the same symbol, timeframe and history, and first change only one input. Use separate charts for comparison, and check the Mode and vertical axis of each screen.

The display differs from what you expected

If the arrows are matched to the price peak bars, the times are offset. Take the number of confirming bars on the right into account, and read the peak bar and the mark bar separately.

This display alone does not decide whether to trade. The colors, lines and arrows represent the calculation conditions in this manual; they are not a forecast of future price movement or an instruction to buy or sell.

5

Check procedure

1

Start from the defaults

At first, do not change the inputs; cross-check the colors and display location against the default screen above.

2

Distinguish the timing of bars

The value of the latest forming bar changes. There is no Closed Bars Only input. Read it separately from bars after they close.

3

Change only the target condition

Peak Rule: Zero-Cross Waves → Recent Local Peak. The comparison images may include more than one change.

4

Check values and units

The angle of lines and visible differences change with the screen zoom. Check the settings together with the price scale and the vertical axis of the separate window.

6

Installation and package contents

ZIP contentsLocation / role
TRI_Oscillator_Divergence_Marks.ex5MQL5/Indicators in MT5. Only 1 item: the indicator itself.

The manual opens on the product's own page on the site. The ZIP does not include the manual or source code. It is for MT5 only and cannot be used in MT4. The site edition has no account authentication or license file settings.

1

Extract the ZIP

Prepare the extracted EX5. Do not place it while it is still compressed.

2

To the MT5 data folder

Place the EX5 in MQL5/Indicators via 'File → Open Data Folder'.

3

Apply to a chart

Refresh the Navigator or restart the terminal, and apply it to the target chart. DLL permission is not required.

4

Change / remove

Change the settings or remove it from the chart's 'Indicators List'. Enabling automated trading is not required.

7

Settings

There are 16 items in total: 12 product-specific items and 4 brand display items. English names are based on the input definitions. Enter numbers in half-width characters. Keep inputs that the mode does not use within range as well.

Oscillator

English item name
Oscillator
Input name
InpOsc
Default
OsMA
Options / range
OsMA / MACD / RSI (minus 50) / Stochastic %K (minus 50)
Meaning and notes
The default is OsMA bars. The others are lines.

Fast EMA

English item name
Fast EMA (OsMA, MACD)
Input name
InpFast
Default
12
Options / range
1 or more, less than Slow
Meaning and notes
Used for OsMA and MACD.

Slow EMA

English item name
Slow EMA (OsMA, MACD)
Input name
InpSlow
Default
26
Options / range
Greater than Fast, up to 1000 bars
Meaning and notes
Used for OsMA and MACD.

Signal SMA

English item name
Signal SMA (OsMA)
Input name
InpSignal
Default
9
Options / range
1–1000 bars
Meaning and notes
Used only for OsMA.

RSI period

English item name
RSI Period
Input name
InpRsiPeriod
Default
14
Options / range
2–1000 bars
Meaning and notes
Used only for RSI.

Stochastic period

English item name
Stochastic %K Period
Input name
InpStochK
Default
5
Options / range
1–1000 bars
Meaning and notes
Window for the high and low.

Stochastic smoothing

English item name
Stochastic Slowing
Input name
InpStochSlowing
Default
3
Options / range
1–1000 bars
Meaning and notes
Length over which the numerator and the denominator are summed.

Peak rule

English item name
Peak Rule
Input name
InpRule
Default
Zero-Cross Waves
Options / range
Zero-Cross Waves / Recent Local Peak
Meaning and notes
Changes the number of confirming bars on the right and how the comparison target is chosen.

Left bars

English item name
Left Bars (Zero-Cross Waves)
Input name
InpLeft
Default
2
Options / range
1–50 bars
Meaning and notes
Effective only for the wave rule.

Right bars

English item name
Right Bars (Zero-Cross Waves)
Input name
InpRight
Default
1
Options / range
1–50 bars
Meaning and notes
Confirmation wait for the wave rule. Recent Local Peak always uses 1 bar on the right.

Minimum peak value

English item name
Minimum Peak Size (Zero-Cross Waves)
Input name
InpSensitivity
Default
0.0
Options / range
0 or more, less than 1000000
Meaning and notes
Wave rule only. Applied symmetrically to positive and negative values, in the indicator's value units, not points.

Hidden marks

English item name
Show Hidden Divergence
Input name
InpShowHidden
Default
true
Options / range
true / false
Meaning and notes
With false, the 2 hidden colors are skipped.

Brand / QR display

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Options / range
true / false
Meaning and notes
This is a display-only setting. It does not change calculation results. If another product on the same chart has the display enabled, the shared display remains.

Brand corner

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Options / range
Top left / Bottom left / Bottom right / Top right
Meaning and notes
The chart corner where the brand text and QR code are placed.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Options / range
Corrected to 0–4000 px
Meaning and notes
Horizontal distance from the selected corner. Negative values are corrected to 0, and values above 4000 to 4000.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Options / range
Corrected to 0–4000 px
Meaning and notes
Vertical distance from the selected corner. If the screen is narrow, adjust the position or the value.
8

Usage specifications

Forming bar

The value of the latest forming bar changes. There is no Closed Bars Only input. Read it separately from bars after they close.

History and recalculation

Settings changes, additions to or corrections of the history, and reloading redo the calculation. This is not a guarantee that "closed bars never change under any circumstances".

Brand display

A common display is shared among products of the same medium on the same chart. If several are loaded, the settings of the registration that enabled the display first are used, so changing one may not change the appearance.

For on-screen display only

This product does not place orders or trade automatically. It does not guarantee accuracy as a trading signal or profits.

9

Troubleshooting

Points that are easy to get confused about in this product

If the arrows are matched to the price peak bars, the times are offset. Take the number of confirming bars on the right into account, and read the peak bar and the mark bar separately.

No display

Check whether the required number of history bars is available, whether the forming bar is hidden, and the input ranges and mode. Also check the terminal's Experts tab for input errors.

The display does not update

Check the price feed and the connection status. Changing settings for an unused mode does not change the display.

Looks different from the image

The appearance changes with the symbol, history, timeframe, inputs and scale. Even when compared with the full-size image, the marks are not necessarily at the same positions or of the same count.

10

Specification details

Specification note 1

Differences in the initial values of EMA and RSI or in the history can change the zero crossings and the peaks adopted, and differences may remain in later marks. It does not reproduce all signals of other indicators.

Specification note 2

Read only marks whose confirming bar has closed as final. There are no notifications, no object lines connecting price and indicator, and no trade orders.

Specification note 3

0.000000 may appear for the 4 mark series in the window heading. The 0 is not a value of divergence strength.

Verified scope

The published images and values were checked with the product before the brand display was added. The screen display of the product with the brand display has not yet been verified. Whether the values match other indicators with the same name, the Data Window display, and behavior with long histories or with symbols that have different price digits have not been verified.

Products with a price selection

Median = (high + low)/2, Typical = (high + low + close)/3, Weighted = (high + low + close×2)/4. The unit of periods is the number of chart bars.