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

ADX Direction Histogram

Shows the size of ADX as bar height and whether +DI or −DI is larger as bar color.

Indicator name: ADX Direction HistogramMetaTrader 5Shown in a separate window

Read bar height and color as separate information

Height: ADX / Color: DI comparisonGreen: +DI ≥ −DI Red: +DI < −DIEven when the color changes, the height is the ADX value
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Height is ADXEven an upward bar is not the amount of a price rise.

2

Color is the DI comparison+DI ≥ −DI is green, +DI < −DI is red. Equal values are green.

3

Compare with the same periodChanging the period changes both height and color.

Height = ADXColor = DI comparisonEqual values are green
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
ADX period
InpPeriod
14 → 7

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
ADX Direction Histogram default settings
Default 14. The height of the green and red bars is the ADX. Red bars also extend above 0.
View the screen in detail at full size
ADX Direction Histogram default settings (full size)
Settings change exampleInpPeriod = 7
ADX Direction Histogram settings change example
Changed to period 7. Compare the bar heights and where the color switches. Also check the vertical axis scale.
View the screen in detail at full size
ADX Direction Histogram 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 height

Read the ADX value. A tall bar does not mean the price rose.

Look at the color

Green means +DI is at or above −DI; red means −DI is larger.

Compare under the same conditions

Within the same symbol, timeframe and period, check the change from the previous bar.

3

What it measures

Shows the comparison of the directions and ADX, which smooths the imbalance of their difference, as separate aspects of 1 bar.

Height calculation

DI is calculated from the extensions of each bar's high and low and TR; DX, the normalized DI difference, is exponentially smoothed to calculate ADX.

Meaning of the colors

The color is determined only by whether the smoothed +DI or −DI is larger; it does not show whether ADX rose or fell.

Levels 20 and 30

Horizontal lines that make the scale easier to follow. Do not read crossing them alone as an instruction to act.

Relation to the standard

Based on the formula of the MT5 standard ADX, this product turns that ADX into colored bars. It is not the Wilder method.

4

Situations for reading the display

Tall red bar

Indicator
+DI < −DI and ADX is large.
Cross-check
Cross-check the previous ADX and the price range of the same bar.
Check
Record height and color separately.
Caution
Do not read red as a negative ADX.

Height falls while staying green

Indicator
+DI ≥ −DI continues, and ADX is falling.
Cross-check
Check the height difference from the previous bar.
Check
Even if the color is the same, look at the change in height.
Caution
A color that stays the same does not mean the value is rising.

The color switches

Indicator
The DI comparison has changed.
Cross-check
Check the bars before and after the switch and the period.
Check
Distinguish whether the bar is forming or closed.
Caution
It is not a signal of future price movement.

No bars on the left side

Indicator
The initial section needed for calculation.
Cross-check
With period 14, display starts at the 29th bar from the oldest.
Check
Check the number of history bars and the period.
Caution
Do not read the part without display as ADX = 0.
5

Steps for checking the display

1

Attach with the default 14

First check the separate window's name and the period.

2

Separate height and color

Look at ADX in the Data Window and at the meaning of green and red.

3

Change the period

When you try 7 from the settings change example, keep a separate chart with the original 14 for comparison.

4

Distinguish the latest bar

The value and color of the current bar are updated, so do not confuse it with closed bars.

6

Installation and checking the package contents

Included filePurpose / location
TRI_ADX_Direction_Histogram.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 is 1 input. Change it on the Inputs tab of the properties. The English display name and the input name in the code are shown together.

ADX period

Name shown on screen
ADX Period
Input name
InpPeriod
Default
14
Allowed range
Integer 1 to 500
Description
The exponential smoothing period for DI and ADX. Default 14. It also changes the number of bars before display starts.
8

Usage specifications

Forming bar

When the high, low or close changes with a new price, the height and color also change.

Initial display

For period n, bars are displayed from bar 2n+1 counted from the oldest. With 14 it is the 29th bar; with 7 it is the 15th bar.

No notifications

It is display only; there are no alerts, emails or push notifications.

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

No bars appear

At least 2n+1 bars of history from the oldest are needed. Check that loading is complete, and check the input range.

Looks different from the standard ADX

The standard one uses lines; this product uses colored bars. Compare with the same period and ADX values.

Green appears even on falling price bars

The color is the comparison of smoothed DI, not the candle's open and close.

Cannot initialize

Set the period back to 1 to 500 and 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

DI and ADX calculation

Of the positive high extension and low extension, only the larger one is taken; if they are equal, both are 0. TR is the maximum of high − low and the distances from the previous close. DM/TR×100 is smoothed with the coefficient 2/(n+1) to get DI, and DX=100×|+DI−−DI|/(+DI+−DI) is smoothed with the same coefficient. A denominator of 0 gives 0.

Distinguishing standard values from the display

Same formula as the MT5 standard ADX. Under the comparison conditions of periods 14 and 7, the ADX values match. This does not guarantee a match on all symbols and timeframes, or a match with the standard ADX Wilder. The colors are specific to this product.

Buffers

A color histogram that uses the ADX value and a color index. Distinguish the rounded values shown on screen from the internal double-precision values.