MT5 indicators← HTF ZigZag Levels 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

HTF ZigZag Levels

Confirms peaks and troughs on a higher timeframe built from the chart's bars, and shows marks after confirmation, high/low levels and points using ATR.

Indicator name: HTF ZigZag LevelsMetaTrader 5Price chart

Higher-timeframe bar closes → mark on the first bar of the next period → high and low kept

Closed higher-timeframe barNext time periodMark on the first bar of this periodMark price = candidate price, time = after confirmationOnly the ATR points also move on the current bar
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Red and green arrows are points after confirmationRed is the higher-timeframe high and green the low. They are placed on the first chart bar of the next period after the higher-timeframe bar closes.

2

Orange-red and gray are the last high and lowOrange-red keeps the last confirmed high and gray the last confirmed low. The blue line joins the confirmed points.

3

The small round dots are a separate calculationThey are ATR points, greenish if the last point is a low and reddish if it is a high. They are not actual orders or fixed stops.

MT5 onlyHigher timeframe aggregated from the chartATR points move on the forming bar
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
Timeframe to calculate / Timeframe
InpTf
H1 → H4
Higher-timeframe range for extremes / Depth (longer bars, 2 to 1000)
InpDepth
12 → 5

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 settingsInpTf = H1 / InpDepth = 12
HTF ZigZag Levels default settings
Defaults: Timeframe H1, Depth 12. Displays the blue connecting line, red and green arrows, lines holding the high and low, and small ATR dots. Some arrows touch the top and bottom edges.
View the screen in detail at full size
HTF ZigZag Levels default settings (actual size)
Settings change exampleInpTf = H4 / InpDepth = 5
HTF ZigZag Levels settings change example
Change example: Timeframe H4, Depth 5. In this visible range, the connecting lines and kept levels become large. Some red arrows at the top edge are cut off. The ATR point period and multiple were not changed.
View the screen in detail at full size
HTF ZigZag Levels 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

Check the timeframe

Check Timeframe and the chart timeframe. Combinations that cannot be handled fall back to the chart timeframe.

Tell marks and round dots apart

Arrows are confirmations by closed higher-timeframe bars; round dots are the ATR calculation on the current bar.

Different from the actual high/low bar

Because arrows are shown after confirmation, they lag behind the positions of past peaks and troughs.

3

What it measures

Shows the price structure confirmed on the higher timeframe and the position relative to the chart's range. It is not an indicator that decides future reversals or stop-loss prices.

Building the higher timeframe from the chart

Instead of reading another timeframe's history directly, the chart's bars are grouped by time period. On long timeframes, the incomplete period at the start of the history is not used.

Points and levels only after confirmation

When a point is confirmed on higher-timeframe bar k, the mark appears on the first bar of the next period k+1. The high/low hold lines are also values up to the closed period.

ATR calculation

The true range of the chart's bars is simply averaged over ATR Period bars. It is not the higher-timeframe ATR. The first display comes after the period's number of bars.

Position of the ATR points

If the last confirmed point is a low, current high − multiple × ATR; if it is a high, current low + multiple × ATR. It can come inside the candle, and the upper and lower names do not guarantee that it is always placed outside the bar.

4

Situations for reading the display

Check the higher-timeframe structure

Indicator
Compare the kept high and low with the current price.
Cross-check
Cross-check the chart's price movement with Timeframe.
Check
Confirm that the mark is a past candidate price.
Caution
It is not a mark that anticipates the time of a reversal.

The round dots move

Indicator
ATR points use the high, low and range of the latest bar.
Cross-check
Distinguish whether it is the arrow or the round dot that changes on the same bar.
Check
Compare using values after the bar closes.
Caution
Do not treat the round dots as a fixed stop price.

Making the timeframe longer

Indicator
The time needed for aggregation and confirmation changes.
Cross-check
Check Timeframe and Depth separately.
Check
Look at the differences in display on several charts.
Caution
It does not mean that results improve if it is made longer.
5

Steps for checking the display

1

Decide the target timeframe

The default is H1. With Current, the chart's bars are used, and confirmed points appear on the next chart bar.

2

Tell points and lines apart

Check the red high and green low arrows, the orange-red / gray hold lines and the blue connecting line.

3

Read the ATR points separately

Round dots are set by the current bar's price and the ATR multiple. They are not the higher-timeframe vertex price itself.

4

Compare by changing conditions

Depth is a number of higher-timeframe bars and ATR Period a number of chart bars. Do not mistake the two for the same bar unit.

6

Installation and checking the package contents

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

Timeframe for calculation

