MT5 indicators← Reversal Amount 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

Reversal Amount ZigZag

Confirms a reversal when price pulls back from an extreme by more than a fixed range or a percentage of price. The height of a vertex is the extreme price, and the horizontal position is the bar that confirmed the reversal.

Indicator name: Reversal Amount ZigZagMetaTrader 5Price chart

Hold the extreme → pull back by more than the specified amount → vertex on the confirming bar

Held top pricePullback boundaryBar that confirmed the reversalDiagram: the arrow position is not the time the extreme was made
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Blue lineConnects confirmed tops and bottoms.

2

Red tops, green bottomsThe held extreme price is shown on the bar that confirmed the reversal.

3

2 points on the same barBecause of the calculation order, both a top and a bottom can be confirmed on 1 bar.

Default: 50 pointsCan also switch to a percentage of priceDefault is closed bars onlyMT5, 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
Points needed for a reversal / Reversal Points (1 to 100000)
InpPoints
50 → 100

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 settingsInpPoints = 50
Reversal Amount ZigZag default settings
Defaults: Points, 50 points. In the published data there are many dots, and the vertical lines are also prominent. Check the marks at the top and bottom edges at full size as well.
View the screen in detail at full size
Reversal Amount ZigZag default settings (actual size)
Settings change exampleInpPoints = 100
Reversal Amount ZigZag settings change example
Change example: only Reversal Points was changed to 100. An example where there are fewer points in the same range. It is not a recommended value.
View the screen in detail at full size
Reversal Amount 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

Horizontal position is the confirmation time

Points are not drawn back at the extreme's bar; they are placed on the bar that confirmed the reversal.

Specify the pullback amount

Points are in the price point unit; the percentage mode is a ratio to the price being compared. It is not a pullback ratio relative to the previous leg.

Not the actual order within the bar

The calculation rule is low → high for bullish and unchanged bars, and high → low for bearish bars. It does not reproduce the actual order in which prices were reached.

3

What it measures

Records whether the pullback from the held extreme exceeded the threshold. It differs from zigzags decided by a bar-count window or a ratio to the previous leg.

Unit of Points

Points × the symbol's point is the price width. If point is 0.00001, 50 points is 0.00050; if point is 0.001, it is 0.050. Do not confuse them with pips.

Basis of the percentage

With comparison price c and percentage p%, in the upward direction a reversal occurs when c×(1+p/100) is smaller than the extreme. It differs from a formula that subtracts p% of the extreme price.

Equality is not included

A pullback exactly equal to the boundary does not reverse; it reverses only when it exceeds the boundary. In the rounded display on screen, they can look equal.

What it does not measure

It does not predict future vertices or profit, and it does not show that you could have traded at the extreme price at that time.

4

Situations for reading the display

A red mark appeared

Indicator
The direction switched from upward to downward.
Cross-check
Separate the height of the red mark from the bar at its horizontal position.
Check
Confirm that price pulled back from the held top by more than the required amount.
Caution
It does not mean you could sell at the top price at that time.

A green mark appeared

Indicator
The direction switched from downward to upward.
Cross-check
Cross-check the bottom price with the time the pullback could be confirmed.
Check
Confirm that the height of the green mark is the held low.
Caution
It does not guarantee a future rise or a time to buy.

A top and a bottom on the same bar

Indicator
The direction reversed both ways while the 2 prices were processed.
Cross-check
Check the calculation order from whether the candle is bullish or bearish.
Check
Read the vertical line as a display that 2 prices were recorded on the same bar.
Caution
It is not evidence that price actually moved in that order within the bar.

Points are crowded

Indicator
The input pullback width may be small relative to the bar range.
Cross-check
Check the point, the number of points and the display range.
Check
Change 1 item at a time on a separate chart and compare.
Caution
The number of points itself does not show prediction accuracy or performance.

Switch to a percentage

