MT5 indicators← Fractal Supply Demand Zones 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 Supply Demand Zones

Confirms peaks and troughs with the bars on the left and right, and creates zones sized by the price range. An indicator for reading 2 price zones each above and below, and the changes in their state from touches and breaks.

Indicator name: Fractal Supply Demand ZonesMetaTrader 5Price chart

The space between 2 rows of points is 1 price zone. The color shows the display position

After a peak, wait for F bars on the right to confirm itPeak priceThe zone is between the upper and lower edgesConfirmed barThe zone is not drawn back to the left; it is shown from the time of confirmation
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Read the upper and lower edges as a pair2 rows of points of the same color are the upper and lower edges of 1 zone. It is not a filled rectangle.

2

Color is not strengthThe 1st zone above is Crimson and the 2nd is DarkOrange. Below, they are SeaGreen and DodgerBlue. For a zone that contains the close, its resistance or support role is also used to classify it as above or below.

3

The state changes with touches and breaksA touch is not simply the number of times price reached the zone, but the number of times a later fractal meeting the conditions was confirmed. The size of the state code is not a future rebound probability.

Default 7 and 15 bars on each side2 zones each above and belowStrength values 0 to 4MT5, 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
Zone width multiplier / Zone Fuzz Factor (0.01 to 10)
InpFuzz
0.75 → 2
Extend outward / Extend Zones
InpExtend
true → false

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 settingsInpFuzz = 0.75 / InpExtend = true
Fractal Supply Demand Zones default settings
Defaults: Fast 7, Slow 15, Fuzz 0.75, Extend true. The upper and lower edges of price zones are lined with dots. Places where the height or color of dots changes also include changes in the nearest ranking.
View the screen in detail at full size
Fractal Supply Demand Zones default settings (actual size)
Settings change exampleInpFuzz = 2 / InpExtend = false
Fractal Supply Demand Zones settings change example
Change example: Fuzz changed to 2 and Extend to false. Because the width and the outward extension were changed at the same time, the zone positions and the touch and end results also change. Zones near the upper and lower edges can be off screen.
View the screen in detail at full size
Fractal Supply Demand Zones settings change example (actual size)

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.

2

How to read it in 30 seconds

First look at the 2 rows of the same color

Check the price zone with the upper and lower edges as 1 pair. Do not read a single point as a trading signal.

Appears later than the bar where it formed

A candidate can be used only after the Fast number of bars on the right is complete. By default, the indicator waits for 7 bars on the right to close.

Separate the reasons it disappeared

Besides ending and lifetime, a zone also becomes invisible because of display filters or because it dropped out of the nearest 2 zones.

3

What it measures

It measures price zones built from confirmed local peaks and troughs, and the later history of touches and breakouts.

Width of the price zone

The average true range of 7 bars up to the peak or trough bar is multiplied by Fuzz, and half of that is used as the width basis. It does not measure supply and demand from volume or order size.

Weakness and state code

A zone starts in the weak state. If the peak or trough also holds in the Slow window on the left and right, the weakness is cleared. However, the display code gives priority to the touch history, so a zone can be internally weak even if it is Verified.

Breaks and role reversal

In a resistance role, a break is when the high strictly goes beyond the upper edge; in a support role, when the low strictly goes beyond the lower edge. If the zone is weak, it ends. If it is not weak, the role reverses on the 1st break, and it ends when the next break comes without a reset by a touch.

What a touch resets

A touch is added when the price of a later fractal matching the role is inside the zone, and there is no in-zone fractal of the same kind in the 10 bars before it. A touch resets the break count to 0, so a role reversal is not necessarily 1 per lifetime.

4

Situations for reading the display

Price approaches a zone

Indicator
The close and the upper and lower edges of nearby zones
Cross-check
Whether the candle's high and low are inside or outside the zone
Check
Record the position relative to price
Caution
Does not guarantee where price will stop in future or an order price

A zone jumps midway

Indicator
The height of a row of points of the same color changes
Cross-check
Movement of the close and the appearance of other zones
Check
First check whether the display rank may have changed
Caution
The same color is not an identifier of a fixed zone

A broken zone disappears

Indicator
The corresponding rows of points are no longer visible
Cross-check
Check Show Turncoat and the other settings, and lifetime
Check
Read internal ending and hiding separately
Caution
Even after a reversal, the state changes with touches

Touches increase

Indicator
Strength code 3 or 4
Cross-check
The zone's role and the time the fractal was confirmed
Check
Read it as a classification of past touches
Caution
3 and 4 are not success rates or trading scores
5

Steps for checking the display

1

Look at the whole with the defaults

Check the meaning of the display starting from 7 and 15 bars on each side and Fuzz 0.75.

2

Pair the upper and lower edges of the same color

The 2 zones above and 2 zones below are ranks on that bar. Do not track the same zone by color alone.

3

Distinguish state from hiding

Check the display settings for Weak, Untested and Turncoat. Even when the display is turned off, the internal zone calculation continues.

4

Compare changes on separate charts

