MT5 indicators← ZigZag Fractal Marks 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

ZigZag Fractal Marks

Checks whether a fractal confirmed on 5 bars is also the highest high or lowest low over the specified number of bars. The results for the 2 periods are color-coded, and a round dot is placed on the confirmation bar 2 bars after the center.

Indicator name: ZigZag Fractal MarksMetaTrader 5Price chart

Color shows the period result; above/below shows high side/low side

Both in the same directionDepth 2 takes priorityDepth 1 onlyMarks go on the bar after confirmation
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Orange: both in the same directionPoints where Depth 1 and Depth 2 both met the high-side condition or both met the low-side condition.

2

Red and blue: one-sided resultsRed adopts the Depth 2 result; blue means Depth 2 has no result and only Depth 1 has one. Red also includes the special case where the two directions conflict.

3

Dot position is measured from the center priceOn the low side the dot is Distance below the center bar's low; on the high side it is above the center bar's high. It is not based on the high/low of the confirmation bar where it is output.

MT5 onlyOutput 2 bars after the centerDistance is in points
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
Extreme range 1 / Depth 1 (bars, 2 to 1000)
InpDepth1
6 → 3
Extreme range 2 / Depth 2 (bars, 2 to 1000, 0 = not used)
InpDepth2
24 → 48

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 settingsInpDepth1 = 6 / InpDepth2 = 24
ZigZag Fractal Marks default settings
Defaults: Depth 1=6, Depth 2=24, Distance=10 points. Orange and blue dots are visible; there are no red dots on this screen. Some dots are cut off at the bottom edge.
View the screen in detail at full size
ZigZag Fractal Marks default settings (actual size)
Settings change exampleInpDepth1 = 3 / InpDepth2 = 48
ZigZag Fractal Marks settings change example
Changed to Depth 1=3 and Depth 2=48. Blue dots have increased, and the classification relative to orange has changed. There are no red dots on this screen either. The Distance and closed-bars-only settings are unchanged.
View the screen in detail at full size
ZigZag Fractal Marks 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

Do not make trading decisions on color alone

Orange represents agreement between the periods. It is not an assessment that the trade is more favorable than blue or red.

Wait 2 bars from the center

A fractal needs 2 bars on each side. By default, output goes to the confirmation bar after the 2nd bar on the right has closed.

Keep period and distance separate

Depth is the number of bars used in the calculation; Distance is a display value that offsets the dot from the price.

3

What it measures

Combines the extreme over the past Depth bars including the center bar with a strict fractal that uses 2 bars on each side. It is not a product that reproduces ZigZag lines or forming candidates.

Strict 5-bar fractal

If the center low is lower than all the lows of the 2 bars on each side, it is the low side; if the high is higher than all of them, it is the high side. If it equals a surrounding value, it is not a fractal on that side.

Depth condition

Checks whether the center is the lowest low or highest high over the past Depth bars ending at the center. This extreme check allows ties. The 2 bars after it are used to confirm the fractal and are not included in the Depth range.

Priority of the 3 colors

Orange if both periods agree in direction. Otherwise red if Depth 2 has a result. Otherwise blue if Depth 1 has a result. Each bar outputs only one color.

Distance unit

Adds or subtracts Distance × the symbol's point to or from the price. A point is the smallest display unit and is not necessarily a pip. The multiplier does not change automatically when you change the timeframe.

4

Situations for reading the display

An orange dot appeared

Indicator
The same-direction condition was met in both periods.
Cross-check
Check the center bar's high/low and the periods.
Check
Read it as an indication of agreement.
Caution
It does not show a reversal success rate.

No red can be found

Indicator
With the current history and settings, there is no case where Depth 2 takes priority.
Cross-check
Check the Depth lengths and the history.
Check
Understand that not every color needs to appear.
Caution
It is not necessarily a malfunction.

Dots are away from the bars