Indicator
Set Amount Type to Percent Of The Price.
Cross-check
Check Reversal Percent.
Check
Distinguish a percentage based on price from bar counts or a ratio of the previous leg.
Caution
The value on the side that is not used must also be within the allowed range.
5

Steps for checking the display

1

Apply with the defaults

Check Points, 50, Percent 0.08 and Closed Bars Only true.

2

Confirm the unit

Check the price width from the symbol's point and the number of points.

3

Separate time and price

The horizontal position of a mark is the confirming bar, and its height is the extreme price. The latest candidate is not drawn.

4

Compare 1 item at a time

Change only the number of points or the percentage on a separate chart with the same history. The change example is not a recommended value.

6

Installation and checking the package contents

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

Type of pullback amount

English item name
Amount Type
Input name
InpType
Default
Points
Allowed range
Points / Percent Of The Price
Description
Points is the number of points × point; the percentage mode is a percentage of the comparison price. Default Points.

Points needed for a reversal

English item name
Reversal Points (1 to 100000)
Input name
InpPoints
Default
50
Allowed range
Integer 1 to 100000
Description
Used in Points mode. Default 50. A reversal occurs when the boundary is exceeded. Even in percentage mode, a value outside this range is rejected at loading.

Percentage needed for a reversal

English item name
Reversal Percent (0.001 to 50)
Input name
InpPercent
Default
0.08
Allowed range
0.001 to 50 (%)
Description
The default 0.08 means 0.08%. The basis is the comparison price, not the extreme or the previous leg. Even in Points mode, a value outside the range is rejected at loading.

Use closed bars only

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
true does not process the latest forming bar. With false, points and arrows on the latest bar appear and disappear. If the bar changes between bullish and bearish, the calculation order also changes.

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 4000
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 4000
Description
Adjusts the vertical margin from the specified corner in pixels.
8

Usage specifications

Confirmed dots and segments

When closed bars are added with the same history and settings, confirmed dots are not moved into the past. Do not read a segment added from a new dot as having been visible from earlier.

Recalculation

Recalculates on settings changes, correction or additional loading of history, and changes of the start position. In these cases, the display is not guaranteed to stay unchanged.

Order within a bar

Bearish bars are treated as high → low, others as low → high. The tick order or the actual path is not reconstructed.

Initial direction

Starts as upward at the first price. If it is a down bar, a top may appear on the first bar. The initial display changes depending on where the history begins.

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

There is no line yet

If no pullback exceeds the threshold, no points appear. Several points are needed to connect a line.

No mark on the latest bar

With true, the forming bar is not processed. Even with false, nothing appears unless the conditions are met.

Arrows are away from the bars

By design, the extreme price is drawn on the confirming bar, so it does not necessarily match the confirming bar's high or low.

The same even after changing settings

The value on the side that is not selected is not used in the reversal calculation. Depending on the display range, differences can be hard to see.

Inputs are not accepted

Keep both Points and Percent within range. The side that is not used is also checked.

Cut off at the edge or overlapping

Adjust the price scale and the display range, and also check the actual-size screen. When there are 2 points on 1 bar, they form a vertical line.

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

Judgment formula

Let the extreme be E, the comparison price c, the number of points N, point q, and the percentage p%. Upward: c+Nq<E (percentage: c×(1+p/100)<E); downward: c−Nq>E (percentage: c×(1−p/100)>E). Equality is not included, and the decision is made after the extreme is updated.

2 prices and output

Up to 1 reversal per 1 price and up to 2 reversals per 1 bar. Tops and bottoms are output to the 2 buffers of DRAW_ZIGZAG and to their respective arrows.

Held state

The direction, the extreme price and its bar are held, but the output goes to the confirming bar. Candidates are not drawn on past bars in advance.

Scope of the published images

M1 is the timeframe shown when the display example was made. The price data is mainly at 30-minute intervals, and the image does not show how often marks appear on actual 1-minute bars.

Scope of verification

The published images are screens from before the brand display was added. The on-screen display of the product with the brand display has not yet been verified.