Period 1 is blue
The RoyalBlue solid lines are the upper and lower lines of period 1.
Compares the extremes of recent prices with upper and lower lines for up to 3 periods.
Choosing the extremesSelect from highs and lows, opens, or the average of the two extremes.
Up to 3 periodsPeriods 2 and 3 are hidden when set to 0.
Upper and lower adjustmentMargin can shift the lines inward or outward, and Offset outward.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
The RoyalBlue solid lines are the upper and lower lines of period 1.
Period 2 is a DarkOrange dashed line, and period 3 is a DimGray dotted line.
When the current high, low or similar value is updated, the corresponding extreme may also change.
These lines record the extremes within a period that includes the latest bar; they do not guarantee future support or resistance.
The highest high and lowest low within the period.
The highest open and lowest open within the period.
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.
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.
The default is 24 bars with Mean of Opens and Highs/Lows; these are not lines of highs and lows only.
Setting Period 2 and 3 to positive values overlays other periods.
Do not confuse the units of Margin and Offset; first change only one of them and compare.
| Included file | Purpose / location |
|---|---|
| TRI_Donchian_Channels_Plus.ex5 | The 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.
Extract the ex5 main file rather than leaving it in the compressed file.
In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.
Refresh the Navigator or restart MT5, and apply it to the target chart. When comparing different settings, using separate charts makes checking easier.
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.
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.
InpPeriod1InpPeriod2InpPeriod3InpExtremesInpMarginInpOffsetThe current bar is included in the calculation. The latest displayed values change with price updates.
There is no function to specify a higher timeframe. Changing the timeframe or the history range also changes what is calculated.
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.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
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.
Check the combination with the background and the display scale. Details of the published images can be checked in the full-size view.
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.
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.
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.
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.