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

Stall Reversal ZigZag

After new highs or lows stop, confirms a turn from a bar count or a break of the close, together with a range condition. The price of the earlier extreme is shown on the bar where the turn was decided.

Indicator name: Stall Reversal ZigZagMetaTrader 5Price chart

Vertical position is the previous extreme; horizontal position is the bar that confirmed the turn

Confirm the stall in new extremes + bar count/close + rangePeak priceMark of an earlier highBar where the turn was decidedThe mark is not moved back to the peak bar.
Schematic diagram of how to read it. This is not an actual terminal screen.
1

A red down arrow is a confirmed peakA Crimson mark is placed at the previous high's price on the bar that turned downward. It is not an instruction to sell on that bar.

2

A green up arrow is a confirmed troughA LimeGreen mark is placed at the previous low's price on the bar that turned upward. It is not necessarily the low of that bar.

3

The blue line connects confirmed pointsThe DodgerBlue zigzag connects confirmed points. No leg is drawn toward the latest unconfirmed extreme.

Min Bars default 12Size default 15 pointsDefault 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
Bars after the stall / Min Bars Without A New Extreme (1 to 1000)
InpMinBars
12 → 4

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 settingsInpMinBars = 12
Stall Reversal ZigZag default settings
Defaults: Min Bars 12, Reversal Size 15 point. Arrows are at the price of the earlier high or low and appear on the bar that confirmed the turn. Some marks at the bottom edge of the screen touch the edge.
View the screen in detail at full size
Stall Reversal ZigZag default settings (actual size)
Settings change exampleInpMinBars = 4
Stall Reversal ZigZag settings change example
Change example: only Min Bars was changed to 4. On this screen, the turn marks increase. The setting does not always increase them at the same rate, and the close and range conditions still remain.
View the screen in detail at full size
Stall Reversal ZigZag 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

Read the time of a mark

Distinguish the bar that made the peak or trough from the bar where the mark appears. The mark did not announce the past high or low at that time.

A bar count alone does not make a turn

Besides the count condition, the stall state, the range, and the high and low conditions of the turning bar are needed.

The line stopping is by design

If the next turn is not confirmed, the line is not extended beyond the last point.

3

What it measures

It measures stalls in new highs and lows and the turn conditions. It does not show future price movement or a win rate.

From rising to falling

A stall is recognized on a bar whose high does not reach the reference high. When the count reaches 0, or the close falls below the reference low, the turn decision begins.

Range and high conditions

The direction turns downward when that bar's low is strictly below extreme − Size×point and that bar's high is also below the reference high. From falling to rising, the conditions are reversed.

Handling of the count

The count returns to Min Bars when a new extreme is made. Equal values are not new extremes. When the decision begins, the stall flag is cleared, so it can differ from a simple consecutive bar counter.

Price output

When a turn is decided, the extreme price of the previous leg is placed on the turning bar. The drawing is shifted later in time; it is not a line that traces the candle highs and lows.

4

Situations for reading the display

New highs continue

Indicator
The next peak mark has not appeared yet
Cross-check
The latest new highs and the sequence of prices
Check
Read it as an unconfirmed state
Caution
The absence of a mark does not guarantee that the rise continues

A red arrow appears

Indicator
A peak where the turn downward was confirmed
Cross-check
The mark's price and the earlier high
Check
Record the time it was displayed
Caution
It does not mean you could trade at the mark's price

A green arrow appears

Indicator
A trough where the turn upward was confirmed
Cross-check
The mark's price and the earlier low
Check
Read it as a past trough confirmed later
Caution
It does not predict a bottom

Make the settings smaller

Indicator
Changes from Min Bars and Size
Cross-check
Compare on a separate chart with the same history
Check
Check the increase or decrease of small turns
Caution
It does not indicate recommended settings or improved returns
5

Steps for checking the display

1

Check the point unit

Size is in the symbol's point unit. 15 is not 15 pips.

2

Match arrows to prices with the default values

Red is an earlier high and green is an earlier low. The horizontal position is the confirming bar.

3

Make sure there is no latest leg

For price movement after the last mark, no line appears until a new turn is decided.

4

Compare settings changes on the same history

The screen example with Min Bars 4 is for explanation. The same frequency of appearance does not necessarily occur on actual symbols and timeframes.

6

Installation and checking the package contents

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

Bars after the stall

English item name
Min Bars Without A New Extreme (1 to 1000)
Input name
InpMinBars
Default
12
Allowed range
Integer from 1 to 1000
Description
The initial value of the count that is decreased after new highs and lows stall. A break of the close can move to the decision earlier, so this setting does not guarantee a minimum interval.

Price range required for a turn

English item name
Reversal Size (points, 1 to 100000)
Input name
InpSize
Default
15
Allowed range
Integer from 1 to 100000, points
Description
The width required from the extreme to the opposite high or low of the turning bar. Being equal does not meet the condition. 15 points is 0.00015 if point=0.00001, and 0.15 if point=0.01.

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

Normal updates and recalculation

In normal updates that process closed bars with the same inputs and the same history, the output of confirmed dots is not changed. Settings changes or reloading history trigger recalculation.

Display on the forming bar

With Closed Bars Only=false, provisional marks may appear on the latest bar too. They may disappear as the high, low or close changes, so distinguish them from confirmed marks.

Initial state

Looks for a direction using the high and low of the first bar as the reference. The first direction is decided when the high and low both rise or both fall. A turn mark does not appear merely because the first direction has been decided.

Visible lines and data

When a new dot is confirmed, a line is added between it and the previous dot. The dot output is not moved into the past, but interpolated lines between dots can appear later.

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 lines or marks appear

Check whether the initial direction is undecided, the turn conditions are not met, Size is large, or the history is insufficient.

No turn even after 12 bars

The Min Bars count alone is not enough. Check new highs and lows and stalls, a break of the close, and the strict range and high/low conditions.

Arrows are away from the candles

The price is an earlier extreme and the horizontal position is the bar that confirmed the turn, so they are displayed apart.

Marks are cut off at the edge of the screen

Adjust the vertical price scale and the display range. Do not judge results for the whole history from the marks at the edge of the published image alone.

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

Exact order when rising

If the current bar's high is below the reference high, the stall flag is set, and the count is decreased in that state. On a new high, the extreme and the reference high are updated and the count is reset. When the count is 0 or close < reference low, the stall flag is cleared, and then current bar low < extreme − Size×point and current bar high < reference high are evaluated. Note that the flag is cleared even if the range is not enough.

Equal values and the initial reference

Updating an extreme means a strictly higher high or strictly lower low. Equal values do not update it. Right after the initial direction is decided, part of the reference high and low remains at the values of the first bar. Because the reference is updated by later strict new extremes and turns, only the first leg can differ from the usual description.

Output mapping

buffer 0/1 are the zigzag peaks/troughs and make up 1 DRAW_ZIGZAG. 2 is Confirmed Top (Crimson, symbol 234), 3 is Confirmed Bottom (LimeGreen, symbol 233). Empty values are EMPTY_VALUE. The direction alternates, and only confirmed points are drawn.

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.