Green: upward break + upward slope
When the current high exceeds the preceding highest high and the EMA slope exceeds the positive level.
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.
Green: upward break + upward slopeWhen the current high exceeds the preceding highest high and the EMA slope exceeds the positive level.
Red: downward break + downward slopeWhen 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 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.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
When the current high exceeds the preceding highest high and the EMA slope exceeds the positive level.
When the current low falls below the preceding lowest low and the EMA slope falls below the negative level.
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.
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.
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.
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.
Load the history in MT5, and first apply only this product to the chart.
When the current high exceeds the preceding highest high and the EMA slope exceeds the positive level.
Put the default and the change example on separate charts, with the same symbol, timeframe 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.
| Included file | Purpose / location |
|---|---|
| TRI_Donchian_Break_EMA_Slope_Arrows.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 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.
InpChannelPeriodInpEMAPeriodInpStartShiftInpEndShiftInpAngleInpShowLineInpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYIt does not place, modify or close orders. There are no notifications or emails either.
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.
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.
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.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
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.
Check the ranges and combinations in the settings. Keep the inputs for unused methods within range as well.
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.
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.
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.
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.
Only MT5 itself and this manual. Account authentication, external indicators and DLLs are not required.