MT5 indicators← DI Filtered Cross Arrows 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 Filtered Cross Arrows

Adds an ADX level and a comparison with a past close to the above/below relationship of DI, and shows with arrows the bars where the side that met the conditions reversed. They do not necessarily appear on the same bar as a simple DI crossing.

Indicator name: DI Filtered Cross ArrowsMetaTrader 5Main chart

How to read the display

12 conditions added to the DI above/below relationship2Bars where the conditioned side reversed3Bars that do not meet the conditions wait
Schematic diagram of how to read it. This is not an actual terminal screen.
1

2 conditions added to the DI above/below relationshipBy default, DI Period is 14 and ADX is required to exceed 30. The comparison with a past close is not used.

2

Bars where the conditioned side reversedFrom the upper side to the lower side gives a red down arrow; from the lower side to the upper side gives a green up arrow. No arrow appears when a side is first decided.

3

Bars that do not meet the conditions waitOn bars where the DIs are equal or that do not pass the filters, the last decided side is kept. No mark does not mean the calculation has stopped.

Record of conditions metMT5 onlyNot a trading instruction
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 and ADX smoothing period / DI Period
InpPeriod
14 → 70
Number of bars for the close comparison / Momentum Bars (0 = off)
InpMomentumBars
0 → 70
ADX condition level / ADX Level (0 = off)
InpAdxLevel
30 → 0

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 / InpMomentumBars = 0 / InpAdxLevel = 30
DI Filtered Cross Arrows default settings
Default: DI 14, ADX>30, no close comparison. The green up arrows and red down arrows are reversals of the side that passed the filters.
View the screen in detail at full size
DI Filtered Cross Arrows default settings (full size)
Settings change exampleInpPeriod = 70 / InpMomentumBars = 70 / InpAdxLevel = 0
DI Filtered Cross Arrows settings change example
DI changed to 70, the close comparison to 70 bars back, and ADX Level to 0. It shows only reversals of the side where the DI above/below relationship and the direction of the close agree. Because 3 items are changed at the same time, the difference in marks cannot be judged to be the effect of only 1 item.
View the screen in detail at full size
DI Filtered Cross Arrows settings change example (full size)

Example shown: M1. This is an example for explaining the display. The published images are screens from before the brand display was added. The calculation and drawing conditions are the same, and the packaged version has display settings for the brand text and the QR code. 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

2 conditions added to the DI above/below relationship

By default, DI Period is 14 and ADX is required to exceed 30. The comparison with a past close is not used.

Bars where the conditioned side reversed

From the upper side to the lower side gives a red down arrow; from the lower side to the upper side gives a green up arrow. No arrow appears when a side is first decided.

Bars that do not meet the conditions wait

On bars where the DIs are equal or that do not pass the filters, the last decided side is kept. No mark does not mean the calculation has stopped.

3

What it measures

Adds an ADX level and a comparison with a past close to the above/below relationship of DI, and shows with arrows the bars where the side that met the conditions reversed. They do not necessarily appear on the same bar as a simple DI crossing.

How the calculation works

The upper side is +DI>−DI and the lower side is +DI<−DI. If ADX Level is not 0, both sides require ADX>the specified level. If Momentum Bars is 1 or more, the upper side also needs current close>the close the specified number of bars back, and the lower side current close<the close the specified number of bars back. Equal values do not pass. A green up arrow is placed on the bar where the upper side comes after the lower side that was remembered until then, and a red down arrow in the reverse case. On bars that meet neither condition, the remembered side is not changed. Even if the DIs cross while the filters are not passed, the state is not changed at that point, and a mark may appear later on a bar where all conditions for the opposite side line up.

Conditions and exceptions

Counting the first bar of the history as bar 1 and letting B be the larger of DI Period and Momentum Bars, state judgment starts from bar B+1. Because no mark is shown for the first state, arrows appear on bar B+2 or later at the earliest. By default, the state starts at bar 15 and marks at bar 16 at the earliest, but they can come later depending on the conditions. The latest bar is subject to Closed Bars Only. Because the history is recalculated from the start each time, past states may change with the history start position or corrections.

DI and ADX calculation

