MT5 indicators← Donchian Channels Plus 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

Donchian Channels Plus

Compares the extremes of recent prices with upper and lower lines for up to 3 periods.

Indicator name: Donchian Channels PlusMetaTrader 5On the price chart

Calculates 2 lines, upper and lower, from the extremes within the period

Upper = upper extreme of the selected priceNo middle line is drawnLower = lower extreme of the selected priceMargin adjusts as a percentage of the width, and Offset adjusts in points.
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Choosing the extremesSelect from highs and lows, opens, or the average of the two extremes.

2

Up to 3 periodsPeriods 2 and 3 are hidden when set to 0.

3

Upper and lower adjustmentMargin can shift the lines inward or outward, and Offset outward.

Extremes selectable in 3 waysUp to 3 periodsNo middle line
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
Period 1 / Period 1
InpPeriod1
24 → 50
Period 2 / Period 2 (0 = off)
InpPeriod2
0 → 20
Period 3 / Period 3 (0 = off)
InpPeriod3
0 → 5
Extremes type / Extremes
InpExtremes
Mean of Opens and Highs/Lows → Highs and Lows

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 settingsInpPeriod1 = 24 / InpPeriod2 = 0 / InpPeriod3 = 0 / InpExtremes = Mean of Opens and Highs/Lows
Donchian Channels Plus default settings
Period 1 = 24, Mean of Opens and Highs/Lows. Margin and Offset are 0.
View the screen in detail at full size
Donchian Channels Plus default settings (full size)
Settings change exampleInpPeriod1 = 50 / InpPeriod2 = 20 / InpPeriod3 = 5 / InpExtremes = Highs and Lows
Donchian Channels Plus settings change example
Period 1 = 50, Period 2 = 20, Period 3 = 5, Highs and Lows. Compares the upper and lower lines of the 3 periods.
View the screen in detail at full size
Donchian Channels Plus 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

Period 1 is blue

The RoyalBlue solid lines are the upper and lower lines of period 1.

Periods 2 and 3

Period 2 is a DarkOrange dashed line, and period 3 is a DimGray dotted line.

Forming bar

When the current high, low or similar value is updated, the corresponding extreme may also change.

3

What it measures

These lines record the extremes within a period that includes the latest bar; they do not guarantee future support or resistance.

Highs and Lows

The highest high and lowest low within the period.

Opens

The highest open and lowest open within the period.

Mean of Opens and Highs/Lows

The average of the highest open and the highest high, and the average of the lowest open and the lowest low. The extremes do not necessarily come from the same bar.

Margin and Offset

A positive Margin moves the lines inward and a negative one outward, by that percentage of the width before adjustment. Offset moves both upper and lower lines outward in points.

4

Situations for reading the display

Comparing periods

Indicator
Blue, orange and gray upper and lower lines
Cross-check
Period 1, 2 and 3
Check
Check the differences in the extremes remaining in each period.
Caution
A longer period does not always mean an upward or downward direction.

Sections where the upper and lower lines move

Indicator
New extremes and exclusion of old bars
Cross-check
Bars included in the period
Check
Check not only for new extremes appearing but also for cases where an old extreme drops out of the window.
Caution
Do not use contact with a line as a trading signal.
5

Steps for checking the display

1

Check the default extremes

The default is 24 bars with Mean of Opens and Highs/Lows; these are not lines of highs and lows only.

2

Set additional periods

Setting Period 2 and 3 to positive values overlays other periods.

3

Check the width adjustment

Do not confuse the units of Margin and Offset; first change only one of them and compare.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Donchian_Channels_Plus.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 6 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.

Period 1

English item name
Period 1
Input name
InpPeriod1
Default
24
Allowed range
1 to 1000
Description
The number of bars calculated for the blue upper and lower lines.

Period 2

English item name
Period 2 (0 = off)
Input name
InpPeriod2
Default
0
Allowed range
0 to 1000
Description
At 0, the orange upper and lower lines are not drawn.

Period 3

English item name
Period 3 (0 = off)
Input name
InpPeriod3
Default
0
Allowed range
0 to 1000
Description
At 0, the gray upper and lower lines are not drawn.

Extremes type

English item name
Extremes
Input name
InpExtremes
Default
Mean of Opens and Highs/Lows
Allowed range
Highs and Lows / Opens / Mean of Opens and Highs/Lows
Description
Select the highs and lows of each period, the opens, or the average of the two extremes.

Adjustment relative to the width

English item name
Margin (% of the width, negative = outward)
Input name
InpMargin
Default
0
Allowed range
−100 to 49 %
Description
Positive is inward, negative is outward. Applied to the upper and lower lines separately, based on the original width.

Fixed outward distance

English item name
Offset (points, outward)
Input name
InpOffset
Default
0
Allowed range
0 to 100000 points
Description
In the symbol's point units. Not necessarily the same as pips.
8

Usage specifications

The latest bar is forming

The current bar is included in the calculation. The latest displayed values change with price updates.

Calculated on the chart timeframe

There is no function to specify a higher timeframe. Changing the timeframe or the history range also changes what is calculated.

Start of display

Each line is shown once the number of bars for its period is available. Even if periods 2 and 3 are enabled, those lines do not appear if the history is insufficient.

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

Nothing is displayed

Check the input ranges and the number of history bars. If an input is out of range, loading is refused and the reason is written to the Experts log.

Colors or thin lines are hard to see

Check the combination with the background and the display scale. Details of the published images can be checked in the full-size view.

Lines overlap

If the extremes of several periods are the same, the lines overlap. You can check by enabling 1 set at a time.

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

Formula

With the unadjusted upper U, lower L and width R = U − L, upper = U − R × Margin/100 + Offset × point, and lower = L + R × Margin/100 − Offset × point.

Period range

The latest N bars, including the current bar. With Mean, the highest open and highest high, and the lowest open and lowest low, are each found independently.

Distinguishing what is displayed from what is not yet verified

The inputs and calculations in this document are based on the product's implementation. The actual display in the Data Window and the input screen, and how it looks during long operation on actual symbols or with long history, have not been verified.