MT5 indicators← Smoothed ADX 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

Smoothed ADX

Applies a two-stage filter to ADX and ±DI and shows them as 3 smooth lines that differ from the original calculated values.

Indicator name: Smoothed ADXMetaTrader 5Shown in a separate window

The 3 lines are values after filtering

Original 3 values → leading filter → additional smoothingADX and ±DI→Lead Alpha→Smooth AlphaAll 3 lines show processed valuesValues below 0 or above 100 can occur. Not a forecast of the future
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Distinguish blue, green and redBlue is processed ADX, green is processed +DI, and red is processed −DI.

2

Change the shape with coefficientsIn addition to the period, you specify 2 coefficients: leading and smoothing.

3

Not limited to 0 to 100The processed lines can go below 0 or above 100.

All 3 lines are processed in two stagesNot the standard ADX itselfLeading ≠ forecast of the future
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 ADX period
InpPeriod
14 → 8
Leading filter coefficient
InpLeadAlpha
0.25 → 0.5
Smoothing coefficient
InpSmoothAlpha
0.33 → 0.2

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 settingsInpPeriod = 14 / InpLeadAlpha = 0.25 / InpSmoothAlpha = 0.33
Smoothed ADX default settings
Defaults 14, 0.25, 0.33. Blue is Filtered ADX, and green and red are Filtered ±DI.
View the screen in detail at full size
Smoothed ADX default settings (full size)
Settings change exampleInpPeriod = 8 / InpLeadAlpha = 0.5 / InpSmoothAlpha = 0.2
Smoothed ADX settings change example
Changed to 8, 0.5 and 0.2. Look not only at the difference in shape but also at the values on the vertical axis. Negative values also occur.
View the screen in detail at full size
Smoothed ADX 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

Look at the labels

The 3 lines labeled Filtered are not raw ADX or DI.

Separate the period from the coefficients

The period is for the base calculation; the 2 coefficients are for the filter after it.

Look at the scale

Values shown below 0 are also results of the calculation. Do not immediately conclude they are abnormal.

3

What it measures

This display processes the original ADX and DI in two stages; it is important not to mistake the filtered values for standard ADX values.

Base calculation

Based on the exponentially smoothed DI and ADX that use the same formula as the MT5 standard ADX. It is not the Wilder method.

Leading filter

Shapes the line using the current value, the previous original value and the previous filtered value. It does not mean it refers to future bars.

Additional smoothing

The output of the leading filter is exponentially smoothed with Smoothing Alpha. A small coefficient keeps more of the past output.

Level 25

A horizontal line for comparison. Because the values are processed, do not carry over level interpretations for the standard ADX as they are.

4

Situations for reading the display

Green line above the red line

Indicator
Processed +DI is larger than processed −DI.
Cross-check
Check the 3 lines on the same bar and the coefficients.
Check
Record it as the order of the Filtered values.
Caution
It is not necessarily the same as the order of the base DI.

The blue line bends

Indicator
A change in processed ADX.
Cross-check
Cross-check the blue line before and after with the input values.
Check
Confirm that it is not the original ADX.
Caution
Do not call the bend a forecast of a future turn.

A line goes below 0

Indicator
Cases where the leading filter overshoots and the value becomes negative.
Cross-check
Check the label and the values on the vertical axis.
Check
Read it as a processed value.
Caution
Do not interpret it as rounded to 0.

The shape changes when coefficients change

Indicator
The base period and the 2 coefficients affect it.
Cross-check
Check the differences in the 3 inputs on the change banner.
Check
Compare 1 item at a time.
Caution
Do not judge which is better from appearance alone.
5

Steps for checking the display

1

Identify the lines with the defaults

Check the Filtered display: blue ADX, green +DI and red −DI.

2

Check the value range

Look at the vertical axis, including whether there are values below 0.

3

Change 1 coefficient at a time

Even if you use the change example as a reference, that does not mean its values are recommended.

4

Compare under the same conditions

When comparing with the base ADX on another chart, understand that even with the same period, they differ in whether processing is applied.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Smoothed_ADX.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 ADX period

Name shown on screen
ADX Period
Input name
InpPeriod
Default
14
Allowed range
Integer 1 to 500
Description
The period shared by the base calculations of DI and ADX.

Leading filter coefficient

Name shown on screen
Lead Filter Alpha
Input name
InpLeadAlpha
Default
0.25
Allowed range
Greater than 0 and at most 1
Description
The coefficient of stage 1. It is not a forecast confidence or an amount of time shift ahead.

Smoothing coefficient

Name shown on screen
Smoothing Alpha
Input name
InpSmoothAlpha
Default
0.33
Allowed range
Greater than 0 and at most 1
Description
The coefficient of the stage 2 exponential smoothing. With 1, the output of stage 1 is used as it is.
8

Usage specifications

Initial section

For period n, the ±DI lines start from bar n+1 counted from the oldest, and the ADX line from bar 2n+1. With the default of 14, these are the 15th and 29th bars.

Value range is not limited

Because of the leading-type processing, values can go outside 0–100. The display is not specified to be fixed at 0–100.

Current bar and notifications

The latest bar changes with price updates. There are no alerts or orders.

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

Lines differ from the standard ADX

A two-stage filter is added. This product does not show the same values as the standard.

A negative DI is visible

Filtered DI is a processed value. It does not mean the original DM/TR ratio is negative.

Only some lines appear first

±DI and ADX start displaying at different numbers of bars.

Does not start with the inputs

A coefficient of 0 cannot be used. Set both coefficients back to above 0 and up to 1, and the period to 1 to 500.

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

Two-stage formula

For an original value X, L=2X+(a1−2)X(previous)+(1−a1)L(previous), F=a2L+(1−a2)F(previous). ADX, +DI and −DI are each processed independently. The initial state is 0.

Base calculation and processed values

The base uses the same formula as the exponentially smoothed standard ADX, but the final display is F. Equality with the standard is not claimed to extend to the final 3 lines.

Recalculation

The previous filter state is kept for each bar, and the forming bar is recalculated. This product does not refer to future data to draw ahead.