For each bar, the larger of the upward and downward price movements is taken, and if they are equal both are set to 0. That is converted into a ratio to the true range and exponentially smoothed with coefficient 2/(period+1) to give +DI and −DI. ADX exponentially smoothes the absolute value of the ratio of their difference over the same period. The lines are not displayed and are used only to judge the conditions.

Differences from the original product

This is a separate product that uses the same DI calculation as Standard in DI Cross Arrows. It adds ADX and close comparison filters and draws only reversals of the side that passed the filters. It does not have the Hull-style and Alert of the original product. With ADX Level=0 and Momentum Bars=0, both filters can be removed. A side-by-side comparison with the original product in the terminal has not been performed.

4

Situations for reading the display

Distinguish from DI crossings

Indicator
It is a mark for when the side that passed the conditions reverses.
Cross-check
Check the DI, ADX and close comparison conditions on the same bar.
Check
Note that the previous side is kept during neutral sections in between.
Caution
There can be DI crossings without arrows and arrows that come after a DI crossing.

Compare setting differences

Indicator
DI changed to 70, the close comparison to 70 bars back, and ADX Level to 0. It shows only reversals of the side where the DI above/below relationship and the direction of the close agree. Because 3 items are changed at the same time, the difference in marks cannot be judged to be the effect of only 1 item.
Cross-check
Use the same symbol, timeframe and history.
Check
Look at how the changed setting relates to the increase or decrease and the position of the marks.
Caution
The published settings are not recommended values.

Reading intervals without marks

Indicator
Counting the first bar of the history as bar 1 and letting B be the larger of DI Period and Momentum Bars, state judgment starts from bar B+1. Because no mark is shown for the first state, arrows appear on bar B+2 or later at the earliest. By default, the state starts at bar 15 and marks at bar 16 at the earliest, but they can come later depending on the conditions. The latest bar is subject to Closed Bars Only. Because the history is recalculated from the start each time, past states may change with the history start position or corrections.
Cross-check
Check the required history and whether the conditions are met.
Check
Do not treat the absence of marks as the calculation having stopped.
Caution
Nothing may be displayed during periods when the conditions are not met.
5

Steps for checking the display

1

Apply with the defaults

Load the history in MT5, and first apply only this product to the chart.

2

Check the role of the display

By default, DI Period is 14 and ADX is required to exceed 30. The comparison with a past close is not used.

3

Comparing settings

Put the default and the change example on separate charts, with the same symbol, timeframe and history.

4

Distinguish the forming bar

Closed Bars Only defaults to true. With false, marks on the forming bar can change, so distinguish them from the record on closed bars.

6

Installation and checking the package contents

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

DI and ADX smoothing period

English item name
DI Period
Input name
InpPeriod
Default
14
Allowed range
Integer 1–500
Description
Default 14. +DI, −DI and ADX are exponentially smoothed over the same period.

Number of bars for the close comparison

English item name
Momentum Bars (0 = off)
Input name
InpMomentumBars
Default
0
Allowed range
Integer 0 to 500
Description
Default 0, disabled. If 1 or more, the close is compared with the close the specified number of bars back. It is not a threshold for the size of the change; it checks whether it is above or below.

ADX condition level

English item name
ADX Level (0 = off)
Input name
InpAdxLevel
Default
30
Allowed range
Finite number from 0 to 100
Description
Default 30. 0 disables it. Any value other than 0 requires ADX to strictly exceed this value; the same value does not pass. Raising it may make marks disappear.

Hide marks on the forming bar

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
Default true. No mark is placed on the latest bar. With false, marks are also placed on the forming bar, and they may appear, disappear or change direction as the price moves.

Distance between the arrow and the high/low

English item name
Arrow Gap (pixels)
Input name
InpArrowGap
Default
8
Allowed range
Integer from 0 to 100 pixels
Description
Default 8. It changes only where the mark is drawn, not which bars get marks.

Brand and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Displayed with true. Calculated values do not change.

Brand position

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Allowed range
Top left / Bottom left / Bottom right / Top right
Description
The default is bottom left.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer (pixels)
Description
Negative values are treated as 0, and values above 4000 are treated as 4000.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer (pixels)
Description
Negative values are treated as 0, and values above 4000 are treated as 4000.
8

Usage specifications

Display only

