Look at the color of the dots
Red is the output name Upper Line and blue is Lower Line. The actual values are not re-sorted by size.
It makes 2 parallel lines from the latest 3 confirmed fractals and keeps the position visible on each bar as a series of dots. It is not a band that always encloses price.
Read the positions of the 3 pointsIt uses the base line connecting the newest and oldest points and a parallel line through the middle point. If a bar has both a peak and a trough, the peak takes priority.
The dots are a historyThey draw the position at the time of each bar. When the set of 3 points changes, the dots jump. It is not a display that extends one current line over the whole past.
Not an enclosing bandDespite the names Upper/Lower, red can be lower than blue. Do not judge price being outside the 2 lines alone as abnormal or a trading opportunity.
Compares the default settings and a settings change example on a screen with only this product applied.
This is an example for explaining the display. M1 on the screen is the timeframe display at the time the display examples were made and does not show the frequency of occurrence on actual 1-minute bars. The published images are screens from before the brand display was added. The calculation and drawing conditions are the same, and the included version has display settings for the brand text and QR. The settings change example is not a recommended value. Details can be checked in the actual-size display. Also check the price scale of the main chart and the positions of the candles.
Red is the output name Upper Line and blue is Lower Line. The actual values are not re-sorted by size.
It uses the fractals of the chart being displayed. There is no input to select a different higher timeframe.
By default, the latest bar is empty. No dots appear before 3 points are available either.
It records the position of geometric lines made from the arrangement of 3 points. It does not guarantee that support or resistance holds or the probability that price returns.
A peak whose high is strictly higher than each of the 2 bars on either side, or a trough whose low is strictly lower. It is confirmed when the 2nd bar on the right closes, and the latest 3 points are held in newest-first order. They do not need to alternate between peaks and troughs.
The line connecting the oldest and newest points is the base, and a parallel line through the middle point is made. The horizontal direction is calculated in numbers of bars and is not divided by real time.
If the price of the middle point is higher than the newest point, the parallel line is Upper; otherwise the base line is Upper. This rule does not compare the sizes of the 2 lines at that time.
Offset×point is added to Upper, and the same amount is subtracted from Lower. When negative, red moves down and blue moves up, but because there are segments where upper and lower are reversed, the width does not always shrink.
It uses the displayed timeframe, and Offset is in units of the symbol's point.
It waits for the conditions on the 2 bars on each side and for the close to be confirmed.
Check not only whether price is enclosed, but also the jumps in the dots and the updates of the 3 points.
Check the sign and the amount of movement. The change example of 20 is not a recommended value.
| Included file | Purpose / location |
|---|---|
| TRI_Three_Fractal_Channel.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.
InpOffsetInpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYValues are used from the time the 2nd bar to the right closes, not from the center of the peak or trough. They are not values that were known at the time of the center bar.
With Closed Bars Only=false, the high and low of the forming bar make fractals form or lapse. Distinguish the latest lines and marks from confirmed values.
In normal updates with the same inputs and the same history, output on closed bars is not changed afterward. Settings changes, additions to or corrections of the history, and reloading trigger recalculation.
When the set of 3 points changes, it switches to a new line. Past dot rows keep their positions at the time. No trendline object extending into the future area on the right is drawn.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
Check whether 3 fractal points are available and whether the history is sufficient. It is the default specification that only the latest bar is empty.
These are lines made from 3 points, and there is no width adjustment to enclose all prices. It is not necessarily abnormal.
Because red and blue are not sorted by size, if upper and lower are reversed, the visible width can widen. Read it by the rule: added to red, subtracted from blue.
The difference becomes hard to see because of the small point and the vertical scale. Check the values and settings, and zoom in the display if needed.
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.
In newest-first order, let the points be (x1,y1),(x2,y2),(x3,y3), and k=(y1−y3)/(x1−x3). The base value for the current bar t is B=y3+(t−x3)k, and the parallel value P=B+y2−(y3+(x2−x3)k). If y2>y1, Upper=P and Lower=B; otherwise Upper=B and Lower=P. Finally, Offset is added and subtracted.
If the value equals any of the 2 bars on either side, the fractal on that side is not formed. If the same center meets both the peak and trough conditions, only the peak is adopted. The adopted points do not necessarily alternate between upper and lower.
buffer 0 is Upper Line (Crimson) and 1 is Lower Line (DodgerBlue). Both are dot series with DRAW_ARROW, symbol 158 and width 2. Empty is EMPTY_VALUE. They are not continuously interpolated as lines.
The published images and numbers were checked on the product before the brand display was added. For the product with the brand display, we confirmed that the calculation part is the same, but the on-screen display has not yet been verified. Intermediate calculation values, the subwindow name and Data Window display, and behavior with long history or symbols with different price digits have not been verified.