MT5 indicators← DI Trend Bars 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

DI Trend Bars

Shows whether +DI or −DI is larger with colored bars from each bar's low to its high.

Indicator name: DI Trend BarsMetaTrader 5Overlaid on the price chart

Color is DI; length is the bar's high − low range

Color: DI comparison / Length: high − lowHigh-low bars. They do not show open or closeGreen: +DI > −DI Red: +DI < −DIIf the DI values are equal, no colored bar is drawn
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Look at green and redGreen if +DI is larger, red if −DI is larger.

2

Look at the high-low rangeThe bar runs from that bar's low to its high. It is not the height of ADX.

3

Equal values are not drawnNo colored bar is placed on bars where +DI and −DI are equal.

Draws high to lowEqual values hiddenOriginal candles remain
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
DI 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
DI Trend Bars default settings
Default 14. Thick green and red high-low bars are overlaid on the price chart.
View the screen in detail at full size
DI Trend Bars default settings (full size)
Settings change exampleInpPeriod = 7
DI Trend Bars settings change example
Changed to period 7. Compare where the color switches. The high and low prices themselves do not change with the period setting.
View the screen in detail at full size
DI Trend Bars settings change example (full size)

Example shown: 1-minute chart (M1). This is an example for explaining the display. The settings change example is not a recommended value. Details can be checked in the full-size view. Please also check the price scale of the main chart and the positions of the candlesticks.

2

How to read it in 30 seconds

Check the colors

Green is +DI > −DI, red is +DI < −DI.

Check the bar range

The top and bottom ends of the bar are that bar's high and low.

Keep it separate from the original bars

It is overlaid on the candles rather than replacing them. It can hide the open and close.

3

What it measures

These are high-low bars that carry the direction comparison as color; it is not a function that recolors bullish and bearish candles.

DI calculation

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

Color comparison

ForestGreen if +DI > −DI, Crimson if +DI < −DI. Equal values are EMPTY and are not drawn.

Bar length

Corresponds to high − low. The length does not show the size of the DI difference or of the ADX value.

Overlaid display

Because it is drawn on top of the price chart, adjust this product's line width and color if the candle bodies are hard to see.

4

Situations for reading the display

Long green bar

Indicator
That bar's high − low range is large, and +DI is larger.
Cross-check
The price range and color of the same bar.
Check
Check length and color separately.
Caution
It cannot be said that ADX is large.

Green even on a falling bar

Indicator
The smoothed DI comparison and that bar's open and close are separate.
Cross-check
Tell the open and close apart from the high-low bar.
Check
Read the meaning of the color as DI.
Caution
Do not confuse it with bullish or bearish candle colors.

Bars without a colored bar

Indicator
Equal DI values or the initial section.
Cross-check
Check the period and the number of bars from the oldest.
Check
Check the original candles separately.
Caution
It does not mean a bar is missing.

Price bodies are hard to see

Indicator
The high-low bars overlap the original bodies.
Cross-check
Compare with the display without this product.
Check
Adjust the color, line width or display.
Caution
Do not guess open and close values you cannot see.
5

Steps for checking the display

1

Attach on the price chart with the default 14

Check the green and red high-low bars.

2

Identify the original bars

The bars do not show open or close, so distinguish them from the candles.

3

Compare the difference in periods

Between the change example 7 and 14, the DI smoothing changes and so do the places where the color switches.

4

Adjust visibility

Use the color and line width in the properties to keep the original bars easy to read.

6

Installation and checking the package contents

Included filePurpose / location
TRI_DI_Trend_Bars.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.

DI period

Name shown on screen
DI Period
Input name
InpPeriod
Default
14
Allowed range
Integer 1 to 500
Description
The exponential smoothing period for the DI calculation. It is not a period for aggregating the bars' highs and lows.
8

Usage specifications

Initial section and equal values

Nothing is drawn before bar n+1 counted from the oldest. After that, too, no bar is drawn on bars where the DIs are equal.

Forming bar

The high, low and the relative size of the DIs are updated, and the length and color of the bar change.

No notifications

There are no arrows or alerts. It is not a display to be used as trading instructions.

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

Differs from the candle colors

This product colors by DI; the original candles are colored by open and close.

Some bars have no color

Outside the initial section, equal DI values are a possible cause. Also distinguish a length of 0 from a hidden bar.

Prices are hard to see

Make the line width of the overlaid bars thinner or adjust the color. The original price bars are not removed.

Nothing is displayed

Check the period 1 to 500 and the number of history bars, and look in the Experts tab for an English message refusing to start.

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

Buffer structure

It is DRAW_COLOR_HISTOGRAM2 using 3 buffers: high, low and color index. With equal values, the high and low display values are set to EMPTY.

Output different from ADX

The base DI formula belongs to the same family as the standard ADX, but the display is price high-low bars. The bar length cannot be compared with standard ADX values.

Initialization and updates

Display starts at index n. Indexes are counted with the oldest bar as 0. It recalculates in response to the latest bar and changes in history.