It does not place, modify or close orders. There are no notifications or emails either.

Closed bars and history

Counting the first bar of the history as bar 1 and letting B be the larger of DI Period and Momentum Bars, state judgment starts from bar B+1. Because no mark is shown for the first state, arrows appear on bar B+2 or later at the earliest. By default, the state starts at bar 15 and marks at bar 16 at the earliest, but they can come later depending on the conditions. The latest bar is subject to Closed Bars Only. Because the history is recalculated from the start each time, past states may change with the history start position or corrections.

Mark positions

Green up arrows are below the low, and red down arrows above the high. The distance is the number of pixels specified by Arrow Gap (default 8). It is not a price difference or points. At 0, they overlap the high and low positions.

Brand display

Shows Produced by Trilogy Inc. and a QR code to https://www.trgy.co.jp/. When the same medium is used on the same chart, the display is shared. There is no account authentication.

Internal lines are not drawn

This product draws only the up and down arrows. If you want to check DI, ADX, moving averages and so on as values separately, display each indicator separately and check its calculation method and settings.

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

No marks, or blanks in the middle

Counting the first bar of the history as bar 1 and letting B be the larger of DI Period and Momentum Bars, state judgment starts from bar B+1. Because no mark is shown for the first state, arrows appear on bar B+2 or later at the earliest. By default, the state starts at bar 15 and marks at bar 16 at the earliest, but they can come later depending on the conditions. The latest bar is subject to Closed Bars Only. Because the history is recalculated from the start each time, past states may change with the history start position or corrections.

The input is not accepted

Check the ranges and combinations in the settings. Keep the inputs for unused methods within range as well.

Marks differ from DI Cross Arrows

This is a separate product that uses the same DI calculation as Standard in DI Cross Arrows. It adds ADX and close comparison filters and draws only reversals of the side that passed the filters. It does not have the Hull-style and Alert of the original product. With ADX Level=0 and Momentum Bars=0, both filters can be removed. A side-by-side comparison with the original product in the terminal has not been performed.

Displays overlap

Use separate charts, or adjust the brand position and margins. The images can also be checked at full size.

No arrow even though the conditions held for the first time

The first side is only remembered and no mark is placed. It waits until the conditions for the opposite side line up.

ADX equals the level

It must exceed the level. 0 does not mean “ADX>0”; it is a special setting that disables the ADX filter.

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

Calculation and reference range

The upper side is +DI>−DI and the lower side is +DI<−DI. If ADX Level is not 0, both sides require ADX>the specified level. If Momentum Bars is 1 or more, the upper side also needs current close>the close the specified number of bars back, and the lower side current close<the close the specified number of bars back. Equal values do not pass. A green up arrow is placed on the bar where the upper side comes after the lower side that was remembered until then, and a red down arrow in the reverse case. On bars that meet neither condition, the remembered side is not changed. Even if the DIs cross while the filters are not passed, the state is not changed at that point, and a mark may appear later on a bar where all conditions for the opposite side line up.

Initial values and exceptions

Counting the first bar of the history as bar 1 and letting B be the larger of DI Period and Momentum Bars, state judgment starts from bar B+1. Because no mark is shown for the first state, arrows appear on bar B+2 or later at the earliest. By default, the state starts at bar 15 and marks at bar 16 at the earliest, but they can come later depending on the conditions. The latest bar is subject to Closed Bars Only. Because the history is recalculated from the start each time, past states may change with the history start position or corrections.

Package contents and dependencies

Only MT5 itself and this manual. Account authentication, external indicators and DLLs are not required.

Correspondence with the original product

This is a separate product that uses the same DI calculation as Standard in DI Cross Arrows. It adds ADX and close comparison filters and draws only reversals of the side that passed the filters. It does not have the Hull-style and Alert of the original product. With ADX Level=0 and Momentum Bars=0, both filters can be removed. A side-by-side comparison with the original product in the terminal has not been performed.

Initial values and equal values

+DI, −DI and ADX start from 0 at the oldest bar. If TR=0, that bar's direction ratio is 0, and if +DI+−DI=0, DX is 0. Equal DI values, equal closes and ADX exactly at the level do not pass the conditions. Greater/less comparisons are made without any tolerance.