MT5 indicators← DMI ADXR 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

DMI ADXR

Adds ADXR to ADX and ±DI, and lets you check the smoothing method and the DI and ADX periods separately.

Indicator name: DMI ADXRMetaTrader 5Shown in a separate window

Read the method, periods and ADXR separately

ADX and ±DI + ADXR as a 2-point averageOrange ADXR = (current ADX + ADX r bars ago) ÷ 2Check Wilder / Exponential and the 2 periods
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Look at blue, green and redBlue is ADX, green is +DI and red is −DI. The values change with the method.

2

Orange is ADXRThe current ADX plus the ADX a specified number of bars ago, divided by 2.

3

Conditions for comparing with the standardCheck Wilder or Exponential and the DI and ADX periods.

Default WilderDI and ADX periods set individuallyADXR 0 hides it
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
Smoothing method
InpMethod
Wilder → Exponential
DI period
InpDiPeriod
14 → 10
ADX period
InpAdxPeriod
14 → 20
ADXR lookback distance
InpAdxrPeriod
14 → 5

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 settingsInpMethod = Wilder / InpDiPeriod = 14 / InpAdxPeriod = 14 / InpAdxrPeriod = 14
DMI ADXR default settings
Default Wilder, 14, 14, 14. 4 lines: blue ADX, green +DI, red −DI and orange ADXR.
View the screen in detail at full size
DMI ADXR default settings (full size)
Settings change exampleInpMethod = Exponential / InpDiPeriod = 10 / InpAdxPeriod = 20 / InpAdxrPeriod = 5
DMI ADXR settings change example
Exponential, 10, 20 and 5. An example that changes the method and all 3 periods.
View the screen in detail at full size
DMI ADXR settings change example (full 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

Check the method

Wilder and Exponential give different values even with the same period.

Check the DI and ADX periods

Unlike the standard, which takes 1 period, the 2 periods can be set separately.

Read ADXR

The orange line is the average of the current ADX and the ADX r bars ago. It is not a moving average or a future value.

3

What it measures

A 4-line display that selects the same calculation family as the standard while adding separate periods and an average with past ADX.

Wilder

The default method. The smoothing of DM and TR and the way ADX starts are matched to the MT5 standard ADX Wilder.

Exponential

The exponentially smoothed type with the same formula as the MT5 standard ADX. Setting the DI period and ADX period equal allows comparison with the standard at the same period.

Separate periods

The DI period controls ±DI, and the ADX period controls the smoothing of DX. An ADX with separate periods is not assumed to equal the standard, which has only 1 period.

ADXR

(current ADX+ADX r bars ago)/2. r is the distance back in the past to refer to, not a smoothing period.

4

Situations for reading the display

Compare with the standard ADX Wilder

Indicator
Select Wilder and set DI = ADX period.
Cross-check
Same symbol, timeframe and history conditions.
Check
Compare ADX and ±DI.
Caution
ADXR is an additional line not in the standard 3 lines.

Compare with the standard ADX

Indicator
Use Exponential and set DI = ADX period.
Cross-check
Cross-check with the standard ADX, not ADX Wilder.
Check
First align the calculation family.
Caution
Do not decide that a difference in method is a defect.

Use DI 10 and ADX 20

Indicator
DI and ADX responses are calculated with separate periods.
Cross-check
Check the input names and the window name.
Check
Record the ±DI and ADX settings separately.
Caution
Not all lines will be the same as the standard ADX 20.

Hide the orange line

Indicator
Set ADXR Period to 0.
Cross-check
The other 3 lines remain.
Check
Specify 0 when it is not needed.
Caution
0 is not a setting that draws the average of the current value with itself.
5

Steps for checking the display

1

Check the 4 default lines

Start from Wilder 14, 14, 14.

2

Compare with the standard starting from the method

For Wilder, use ADX Wilder; for Exponential, use ADX. Align the periods too.

3

Try separate periods

Change DI and ADX separately and check which lines change.

4

Decide the ADXR distance

Set the number of bars you want to refer back to. If the line is not needed, use 0.

6

Installation and checking the package contents

Included filePurpose / location
TRI_DMI_ADXR.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 4 inputs. Change them on the Inputs tab of the properties window. The English display names are shown together with the input names in the code.

Smoothing method

Name shown on screen
Smoothing Method
Input name
InpMethod
Default
Wilder
Allowed range
Wilder / Exponential
Description
Default Wilder. The 2 methods give different values even with the same period.

DI period

Name shown on screen
DI Period
Input name
InpDiPeriod
Default
14
Allowed range
Integer 1 to 500
Description
The calculation period for ±DI.

ADX period

Name shown on screen
ADX Period
Input name
InpAdxPeriod
Default
14
Allowed range
Integer 1 to 500
Description
The period for smoothing DX. For comparison with the standard, set it equal to the DI period.

ADXR lookback distance

Name shown on screen
ADXR Period (0 = off)
Input name
InpAdxrPeriod
Default
14
Allowed range
Integer 0 to 500
Description
The number of bars back of the ADX to average with. 0 hides ADXR.
8

Usage specifications

Start of display for each line

DI period n, ADX period m, ADXR distance r. ±DI starts from bar n+2 counted from the oldest with Wilder, and from bar n+1 with Exponential. ADX starts from bar n+m+1, and ADXR from bar n+m+r+1.

Default starting bars

With 14, 14, 14, ±DI starts from the 16th bar, ADX from the 29th bar and ADXR from the 43rd bar. With r=0, the orange line is not displayed.

Latest bar and notifications

Values on the forming bar change. There are no notification or order functions.

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 orange line does not appear

Check that ADXR Period is not 0 and that the required history is available.

The shape changes with Wilder

This is because the smoothing method and initial values differ. Do not compare by period alone.

Does not match the standard

Align the method of the comparison target, DI = ADX period, and the history range. An ADX with separate periods and the additional ADXR differ from the standard 3 lines.

Cannot start

DI and ADX are 1 to 500, and ADXR is 0 to 500. Check the English message in the Experts tab.

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

Wilder start and update

With the oldest bar as index 0, DM and TR start with the simple average of indexes 1 to n and are updated with the coefficient 1/n. ADX starts with the simple average of DX at indexes n+1 to n+m and is updated with 1/m. Ratios with a zero denominator are 0.

Exponential calculation

The DM/TR ratio of each bar is smoothed with 2/(n+1) to get DI, and DX is smoothed with 2/(m+1) to get ADX. The ADX period is m.

Scope of equality with the standard

Under the conditions compared with the standard ADX Wilder (ADX and ±DI with Wilder and DI = ADX = 14 and 120, and ±DI with DI 10 and ADX 20), the values match. With Exponential and DI = ADX = 14 and 120, the 3 lines also match the standard ADX. This is not a guarantee of equality for all markets and all settings.

ADXR

With r>0, it is a simple 2-point average of ADX and the ADX r bars ago. It is not r−1 bars ago. Changing the method also changes the underlying ADX.