Blue line
Uses the most recent high fractal as the reference. By default, it is raised when a later high exceeds it.
Holds highs and lows confirmed by the bars before and after, and shows the price position with blue and orange-red level lines and a gray middle line.
High and low candidatesCompares K bars on each side of the center. With the default K=1, that is 3 bars in total.
Evaluated on a later barThe condition is evaluated on the bar K bars after the center and used as a level from that point. During the latest bar, the evaluation is also provisional.
Reading the 3 linesBlue comes from the high, orange-red from the low, and gray is the midpoint between them. Crossing a level is not a trading instruction.
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.
Uses the most recent high fractal as the reference. By default, it is raised when a later high exceeds it.
The low side uses the opposite rule. The gray dotted line is the simple midpoint of blue and orange-red, not a moving average.
Even with following set to false, the fractal evaluation that uses the latest bar changes during the bar. There is no switch to use closed bars only.
It is not a simple highest high and lowest low over a fixed period; it combines the evaluation of local highs and lows with following of later extremes.
The center high is adopted when it is at or above the K older bars and strictly higher than the K newer bars. The low is the opposite. Equal values are allowed on the older side but not on the newer side.
None of the 3 lines is drawn until both a high side and a low side have been found once. At least 2K+1 bars are needed, but that alone does not necessarily start the display.
With Use Candle Bodies=true, the larger and smaller of the open and close are used instead of the high and low. The levels differ from those that include wicks.
With Margins=0, the reference high and low are shown as they are. With 0.2, each line moves inward by 20% of the width; with 0.5, the 3 lines overlap at the midpoint. It is not an input specified in price units or points.
Provide enough history and wait until both the high-side and low-side conditions are met.
The condition is evaluated K bars later. Do not read it as if the level were known at the time of the center bar.
The value of the latest bar updates as the close, high and low change. Do not confuse it with the display on closed bars.
Changing K, body, following and Margins one at a time lets you check their effects separately. The published change example is a comparison with multiple settings.
| Included file | Purpose / location |
|---|---|
| TRI_Fractal_Channel_Lines.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 8 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpSizeInpBodyInpRaiseInpMarginsInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYThe latest bar is included in the evaluation. Even when K bars are available from the center, the high/low candidates and values may change until the last bar closes.
Without following, the values derived from highs and lows may be in reverse order. They are not reordered automatically.
If past history is added or corrected, the calculation from the initial state may change.
Loading is refused if K is outside 1 to 20, or Margins is outside 0 to 0.5 or is not a valid number.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
Both a high fractal and a low fractal are required. Check K and the history. Nothing is drawn during periods where only one side is found.
With Margins=0.5, or when the reference width is 0, the 3 lines overlap. Do not judge the number of lines from the color order alone.
This is because the fractal candidate using the latest bar's high and low changes. Turning off following does not make it closed-bars only.
The following setting, Margins and the time of the held highs and lows are involved. These are level lines derived from the past, not a function that always keeps the price inside.
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 U and L as the held high and low and m as Margins, blue=U−(U−L)m, orange-red=L+(U−L)m, middle line=(blue+orange-red)/2. There are 3 display buffers, all in price units.
Calculated from older bars, comparing both sides of the candidate center c=t−K. The value is shown at the recognition bar t and is not drawn back at the center c. It is empty until both a high and a low are established.
At-or-above / at-or-below is used on the older side, and strict comparison on the newer side. It is not necessarily the same as a symmetric strict comparison or the equal-value sequence handling of the standard indicator.
There is no input to shift the display into the past or future. A full match of all values with other indicators of the same name, including initial values, use of bodies and following, is not guaranteed.