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

Overlays dots that compare 2 kinds of width on ADX, DI and the DI difference, so that different information can be read separately in 1 window.

Indicator name: ADX SqueezeMetaTrader 5Shown in a separate window

Lines, bars and dots are each different calculations

ADX, DI difference, and the width comparisonDot: deviation width < TR average widthThe dot height is a display position, not a width or direction
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Look at the blue line and ±DIBlue is ADX, the green line is +DI and the red line is −DI.

2

Bars are the DI differenceIf +DI−−DI is 0 or above, the bar is greenish; if negative, reddish.

3

Ocher dots are the width comparisonShown on bars where the deviation width is smaller than the TR average width.

DI difference is based on 0Dot height is arbitraryNo dot when the widths are equal
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 → 10
Deviation period
InpBandsPeriod
20 → 12
Deviation multiplier
InpBandsDeviation
2 → 1.5
TR average period
InpKeltnerPeriod
20 → 25
TR average multiplier
InpKeltnerFactor
1.5 → 2
Dot drawing position
InpDotLevel
-15 → -25

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 / InpBandsPeriod = 20 / InpBandsDeviation = 2 / InpKeltnerPeriod = 20 / InpKeltnerFactor = 1.5 / InpDotLevel = -15
ADX Squeeze default settings
Defaults 14, 20, 2, 20, 1.5, dot height −15. Look at the ocher dots and the DI-difference bars separately.
View the screen in detail at full size
ADX Squeeze default settings (full size)
Settings change exampleInpPeriod = 10 / InpBandsPeriod = 12 / InpBandsDeviation = 1.5 / InpKeltnerPeriod = 25 / InpKeltnerFactor = 2 / InpDotLevel = -25
ADX Squeeze settings change example
Changed to 10, 12, 1.5, 25 and 2, with the dot height at −25. The width conditions are also changed, so this is not an example of only moving the dots down.
View the screen in detail at full size
ADX Squeeze 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 lines

Identify the blue ADX and the green and red DI.

Check the bars

The bars are the DI difference, not the ADX value.

Check the dots

Whether a dot appears depends on the width inequality; the dot height is a display setting.

3

What it measures

The dots are not a containment check that also compares the center position of the price bands; they are the result of comparing only the 2 widths.

ADX and DI

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

DI difference bars

+DI−−DI is drawn from 0. 0 or above is MediumSeaGreen; negative is LightCoral.

Width condition

A dot appears when Bands Deviation × population standard deviation of the close < Keltner Factor × simple average of TR. The 2 periods can be set separately.

Dot height

Squeeze Dot Level is a number for placing the dots where they are easy to see. It does not show the size of the width difference, a price target or a direction.

4

Situations for reading the display

Dots continue

Indicator
The deviation width of the close is smaller than the TR average width.
Cross-check
Check the periods and coefficients of Bands and Keltner.
Check
Read it as a section where the width condition continued.
Caution
Does not show the direction or time of a future widening.

DI difference is below 0

Indicator
−DI is larger than +DI.
Cross-check
Cross-check the green and red lines on the same bar.
Check
Check the sign of the bar and whether there is a dot separately.
Caution
Even with a dot, it is not an instruction about direction.

Only the dots disappear

Indicator
The width inequality no longer holds.
Cross-check
Check the inputs and the state of the latest bar on the same bar.
Check
Understand that there is also no dot when the widths are equal.
Caution
Do not read a missing dot as a dot value of 0.

Move the dots to −25

Indicator
The input for the drawing position only is Dot Level.
Cross-check
Check that no other inputs were changed.
Check
Distinguish the height from the detection condition.
Caution
The published change example also changes the conditions.
5

Steps for checking the display

1

Identify the lines and bars

Check the labels ADX, +DI, −DI and DI Difference.

2

Check the dot position

The default is −15. Being below does not mean a negative direction.

3

Look at the width periods and multipliers

Check the 4 inputs on the Bands side and the Keltner side.

4

Keep the change conditions aligned

When testing only the dot position, change only Dot Level.

6

Installation and checking the package contents

Included filePurpose / location
TRI_ADX_Squeeze.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 6 inputs. Change them 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 base period for ADX and DI. It is independent of the width periods.

Deviation period

Name shown on screen
Bands Period
Input name
InpBandsPeriod
Default
20
Allowed range
Integer 2 to 500
Description
Number of bars for calculating the population standard deviation of the close.

Deviation multiplier

Name shown on screen
Bands Deviation
Input name
InpBandsDeviation
Default
2
Allowed range
Greater than 0 and up to 10
Description
The coefficient applied to the deviation-side width.

TR average period

Name shown on screen
Keltner ATR Period
Input name
InpKeltnerPeriod
Default
20
Allowed range
Integer 1 to 500
Description
Number of bars for calculating the simple average of TR.

TR average multiplier

Name shown on screen
Keltner Factor
Input name
InpKeltnerFactor
Default
1.5
Allowed range
Greater than 0 and up to 10
Description
The coefficient applied to the TR-average-side width.

Dot drawing position

Name shown on screen
Squeeze Dot Level
Input name
InpDotLevel
Default
-15
Allowed range
−100〜100
Description
The dot height. It does not change the condition for a dot to appear.
8

Usage specifications

Start of display

ADX starts from bar 2n+1 counted from the oldest, and DI and the difference from bar n+1. The dots start once the longer of the Bands and Keltner bar counts is available.

Equal widths and no movement

When the widths are equal, no dot is drawn. The same applies when both widths are 0.

Latest bar and notifications

On the latest bar, lines, bars and dots can change. It does not issue alerts or place 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

No dots appear

Not shown unless the width condition holds. Also check the history and periods.

Dots overlap lines or bars

Move Dot Level within −100 to 100. This does not change the detection condition.

Differs from a typical squeeze

It compares only the widths without using the center line position, and TR is also a simple average. Do not assume it is the same as other products from the name alone.

Nothing is shown because of out-of-range inputs

Check the English message in the Experts tab, and set the periods, multipliers and drawing position back within the allowed range.

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

Width formula

B=d×sqrt(Σ(C−average C)²/p), K=f×ΣTR/k. p is the Bands period and k is the Keltner period. A dot is placed only when B<K. The denominator of the standard deviation is p, not p−1.

Different from band containment

Because it does not compare the center line calculation or the absolute positions of the upper and lower bands, it is not a formula that determines whether the whole Bollinger Bands lie inside the Keltner Channel.

Displayed values

DI difference, ADX, ±DI and the dot position are separate drawn values. The dot buffer holds the set height when the condition holds, and EMPTY when it does not.