English item name
Timeframe
Input name
InpTf
Default
H1
Allowed range
Current / supported MT5 timeframes
Description
Default H1. Shorter timeframes, or fixed timeframes that are not an integer multiple, fall back to the chart timeframe. There is a special case for selecting weekly and monthly; when the chart is weekly or monthly, a different timeframe is not used and it falls back to the chart timeframe.

Higher-timeframe range for extremes

English item name
Depth (longer bars, 2 to 1000)
Input name
InpDepth
Default
12
Allowed range
Integer 2 to 1000
Description
Default 12. Counted in bars of the resolved timeframe.

Price difference needed to confirm a reversal

English item name
Deviation (points, 0 to 100000)
Input name
InpDeviation
Default
5
Allowed range
Integer 0 to 100000 points
Description
The confirmation condition is met when price strictly exceeds this price difference from the candidate. A point is the symbol's smallest display unit and is not necessarily a pip.

Higher-timeframe bars to wait

English item name
Backstep (longer bars, 0 to 1000)
Input name
InpBackstep
Default
3
Allowed range
Integer 0 to 1000
Description
Default 3. The number of bars since the higher-timeframe candidate was updated.

Price used for calculation

English item name
Price
Input name
InpPrice
Default
High And Low
Allowed range
High And Low / Close
Description
High And Low uses the high and low; Close uses only the close.

ATR period

English item name
ATR Period (chart bars, 1 to 1000)
Input name
InpAtrPeriod
Default
12
Allowed range
Integer 1 to 1000
Description
Default 12. Simply averages the true range of the chart's bars.

ATR multiplier

English item name
ATR Multiple (0 to 100)
Input name
InpAtrMult
Default
2
Allowed range
0〜100
Description
Default 2.0. At 0, the low-side round dot comes at the high and the high-side round dot at the low. Making it larger moves them away from price.

Brand and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Only the display is switched; the calculation does 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

Confirmation time and vertex price

The horizontal position of a dot is the time it was confirmed, and the vertical position is the price of the past candidate. It may be away from the candle at that time.

Later addition of the blue line

When the next confirmed dot appears, a segment is added between it and the previous dot. It does not mean that a signal appeared at that time on each past bar along the segment.

When history or settings are changed

The statement that confirmed dots are not moved applies to adding bars with the same history and the same settings. It does not guarantee the same display after history corrections, additional loading or input changes.

Higher timeframe and current bar

Confirmed dots and high/low holding lines are read from closed higher timeframe bars. The round ATR dots also change on the current chart bar, and there is no Closed Bars Only setting.

Timeframe periods and data gaps

Aggregation follows timeframe periods in terminal time. Periods with no trading are not filled in artificially. It is not guaranteed to always match the higher timeframe history the terminal holds separately.

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

Many blanks at first

The period at the start of the history is excluded, and it waits for higher-timeframe confirmation and the next period. If there is only one vertex, the level on the opposite side is blank.

Selecting H4 does not give H4

If it cannot be used in combination with the chart timeframe, it falls back to the chart timeframe. Check the supported conditions.

Arrows are far from the candles

This is because they are placed on the bar after confirmation at a past candidate price. Adjust the price axis and the visible range.

A round dot is inside the bar

The calculation is high − multiple × ATR or low + multiple × ATR. When the multiple is small, for example, it comes inside the bar.

Loading is refused

Check the supported timeframes and the ranges of Depth, Deviation, Backstep, ATR Period and ATR Multiple.

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

Timeframe resolution and aggregation

Current is the chart timeframe. The same timeframe is used as is. If the chart is weekly or monthly, a request for a different timeframe falls back to the same timeframe. Otherwise weekly and monthly are allowed, and fixed-length timeframes are used if they are longer than the chart and their seconds divide evenly.

Point confirmation and connecting lines

Candidate updates take priority, and on a higher-timeframe bar that does not update the candidate, the opposite-side extreme, exceeding Deviation and at least Backstep bars are checked. Output first appears in the period after the confirming period. When a later point forms, a line segment is added.

Start of ATR

The true range is max(high, previous close) − min(low, previous close). The first bar is high − low. When the 0-based bar number i is at least the period P, the P bars from i−P+1 to i are averaged and the point is shown.

Display buffers

0 connecting line, 1 high mark, 2 low mark, 3 last high, 4 last low, 5 low-side ATR point, 6 high-side ATR point. A blank is different from zero.

Scope of verification

The published screens are display examples. They do not guarantee performance for all symbols, all timeframes or long histories. There are no notifications, automated trading or simultaneous display of several timeframes.