Changing the width, the bars on each side or the lifetime also recalculates past results.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Fractal_Supply_Demand_Zones.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 13 inputs. Change them on the Inputs tab of the properties. The English item names defined in the source are shown together with the input names.

Bars on each side of the fast fractal

English item name
Fast Fractal Bars On Each Side (1 to 50)
Input name
InpFast
Default
7
Allowed range
Integer from 1 to 50
Description
The number of bars on each side. With 7, the decision uses 15 bars including the center, and confirmation comes after 7 bars on the right.

Bars on each side of the slow fractal

English item name
Slow Fractal Bars On Each Side (2 to 100, more than fast)
Input name
InpSlow
Default
15
Allowed range
Integer from 2 to 100, larger than Fast
Description
With 15, 31 bars including the center. This is the decision that clears a zone's weakness. A zone that does not hold in the slow window stays weak.

Zone width multiplier

English item name
Zone Fuzz Factor (0.01 to 10)
Input name
InpFuzz
Default
0.75
Allowed range
Finite value from 0.01 to 10
Description
Multiplied by half the 7-bar average true range. It is not specified in points.

Extend outward

English item name
Extend Zones
Input name
InpExtend
Default
true
Allowed range
true / false
Description
true widens the upper edge of a peak and the lower edge of a trough outward by the base width. Even with false, the inner width remains.

Zone lifetime

English item name
Zone Life (bars, 50 to 10000)
Input name
InpBack
Default
1000
Allowed range
Integer from 50 to 10000 bars
Description
The zone ends on the bar where the number of bars counted from the center peak or trough exceeds this value. It is not counted from the confirming bar.

Show Weak

English item name
Show Weak Zones
Input name
InpShowWeak
Default
true
Allowed range
true / false
Description
Display of zones with state code 0. It is not a setting that hides internal weakness in general.

Show Untested

English item name
Show Untested Zones
Input name
InpShowUntested
Default
true
Allowed range
true / false
Description
Display of code 2 (weakness cleared, no touches, no reversal history).

Show Turncoat

English item name
Show Turncoat Zones
Input name
InpShowTurncoat
Default
false
Allowed range
true / false
Description
Display of code 1 (reversal history, current touch count 0). Default false. A zone that became code 3 after a touch is not hidden by this setting.

Closed bars only

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
true leaves the latest forming bar empty. false also draws the provisional result of the latest bar, which changes until the bar closes.

Brand display

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Turns the brand text and QR display on or off. The calculation conditions do not change.

Brand position

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Allowed range
Top left, top right, bottom left, bottom right
Description
Choose the display position from the four corners of the chart.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer, pixels
Description
The horizontal distance from the selected corner. It is not used in the calculation.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer, pixels
Description
The vertical distance from the selected corner. It is not used in the calculation.
8

Usage specifications

Timing of drawing and saving

By default only closed bars are processed. With normal updates using the same inputs and the same history, past output values are not changed. History additions or settings changes may recalculate the whole.

Roles and upper/lower classification

A zone that contains the close is classified as upper if its role is resistance, and lower if its role is support. An upper zone is not necessarily entirely above the close.

Limits and merging

Zones are not merged. Up to 300 zones are held internally, and when full, new zones are not added. Existing zones are not automatically pushed out from the oldest.

Zones broken before confirmation

For a new zone, breaks from the bar after the center up to the confirming bar are also checked. If it is broken as a weak zone in that interval, it may not appear on the screen.

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

No zones appear

Check for insufficient history, the wait for bars on the right, a break before confirmation, the display settings, lifetime, and the nearness rank. The larger Fast is, the later the display starts.

The color of the same zone seems to change

The color corresponds to above/below and rank. It is not a color coding by the zone's own strength.

The count does not increase even though price touched

A price touch alone is not enough. A later fractal must be confirmed, inside the zone, and meet the spacing condition for the previous 10 bars.

Strength is not visible on screen

Strength is not drawn as a line or text; it is held as a value in the data output. The product specifies the Data Window item names, but the display has not been verified.

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

Calculation order

On each bar: lifetime end → weakness cleared by Slow confirmation → breaks on that bar → touches by Fast confirmation → new zone creation and break check from just after the center → display rank decision. If a break and a touch occur on the same processing bar, the break is judged first, and a zone that disappeared there is not revived by the touch.

Equal values, width and initial values

Equal values on the older side are allowed; equal values on the newer side exclude the peak or trough. New zones are created from center index 7 onward. If high and low fractals hold at the same time, the high side takes priority. ATR is the simple average of the true range of the latest 7 bars including the center.

Priority of strength codes

4 or more touches = 4 Proven, 1 to 3 touches = 3 Verified, 0 touches with reversal history = 1 Turncoat, no reversal history with weakness cleared = 2 Untested, others = 0 Weak. It does not mean that internal weakness is cleared in numerical order.

Output mapping

0 to 7 are Upper 1 upper/lower edge, Upper 2 upper/lower edge, Lower 1 upper/lower edge, Lower 2 upper/lower edge (symbol 158). 8 to 11 are Strength in the same order (DRAW_NONE). The 1st zone is width 2 and the 2nd is width 1. Empty values are EMPTY_VALUE.

Verified scope

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.