MT5 indicators← Donchian Break EMA Slope 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

Donchian Break EMA Slope Arrows

Places an arrow on bars that break out of the preceding high-low range while the slope of a price average also points in the same direction. A breakout alone does not produce a mark.

Indicator name: Donchian Break EMA Slope ArrowsMetaTrader 5Main chart

How to read the display

1Green: upward break + upward slope2Red: downward break + downward slope3The orange dotted line is the middle of the range
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Green: upward break + upward slopeWhen the current high exceeds the preceding highest high and the EMA slope exceeds the positive level.

2

Red: downward break + downward slopeWhen the current low falls below the preceding lowest low and the EMA slope falls below the negative level.

3

The orange dotted line is the middle of the rangeThe middle of the high-low range including the current bar. It is neither the EMA line nor the upper or lower limit used for the breakout.

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
Bars in the high-low range / Channel Period
InpChannelPeriod
28 → 20
Minimum slope / Angle Threshold
InpAngle
0.32 → 0.1

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 settingsInpChannelPeriod = 28 / InpAngle = 0.32
Donchian Break EMA Slope Arrows default settings
Default Channel Period=28, Angle=0.32. The orange line is the middle of the high-low range, not an EMA.
View the screen in detail at full size
Donchian Break EMA Slope Arrows default settings (full size)
Settings change exampleInpChannelPeriod = 20 / InpAngle = 0.1
Donchian Break EMA Slope Arrows settings change example
Channel Period=20, Angle=0.1. An example with a shorter breakout range and a looser slope condition. The arrows and the middle line change.
View the screen in detail at full size
Donchian Break EMA Slope 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

Green: upward break + upward slope

When the current high exceeds the preceding highest high and the EMA slope exceeds the positive level.

Red: downward break + downward slope

When the current low falls below the preceding lowest low and the EMA slope falls below the negative level.

The orange dotted line is the middle of the range

The middle of the high-low range including the current bar. It is neither the EMA line nor the upper or lower limit used for the breakout.

3

What it measures

Places an arrow on bars that break out of the preceding high-low range while the slope of a price average also points in the same direction. A breakout alone does not produce a mark.

How the calculation works

Calculates the EMA of the midpoint price between the high and low. g=10000×(EMA End Shift bars earlier−EMA Start Shift bars earlier)÷(Start Shift−End Shift). An up arrow if the high strictly exceeds the highest high of the preceding Channel Period bars and g>Angle Threshold. A down arrow if the low strictly falls below the preceding lowest low and g<−Angle Threshold. No mark is placed when values are equal. Only the orange middle line is the average of the highest high and lowest low over the same number of bars including the current bar.

Conditions and exceptions

Angle is the change per 1 bar of the price difference multiplied by 10000; it is not an angle, points or pips. The default 0.32 with Start=6 and End=0 is the condition that the EMA difference over 6 bars is greater than 0.000192. How readily marks appear changes with the symbol's price unit. Even with Angle=0, the slope must be strictly positive or negative. The line starts from the Channel Period-th bar, and arrows from bar max(Channel Period, Start Shift)+1. The EMA starts with the first midpoint price and is updated with the coefficient 2/(EMA Period+1). Changing the history start position can change the values.

4

Situations for reading the display

Read the price and mark conditions

Indicator
When the current high exceeds the preceding highest high and the EMA slope exceeds the positive level.
Cross-check
Cross-check the prices and settings at the same time.
Check
Check the bars referenced, how equal values are handled and the bar where the mark is placed.
Caution
Arrows and dots are not recommendations to place or close orders.

Compare setting differences

Indicator
Channel Period=20, Angle=0.1. An example with a shorter breakout range and a looser slope condition. The arrows and the middle line change.
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
Angle is the change per 1 bar of the price difference multiplied by 10000; it is not an angle, points or pips. The default 0.32 with Start=6 and End=0 is the condition that the EMA difference over 6 bars is greater than 0.000192. How readily marks appear changes with the symbol's price unit. Even with Angle=0, the slope must be strictly positive or negative. The line starts from the Channel Period-th bar, and arrows from bar max(Channel Period, Start Shift)+1. The EMA starts with the first midpoint price and is updated with the coefficient 2/(EMA Period+1). Changing the history start position can change the values.
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

When the current high exceeds the preceding highest high and the EMA slope exceeds the positive level.

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