Indicator
They are offset from the center bar's price.
Cross-check
Cross-check with the high/low 2 bars earlier.
Check
Check Distance and the price axis.
Caution
Do not judge direction only from whether the dot is above or below the current bar.
5

Steps for checking the display

1

Check with the 2 default periods

See the color differences with Depth 1=6 and Depth 2=24.

2

Trace back to the center bar

The fractal center is 2 bars before the dot's bar. Check the reference price used for placing the dot above or below.

3

Use only one period

Depth 2=0 disables check 2, and only the blue dots of check 1 are used.

4

Compare with the change example

Compare with the example where Depth is set to 3 and 48. You can also set them so that their sizes are swapped, but the colors are still read by input number.

6

Installation and checking the package contents

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

Extreme range 1

English item name
Depth 1 (bars, 2 to 1000)
Input name
InpDepth1
Default
6
Allowed range
Integer 2 to 1000
Description
Default 6. The number of past bars including the center. There is no requirement to make it shorter than Depth 2.

Extreme range 2

English item name
Depth 2 (bars, 2 to 1000, 0 = not used)
Input name
InpDepth2
Default
24
Allowed range
0, or integer 2 to 1000
Description
Default 24. 0 means no check 2. 1 cannot be used. It can also be set to the same value as Depth 1.

Distance between dot and center price

English item name
Distance (points, 0 to 100000)
Input name
InpDistance
Default
10
Allowed range
Integer 0 to 100000 points
Description
Default 10. At 0 the dot is placed at the same price as the center high or low. It changes only the display position, not the conditions that are met.

Use closed bars only

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
Default true. Output is given after the last bar used for confirmation closes. With false, output is also given on the latest forming bar, and those marks can change or disappear.

Brand and QR

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

Brand position

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Allowed range
Four corners
Description
The default is 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

When history or settings are changed

The statement that confirmed output is not moved is limited to cases where new bars are added with the same history and the same settings. It does not guarantee the same results after history corrections, additional loading or input changes.

Forming confirming bar

With Closed Bars Only=false, whether a fractal forms changes with the high and low of the latest bar, and the latest dot can change or disappear.

When the same period is selected

If Depth 1 and Depth 2 are the same, evaluations in the same direction are combined into orange. Red and blue are not always shown.

Conditions different from the original ZigZag

The match with ZigZag candidates that are redrawn later is replaced with a condition that the center is the extreme within the period. There is no Deviation, Backstep or automatic display distance per timeframe.

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

Few marks

Both a strict fractal with 2 bars on each side and an extreme within Depth are required. Check the history and settings.

Red is shown as Depth 2 Only

Normally it is a check-2-only result, but when the same center has both a high and a low fractal and the two periods differ in direction, check 2 also takes priority and it becomes red.

Dots go off screen

The price difference between the center price and the output bar, or Distance, can be the cause. Adjust the vertical axis and the display range.

Settings are rejected

Use integers: Depth 1 from 2 to 1000, Depth 2 either 0 or 2 to 1000, and Distance 0 to 100000.

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

Time and price

If the center in the time series is c, the output is at t=c+2. The low side is low[c]−Distance×point and the high side is high[c]+Distance×point. By default it also requires bar t to have closed.

When both directions are met

Within each Depth, the low side is checked first, and if it is met it is adopted. If the low side is not met, the high side is checked. If the adopted direction differs between the periods, Depth 2 takes priority.

Display buffers

0 is Both Depths (orange), 1 is Depth 2 Only (red), 2 is Depth 1 Only (blue). An empty value is not a zero value.

Time shown on the published screens

The M1 on the screen is the timeframe shown when the display example was made. The main interval of the fixed data is 30 minutes, so the image does not show the frequency of marks or the waiting time on actual 1-minute bars.

Scope of use

Identical output to the standard ZigZag or the original MT4 indicator is not guaranteed. Performance over long histories and frequency across all symbols are not yet verified. There are no notifications or automated trading.