MT5 indicators← Fractal Level Grid 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 Level Grid

Places 2 levels from peaks and troughs confirmed with bars on the left and right, and draws 5 lines dividing the space between them into 6 equal parts. When a high or low breaks through a level, it searches again for an earlier level that meets the conditions.

Indicator name: Fractal Level GridMetaTrader 5Price chart

Confirm peak/trough → update level → divide the space between the 2 into 6 equal parts

Upper LevelMidline (1/2)Lower LevelThe grid is evenly spaced. These are not Fibonacci ratios.
Schematic diagram of how to read it. This is not an actual terminal screen.
1

The 2 light-blue lines are the referenceThese are Upper Level and Lower Level. They are updated from the bar where the peak or trough was confirmed, and are not placed back on the center bar of the peak or trough.

2

Gold is the midline, gray is the rest of the gridThe difference between the 2 is divided into 6 equal parts. Gold is the center; gray is 1/6, 2/6, 4/6 and 5/6.

3

When broken, earlier levels are also searchedWhen a level is broken on a side with no new peak/trough confirmation, earlier levels are searched starting from the newest. The same level may be kept even if a wick breaks through.

Default 50 bars on each sideStrict inside bars are not countedClosed bars only by defaultMT5, no account authentication
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 on the left / Left Bars (bars not inside the previous bar, 1 to 500)
InpLeftBars
50 → 8
Bars on the right / Right Bars (bars not inside the previous bar, 1 to 500)
InpRightBars
50 → 8

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 settingsInpLeftBars = 50 / InpRightBars = 50
Fractal Level Grid default settings
Defaults: Left Bars=50, Right Bars=50, Filter=10, Closed Bars Only=true. Lower Level is below the displayed range, and part of Upper Level is also off the top. Where a line is not visible, it does not necessarily mean there is no calculation.
View the screen in detail at full size
Fractal Level Grid default settings (actual size)
Settings change exampleInpLeftBars = 8 / InpRightBars = 8
Fractal Level Grid settings change example
Change example: Left Bars and Right Bars changed to 8. The rest stay at their defaults. This example reduces the number of bars needed for confirmation, and the 2 levels are visible on screen. These are not recommended values.
View the screen in detail at full size
Fractal Level Grid settings change example (actual 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

The peak/trough bar and the output bar are different

It is judged on the bar where the right-side bar count is met, and the levels are drawn from that bar. The 50 bars on the right are counted excluding inside bars.

Read the lines as price divisions

The 6-part grid is for organizing the relative position of price. It does not represent the success rate of rebounds or breakouts, or a trading direction.

Filter is not a line-width setting

It is a tolerance used to judge whether an earlier level can be adopted. It is not a setting that widens the displayed levels themselves up or down by the Filter amount.

3

What it measures

Shows, as prices, the history of confirmed peaks and troughs and the results of retracing broken levels. It does not guarantee future support or resistance, profit targets or order positions.

Bars that are counted

Only bars whose high is strictly lower than the previous bar's and whose low is strictly higher than the previous bar's are excluded from the count. Bars with the same high or low are counted.

Peak/trough confirmation

The specified number of bars is secured before and after the center; if no bar in that range has a higher high than the center, it is a peak, and if none has a lower low, it is a trough. Inside bars are also included in the high/low comparison, and tied extremes are accepted.

Order of level updates

If a new peak or trough is confirmed on that side, its price takes priority. If none is confirmed and a high or low strictly breaks through the existing level, an earlier level is searched for.

Searching for an earlier level

On the Upper side, it selects the most recent record where the close is less than or equal to "past Upper + the difference between the 2 levels at that time × Filter ÷ 100". On the Lower side, it is the most recent record where the close is greater than or equal to "past Lower − the same difference × Filter ÷ 100". If none is found, the current high or low is used.

Grid calculation

With Lower as D and Upper as U, the lines are D + (U−D) × 1/6, 2/6, 3/6, 4/6 and 5/6. The midline is the average, not the Fibonacci 38.2% or 61.8%.

Names and numerical order

Upper and Lower are the names of the levels updated from the high side and the low side respectively. With a large Filter and the like, the two can be reversed or equal. Upper is not necessarily always higher, and price is not necessarily between the 2 lines.

4

Situations for reading the display

Switched to a new level

Indicator
Either a peak or trough meeting the left and right bar counts was confirmed, or a level was broken.
Cross-check
Compare the bar where it changed with the positions of earlier highs and lows.
Check
Distinguish the center bar from the confirmation bar.
Caution
Do not reinterpret changes in the lines as trading signals.

The wick broke through but the line stayed the same

Indicator
If Filter is positive, the close is used to judge where to return to.
Cross-check
Check whether the close is within the tolerance of the earlier level.
Check
It may select the immediately preceding level itself again.
Caution
With Filter=0 the comparison uses highs and lows, so the behavior changes.

Only part of the grid is visible

Indicator
The spacing between levels may be wider than the price range on screen.
Cross-check
Check the vertical axis range and the history you are viewing horizontally.
Check
Even in the default published image, the lower level is off screen.
Caution
Not being visible alone does not mean it is a malfunction.

Price crossed the midline

Indicator
The position of price relative to the average of the 2 levels has switched.
Cross-check
Also check whether the midline itself was updated at the same time.
Check
Read price movement and level switches separately.
Caution
The midline is not a line that specifies orders or closing positions.

Upper looks lower than Lower

Indicator
The 2 levels are updated separately, and there is no processing that swaps them into numerical order.
Cross-check
Check for a large Filter and the update history of each level.
Check
Distinguish the line labels from the actual prices.
Caution
Do not decide inside/outside the band or direction from the upper/lower names alone.
5

Steps for checking the display

1

Load history with the defaults

Start with left/right 50, Filter 10, closed bars only true. Even the first candidate alone needs 101 counted bars including the center, and confirming both upper and lower may take longer.

2

Find the 2 levels and the midline

Check the 2 light-blue levels, the gold center and the 4 gray lines. Also watch for lines outside the vertical display range.

3

When changing bar counts, also check the delay

Increasing Right Bars increases the following bars needed for confirmation. Because of inside bars, the specified count and the number of chart bars elapsed do not match.

4

Compare Filter as a separate condition

Do not change it together with the left/right counts; first compare with positive values. Switching to 0 changes not only the tolerance but also the price used for the judgment.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Fractal_Level_Grid.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 on the left

English item name
Left Bars (bars not inside the previous bar, 1 to 500)
Input name
InpLeftBars
Default
50
Allowed range
Integer 1 to 500
Description
Default 50. The number of bars needed before the candidate center. Strict inside bars are not counted. It is not time or minutes.

Bars on the right

English item name
Right Bars (bars not inside the previous bar, 1 to 500)
Input name
InpRightBars
Default
50
Allowed range
Integer 1 to 500
Description
Default 50. The number of bars needed after the center. Output occurs after confirmation on the last target bar. Handling of the forming bar follows Closed Bars Only.

Tolerance for selecting an earlier level

English item name
Filter (percent of the band, 0 to 1000)
Input name
InpFilter
Default
10
Allowed range
Integer 0 to 1000 (%)
Description
Default 10. A percentage of the difference between the 2 past levels being searched. If positive, the judgment uses the close; at 0, the Upper side uses the high and the Lower side uses the low. It does not widen the lines themselves and is not an input in points or pips.

Judge closed bars only

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
Default true. All 7 lines are empty on the latest forming bar. With false, the forming bar is calculated, and that bar's levels may change or disappear.

Brand display and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Switches the brand text and QR display on or off.

Brand display 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
Choose from the four corners of the chart.

Brand horizontal offset

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer. Limited to 0 to 1000
Description
Adjusts the horizontal margin from the specified corner in pixels.

Brand vertical offset

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer. Limited to 0 to 1000
Description
Adjusts the vertical margin from the specified corner in pixels.
8

Usage specifications

Confirmed values with the same history and settings

Levels on closed bars are not redrawn to the center of peaks or troughs found later. Recalculating from the beginning after adding to or correcting the history or changing settings may change results.

Latest bar and line connections

By default the latest bar is blank. Adjacent bars where the level switches are connected by a line, so a step change may look diagonal.

Start of display

The 7 lines are displayed once both upper and lower levels are available as positive prices. The implementation is not intended for uses that handle prices of zero or below.

Functions not included

There are no Fibonacci fan or retracement objects, arrows, notification sounds, automatic orders, specification of another timeframe or account authentication. There is also no input to change the grid ratios.

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

Nothing appears at first

History sufficient for the left and right bar counts and confirmation of both a peak and a trough are required. Many inside bars make confirmation take longer.

Right is 50, but nothing changes after 50 bars

It is judged on 50 bars excluding inside bars. The candidate must also actually meet the highest-high or lowest-low condition.

Are bars with the same high or low counted?

Yes. Only bars whose high is strictly lower and whose low is strictly higher are excluded.

The lines jump up or down

The price switches when a new peak or trough is confirmed or an earlier level is re-adopted. It is not a smooth moving average line.

Increasing Filter does not widen the band

Filter is a condition for selecting where to return to. It does not uniformly push the level prices outward, and the result may be the same.

The settings are not accepted

Left Bars and Right Bars are integers from 1 to 500, and Filter is an integer from 0 to 1000. Loading is refused if they are out of range.

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

Confirmation bars and inside bars

No new fractal is confirmed on bars that are not counted. However, level breaks and the search for earlier levels may still be performed. The extreme comparison covers all bars between the chosen left and right ends.

History searched and equality

The history from the bar where upper and lower first both existed onward is searched, starting from the newest. A value equal to the tolerance boundary can also be adopted. The Filter width is calculated not from the current band but from the band of each past bar that is a candidate.

When switched to 0

With Filter=0, past levels are searched using highs and lows rather than the close. This differs from a close-based judgment with the tolerance simply set to zero.

Example of reversal

While Upper=12 and Lower=4 are held, with Filter=100 the same upper level can be selected for a close of 20 or less. If a new trough at 13 is confirmed in the meantime, the result can be Upper=12 and Lower=13. The grid divides the space between those 2 numbers as calculated and does not correct the numerical order.

Scope of verification

The published images are display examples. M1 is the timeframe display at the time the display examples were made; the price series is mainly at 30-minute intervals, with 1-minute intervals at the end. This does not mean the same frequency of occurrence on actual 1-minute bars. The images are from before the brand display was added. The on-screen display of the product with the brand display has not yet been verified.