MT5 indicators← Fractal Channel Lines 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

Fractal Channel Lines

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.

Indicator name: Fractal Channel LinesMetaTrader 5Price chart

Shown from the point when the right-side bars are complete, not from the center bar

K=1: compares 1 bar on each sideCenter bar → high recognized 1 bar laterLine from the highLine from the lowThe evaluation may change until that 1 bar closes
Schematic diagram of how to read it. This is not an actual terminal screen.
1

High and low candidatesCompares K bars on each side of the center. With the default K=1, that is 3 bars in total.

2

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.

3

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.

MT5, price chartLatest bar changesZIP with the indicator only
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 required on each side of the center / Fractal Bars On Each Side (1 to 20)
InpSize
1 → 5
Follow new extremes / Move The Line To A New Extreme
InpRaise
true → false
Share to pull the lines toward each other / Margins (share of the width, 0 to 0.5)
InpMargins
0 → 0.2

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 settingsInpSize = 1 / InpRaise = true / InpMargins = 0
Fractal Channel Lines default settings
Defaults: K=1, high/low, following new extremes on, margin 0. A gray middle line is drawn between blue and orange-red.
View the screen in detail at full size
Fractal Channel Lines default settings (full size)
Settings change exampleInpSize = 5 / InpRaise = false / InpMargins = 0.2
Fractal Channel Lines settings change example
An example with K=5 (11 bars in total), no following, and Margins=0.2. 3 settings are changed at once. The levels hold the most recent matching fractal, and the lines move toward each other by 20% of the width.
View the screen in detail at full size
Fractal Channel Lines 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

Blue line

Uses the most recent high fractal as the reference. By default, it is raised when a later high exceeds it.

Orange-red and middle line

The low side uses the opposite rule. The gray dotted line is the simple midpoint of blue and orange-red, not a moving average.

Note on the latest bar

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.

3

What it measures

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.

Fractal conditions

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.

Start of the lines

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.

High/low or body

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.

Margin share

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.

4

Situations for reading the display

Line updates upward

Indicator
A new high fractal, or the default following of extremes, is in effect.
Cross-check
Check the following setting and the price high.
Check
Do not count every update as a new fractal.
Caution
It is not a definitive signal of a future rise.

Price crosses a line

Indicator
The position of the price relative to a level derived from the past has changed.
Cross-check
Check whether the same bar has closed and check Margins.
Check
Distinguish crossing a level from a confirmed reversal.
Caution
It does not automatically decide to trade or exit.

Lines are flat in the change example

Indicator
With following set to false, the level is held until the next matching fractal.
Cross-check
A larger K also means a longer wait for confirmation.
Check
You can check the sections where a constant level is held.
Caution
A pause does not mean price stability or safety.

Blue is below orange-red

Indicator
With following set to false, the most recent high and low are held separately, so the order can be reversed.
Cross-check
Read them as derived from the high and derived from the low, not as upper and lower.
Check
When reversed, check the order of the lines.
Caution
It is not a band that always encloses the price above and below.
5

Steps for checking the display

1

Apply with the defaults

Provide enough history and wait until both the high-side and low-side conditions are met.

2

Distinguish the center from the recognition point

The condition is evaluated K bars later. Do not read it as if the level were known at the time of the center bar.

3

Distinguish the latest 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.

4

Comparing settings

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.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Fractal_Channel_Lines.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 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.

Bars required on each side of the center

English item name
Fractal Bars On Each Side (1 to 20)
Input name
InpSize
Default
1
Allowed range
Integer 1–20
Description
Default 1. A pattern of 2K+1 bars in total, evaluated K bars after the center.

Use candle bodies

English item name
Use Candle Bodies (not highs and lows)
Input name
InpBody
Default
false
Allowed range
true / false
Description
Default false. When true, the maximum and minimum of the open and close are used.

Follow new extremes

English item name
Move The Line To A New Extreme
Input name
InpRaise
Default
true
Allowed range
true / false
Description
Default true. Updates the high-derived value to a new high and the low-derived value to a new low. Even when false, the fractal evaluation itself on the latest bar is provisional.

Share to pull the lines toward each other

English item name
Margins (share of the width, 0 to 0.5)
Input name
InpMargins
Default
0
Allowed range
0 to 0.5 (a finite number)
Description
Default 0. A share multiplied by the width; with 0.5, the 3 lines overlap. If the held upper and lower values are in reverse order, the calculated width is also negative.

Brand and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Default true. It does not affect the calculation conditions.

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
Default bottom left.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer (pixels)
Description
Default 10. Negative numbers are treated as 0, and values above 4000 as 4000.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer (pixels)
Description
Default 10. Negative numbers are treated as 0, and values above 4000 as 4000.
8

Usage specifications

Confirmed and provisional

The 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.

Order of lines

Without following, the values derived from highs and lows may be in reverse order. They are not reordered automatically.

Changes in history

If past history is added or corrected, the calculation from the initial state may change.

Input rejection

Loading is refused if K is outside 1 to 20, or Margins is outside 0 to 0.5 or is not a valid number.

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

None of the 3 lines is visible

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.

Looks like 1 line

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.

The latest value changes even with following turned off

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.

Lines do not always enclose the price

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.

10

Technical information and specification details

Formula and output

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.

Initial state and time direction

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.

Handling equal values

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.

Differences from other implementations

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.