With false and End Shift=0, arrows appear and disappear with the current bar's high and low and the EMA slope. If End Shift is 1 or more, the slope is fixed within the same bar, and the position of a mark for an established breakout moves with the high and low. Even with true, the midline is updated. History corrections are a separate matter.

6

Installation and checking the package contents

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

Number of bars in the high/low range

English item name
Channel Period
Input name
InpChannelPeriod
Default
28
Allowed range
Integer 1–500
Description
The breakout for arrows is calculated up to the preceding bar; the orange middle line is calculated including the current bar.

EMA period of the midpoint price

English item name
EMA Period
Input name
InpEMAPeriod
Default
120
Allowed range
Integer 1–1000
Description
The EMA line itself is not drawn.

Older side for measuring the slope

English item name
Start Shift (bars)
Input name
InpStartShift
Default
6
Allowed range
Integer 1 to 100
Description
The number of bars back from the current bar.

Newer side for measuring the slope

English item name
End Shift (bars)
Input name
InpEndShift
Default
0
Allowed range
Integer 0 or more and less than Start Shift
Description
0 includes the forming price in the slope. At 1 or more, the slope does not use the current bar.

Minimum slope

English item name
Angle Threshold
Input name
InpAngle
Default
0.32
Allowed range
0 to 1000
Description
Up requires a value above this, down a value below the negative of this. For the unit, see the main text.

Show the middle line

English item name
Show Middle Line
Input name
InpShowLine
Default
true
Allowed range
true / false
Description
Even with false, the arrow condition does not change.

Show marks on closed bars only

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
true shows no mark on the latest forming bar. In products with a line, the line on the current bar is updated. For the behavior with false, check the main text.

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.

Forming bar and history

With false and End Shift=0, arrows appear and disappear with the current bar's high and low and the EMA slope. If End Shift is 1 or more, the slope is fixed within the same bar, and the position of a mark for an established breakout moves with the high and low. Even with true, the midline is updated. History corrections are a separate matter.

Mark positions

Up arrows are drawn 10 pixels below the low, and down arrows 10 pixels above the high. This is not a fixed distance in price.

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.

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

Angle is the change per 1 bar of the price difference multiplied by 10000; it is not an angle, points or pips. The default 0.32 with Start=6 and End=0 is the condition that the EMA difference over 6 bars is greater than 0.000192. How readily marks appear changes with the symbol's price unit. Even with Angle=0, the slope must be strictly positive or negative. The line starts from the Channel Period-th bar, and arrows from bar max(Channel Period, Start Shift)+1. The EMA starts with the first midpoint price and is updated with the coefficient 2/(EMA Period+1). Changing the history start position can change the values.

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 another indicator

Calculates the EMA of the midpoint price between the high and low. g=10000×(EMA End Shift bars earlier−EMA Start Shift bars earlier)÷(Start Shift−End Shift). An up arrow if the high strictly exceeds the highest high of the preceding Channel Period bars and g>Angle Threshold. A down arrow if the low strictly falls below the preceding lowest low and g<−Angle Threshold. No mark is placed when values are equal. Only the orange middle line is the average of the highest high and lowest low over the same number of bars including the current bar.

Displays overlap

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

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

Calculates the EMA of the midpoint price between the high and low. g=10000×(EMA End Shift bars earlier−EMA Start Shift bars earlier)÷(Start Shift−End Shift). An up arrow if the high strictly exceeds the highest high of the preceding Channel Period bars and g>Angle Threshold. A down arrow if the low strictly falls below the preceding lowest low and g<−Angle Threshold. No mark is placed when values are equal. Only the orange middle line is the average of the highest high and lowest low over the same number of bars including the current bar.

Initial values and exceptions

Angle is the change per 1 bar of the price difference multiplied by 10000; it is not an angle, points or pips. The default 0.32 with Start=6 and End=0 is the condition that the EMA difference over 6 bars is greater than 0.000192. How readily marks appear changes with the symbol's price unit. Even with Angle=0, the slope must be strictly positive or negative. The line starts from the Channel Period-th bar, and arrows from bar max(Channel Period, Start Shift)+1. The EMA starts with the first midpoint price and is updated with the coefficient 2/(EMA Period+1). Changing the history start position can change the values.

Package contents and dependencies

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