MT5 indicators← Price MA Divergence Plus 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

Price MA Divergence Plus

Shows the difference between 2 averages whose method and price are selected separately, and the changes in that difference.

Indicator name: Price MA Divergence PlusMetaTrader 5Separate window

Read input, calculation and display separately

1Blue main line2Additional lines3The reference is 0
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Blue main lineMultiplier × (Fast MA − Slow MA).

2

Additional linesShows the lines you select from the average, the sign inversion, the 1-bar difference and the 2nd-order difference.

3

The reference is 0The sign of the main line represents which of the 2 averages is larger.

Calculated values in a separate windowCompare the default and the change exampleDisplay only
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
Fast period / Fast MA Period
InpFastPeriod
4 → 8
Fast method / Fast MA Method
InpFastMethod
Simple → Linear Weighted
Fast price / Fast MA Price
InpFastPrice
Close → Typical (H+L+C)/3
Slow period / Slow MA Period
InpSlowPeriod
6 → 21
Slow method / Slow MA Method
InpSlowMethod
Simple → Smoothed
Slow price / Slow MA Price
InpSlowPrice
Open → Weighted (H+L+C+C)/4
Difference multiplier / Multiplier
InpMultiplier
1 → 1000
Signal period / Signal Period (0 = off)
InpSignalPeriod
0 → 5
Signal method / Signal MA Method
InpSignalMethod
Simple → Exponential
Show the mirror line / Show Mirror Line
InpShowMirror
false → true
Show the 1-bar difference / Show Slope
InpShowSlope
false → true
Show the 2nd-order difference / Show Acceleration
InpShowAcceleration
false → true

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 settingsInpFastPeriod = 4; InpFastMethod = Simple; InpFastPrice = Close; InpSlowPeriod = 6; InpSlowMethod = Simple; InpSlowPrice = Open; InpMultiplier = 1; InpSignalPeriod = 0; InpSignalMethod = Simple; InpShowMirror = false; InpShowSlope = false; InpShowAcceleration = false
Price MA Divergence Plus default settings
Fast = SMA 4, Close; Slow = SMA 6, Open; Multiplier = 1. Only the main line is shown.
View the screen in detail at full size
Price MA Divergence Plus default settings (full size)
Example of changed settingsInpFastPeriod = 8; InpFastMethod = Linear Weighted; InpFastPrice = Typical (H+L+C)/3; InpSlowPeriod = 21; InpSlowMethod = Smoothed; InpSlowPrice = Weighted (H+L+C+C)/4; InpMultiplier = 1000; InpSignalPeriod = 5; InpSignalMethod = Exponential; InpShowMirror = true; InpShowSlope = true; InpShowAcceleration = true
Price MA Divergence Plus example of changed settings
Fast = LWMA 8, Typical; Slow = SMMA 21, Weighted; Multiplier = 1000; Signal = EMA 5. Mirror, Slope and Acceleration are also shown.
View the screen in detail at full size
Price MA Divergence Plus example of changed settings (full size)

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.

2

How to read it in 30 seconds

Blue main line

Multiplier × (Fast MA − Slow MA).

Additional lines

Shows the lines you select from the average, the sign inversion, the 1-bar difference and the 2nd-order difference.

The reference is 0

The sign of the main line represents which of the 2 averages is larger.

3

What it measures

Shows the difference between 2 averages whose method and price are selected separately, and the changes in that difference.

Separate the 2 prices

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.

Additional displays

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.

Signal

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.

4

Situations for reading the display

Align the calculation conditions

Indicator
Blue main line
Cross-check
Price, period and method inputs
Check
Check the change before and after under the same conditions.
Caution
Colors, levels and crossings are not presented as trading signals.

Compare by changing settings

Indicator
Additional lines
Cross-check
List of changes and vertical axis units
Check
Read the default and the changed example separately to see what changed.
Caution
The changed example shown is not a recommended setting.
5

Steps for checking the display

1

Start from the default

First, check how to read it with the default settings.

2

Check the display conditions

On the Inputs tab, check the price, period, method and display selections.

3

Compare with conditions separated

Change 1 item at a time, and also check the scale of the values and the start position.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Price_MA_Divergence_Plus.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. When comparing different settings, using separate charts makes checking easier.

4

Check the settings and display

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.

7

Settings

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.

Fast period

English item name
Fast MA Period
Input name
InpFastPeriod
Default
4
Allowed range
1 to 1000
Description
Number of bars for the fast-side average. Which is larger relative to Slow is not enforced.

Fast method

English item name
Fast MA Method
Input name
InpFastMethod
Default
Simple
Allowed range
4 methods
Description
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.

Fast price

English item name
Fast MA Price
Input name
InpFastPrice
Default
Close
Allowed range
7 types
Description
Close = close, Open = open, High = high, Low = low, Median = (high + low)/2, Typical = (high + low + close)/3, Weighted = (high + low + close×2)/4.

Slow period

English item name
Slow MA Period
Input name
InpSlowPeriod
Default
6
Allowed range
1 to 1000
Description
Number of bars for the slow-side average. Which is larger relative to Fast is not enforced.

Slow method

English item name
Slow MA Method
Input name
InpSlowMethod
Default
Simple
Allowed range
4 methods
Description
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.

Slow price

English item name
Slow MA Price
Input name
InpSlowPrice
Default
Open
Allowed range
7 types
Description
Close = close, Open = open, High = high, Low = low, Median = (high + low)/2, Typical = (high + low + close)/3, Weighted = (high + low + close×2)/4.

Difference multiplier

English item name
Multiplier
Input name
InpMultiplier
Default
1
Allowed range
0.0001 to 1000000
Description
Multiplies the average difference. The additional lines are also calculated from the values after the multiplier is applied.

Signal period

English item name
Signal Period (0 = off)
Input name
InpSignalPeriod
Default
0
Allowed range
0 to 1000
Description
0 hides it. The number of bars used to average the main line.

Signal method

English item name
Signal MA Method
Input name
InpSignalMethod
Default
Simple
Allowed range
4 methods
Description
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.

Show the mirror line

English item name
Show Mirror Line
Input name
InpShowMirror
Default
false
Allowed range
true / false
Description
A line with the sign of the main line reversed.

Show the 1-bar difference

English item name
Show Slope
Input name
InpShowSlope
Default
false
Allowed range
true / false
Description
The difference between the main line and the main line on the previous bar.

Show the 2nd-order difference

English item name
Show Acceleration
Input name
InpShowAcceleration
Default
false
Allowed range
true / false
Description
The difference between successive 1-bar differences of the main line.

Positive and negative levels

English item name
Levels +/- (points, 0 = zero line only)
Input name
InpLevelPoints
Default
0
Allowed range
0 to 100000 points
Description
0 gives the 0 level only. The value is in price points and is not linked to the main line multiplier.
8

Usage specifications

Start of display

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

Custom levels

Levels are ±points × the symbol's point. They do not scale with Multiplier. With 0, there is only the 0 level.

Forming bar

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.

For on-screen display only

The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.

9

Troubleshooting and usage notes

Nothing is displayed

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 display is thin or hard to see

The images shown can be checked by opening the full-size view. The scale changes with the settings and the display range.

How to read names and colors

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.

10

Technical information and specification details

Formulas

D = multiplier × (F − S), Mirror = −D, Slope = D(t) − D(t−1), Acceleration = D(t) − 2D(t−1) + D(t−2).

Lines whose display is turned off

Turning off the display of optional lines does not change the main line calculation. Check the items shown on screen on the Inputs tab.

Definitions of prices and averages

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.

Scope of verification

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.