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

Shows with dots highs and lows that are not beaten by the surrounding bars, and confirms peaks and troughs from changes in their sequence. The arrows and the vertices of the blue line are placed not on the bar where the peak or trough was, but on a bar after it could be confirmed.

Indicator name: Fractal Swing ZigZagMetaTrader 5Price chart

Read the small dots and the arrows that confirmed peaks and troughs separately

Fractal dotsConfirmed peakConfirmed troughMarks go on the bar after confirmation
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Small dots are fractalsOrange-red dots are highs and green dots lows. They appear after Bars bars on each side have been checked.

2

Arrows are a separate confirmationA red down arrow marks a confirmed peak, and a bright green up arrow a confirmed trough. Not every small dot gets an arrow.

3

Separate time and priceThe horizontal position of a mark is the confirmation time, and the vertical position is the price of the past candidate. It can be far from the current candle.

MT5 onlyDefault is closed bars onlyBars is the count on one side
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
Confirmation bars on each side / Bars On Each Side (1 to 50)
InpBars
2 → 3

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 settingsInpBars = 2
Fractal Swing ZigZag default settings
Default Bars=2. Displays the blue polyline, red peak arrows, bright green trough arrows and small fractal dots. Some marks are cut off at the top, bottom and left edges.
View the screen in detail at full size
Fractal Swing ZigZag default settings (actual size)
Example of changed settingsInpBars = 3
Fractal Swing ZigZag settings change example
Bars changed to 3. The number of surrounding bars checked and the confirmation time change, and in this example the small dots and the shape of the polyline change. Closed Bars Only stays true.
View the screen in detail at full size
Fractal Swing ZigZag 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

Look at the arrows first

Red pointing down is a confirmed peak, and bright green pointing up a confirmed trough. They are not trading instructions.

Distinguish them from the small dots

When a dot appears, the same place is not necessarily adopted as a swing vertex.

The waiting time is not fixed

Confirming a fractal needs Bars bars. Because it also waits for the peak or trough to be confirmed, the delay from the vertex candidate can be longer than Bars bars.

3

What it measures

Tracks the changes in fractal highs and lows as a state, and shows the time when a peak or trough candidate was confirmed. It is not a calculation that predicts future reversals or ranges.

Fractal conditions

If the center's low is at or below the lows of Bars bars on each side, it is a lower dot; if the high is at or above the highs on each side, it is an upper dot. Equal values are allowed.

From upward to downward

The kept peak candidate is confirmed by a lower fractal lower than the previous lower fractal, or an upper fractal lower than the previous upper fractal.

From downward to upward

The kept trough candidate is confirmed by a lower fractal higher than the previous lower fractal, or an upper fractal higher than the previous upper fractal.

Meaning of the line

The blue line joins the confirmed output points. It does not mean there was a signal at that time on every past bar along the line.

4

Situations for reading the display

There is a dot but no arrow

Indicator
A fractal was found.
Cross-check
Look at the price difference between the previous and next fractals.
Check
Wait until the peak/trough confirmation conditions are met.
Caution
Do not treat every dot as a trading signal.

The arrow is far from the bar

Indicator
An earlier candidate price is placed on the confirming bar.
Cross-check
Cross-check the price axis with the small dots.
Check
Read the horizontal and vertical positions separately.
Caution
It does not necessarily mean you could have traded at that price on that bar.

A peak and a trough on the same bar

Indicator
After the low-side judgment, the high side is also judged.
Cross-check
Check the two arrows and the line.
Check
Read it as the specified behavior where two confirmations happen on the same bar.
Caution
It does not represent the order of price movement within the actual bar.
5

Steps for checking the display

1

Apply with the defaults

Check the display starting from Bars=2 and Closed Bars Only=true.

2

Distinguish dots from arrows

Tell apart the colors and shapes of the high/low dots and the arrows of confirmed peaks and troughs.

3

Read the confirmation time

Marks are placed not on the original peak or trough bar but on a bar after the conditions could be confirmed.

4

Change one thing at a time

When you change Bars, compare with a separate chart, and check not only the number of appearances but also the times.

6

Installation and checking the package contents

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

Confirmation bars on each side

English item name
Bars On Each Side (1 to 50)
Input name
InpBars
Default
2
Allowed range
Integer 1 to 50
Description
Default 2. The number on each side; the range including the center is 2×Bars+1 bars. Making it larger also increases the following bars needed for confirmation.

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

The blue line extends later

When a new confirmation point appears, a segment between it and the previous point is added. Not moving confirmed points is a different matter from no lines being added to past sections.

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.

When the forming bar is included

With Closed Bars Only=false, the high and low of the latest bar used for confirmation change, so the latest dots and arrows can change or disappear.

Difference from the standard ZigZag

Confirms using left and right fractals and the relative highs and lows of their prices, not Depth, Deviation and Backstep. It does not reproduce the positions or shape of the standard ZigZag.

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 line at first

Bars on both sides in the history, and fractals that can confirm a reversal, must be in place. No arrow appears on a side that has no candidate.

Up and down marks are cut off

This is because the earlier candidate price is far from the confirming bar's range. Adjust the chart's vertical axis and visible range.

There are dots on bars with equal values

The fractal conditions allow equal values. This differs from indicators that require strictly higher or lower values.

The input is not accepted

Set Bars to an integer from 1 to 50. Out of range, the calculation does not start.

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

Confirming bar and candidate bar

With the time series in oldest-first order, the confirming bar for a fractal center c is t=c+Bars. Because the arrow's price is taken from the earlier candidate that was kept, the candidate's own center+Bars and the arrow's time do not necessarily match.

Processing order and initial state

It starts in the downward state, and on the same confirming bar it processes the lower fractal and then the upper fractal. Older opposite-side candidates are released as needed. A point with the same type and center bar as the one just drawn is not output twice.

Display buffers

0 and 1 are the high side and low side of the blue ZigZag, 2 the peak arrow, 3 the trough arrow, 4 the upper fractal and 5 the lower fractal. A blank is different from 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

Checked with fixed history that uses positive prices. Zero is also used as an internal value meaning no candidate. It does not guarantee performance for all symbols or long histories. There are no notifications or automated trading.