MT5 indicators← Multi Length Break 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

Multi Length Break Marks

Checks the swing direction by breaks of the preceding highs and lows, and shows the extreme of the ended swing as a dot on the bar where the turn was confirmed. A product for comparing 4 lengths on the same chart.

Indicator name: Multi Length Break MarksMetaTrader 5Price chart

The bar where the extreme formed and the bar where the turn is confirmed and the dot is output are different

Earlier extremeDot at the extreme priceBar where the turn was confirmedColor and size are fixed to input fields 1 to 4 (not reordered by length)1: gray2: gold3: blue4: crimson
Schematic diagram of how to read it. This is not an actual terminal screen.
1

The horizontal position is the confirmation barThe dot is not moved back to the position of the past peak or trough; it is placed on the bar where the turn could be judged. By default, it waits until that bar closes.

2

The vertical position is the extreme of the ended swingThe dot's value is the extreme price. On display only, Top is shifted up and Bottom down by 8 pixels. It can look separated from that bar's candle.

3

Colors distinguish the length input fieldsGray, gold, blue and crimson are Length 1 to 4. Colors do not separate rising and falling. Top and Bottom of the same layer have the same color.

4 lengths calculated separatelyDefault 21, 40, 60, 72 barsDots are not connected by linesMT5, 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
Length 1 / Length 1 (bars, 1 to 500)
InpLength1
21 → 5
Length 2 / Length 2 (bars, 1 to 500)
InpLength2
40 → 10
Length 3 / Length 3 (bars, 1 to 500)
InpLength3
60 → 20
Length 4 / Length 4 (bars, 1 to 500)
InpLength4
72 → 40

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 settingsInpLength1 = 21 / InpLength2 = 40 / InpLength3 = 60 / InpLength4 = 72
Multi Length Break Marks default settings
Defaults: Length 1 to 4 are 21, 40, 60 and 72, Closed Bars Only=true. Compare the gray dots with the large gold, blue and crimson dots. Some dots are cut off at the top and bottom edges.
View the screen in detail at full size
Multi Length Break Marks default settings (actual size)
Settings change exampleInpLength1 = 5 / InpLength2 = 10 / InpLength3 = 20 / InpLength4 = 40
Multi Length Break Marks settings change example
Change example: the 4 lengths changed to 5, 10, 20 and 40. Dots for small turns have increased. Shortening does not necessarily catch valid turns earlier. Some dots at the top and bottom edges are cut off.
View the screen in detail at full size
Multi Length Break Marks 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

When a dot appears, check the time

Top is a record of when an upward swing ended, and Bottom of when a downward swing ended. It does not show that an order could have been placed at the past extreme.

Meaning of large dots

By default, later input fields have longer calculation windows, but the size is fixed to the input field. If lengths are entered in reverse order, the largest dot can belong to the shortest calculation window.

Do not make trading decisions on dots alone

The dots appear as a result of price having come back. They do not measure the persistence of a reversal, a trading advantage or fill prices. Do not use the dot's price directly as an order price.

3

What it measures

Examines the highs and lows of the same timeframe with 4 calculation window lengths. It does not show agreement across other timeframes or 4 independent grounds for trading.

Whether price strictly breaks the preceding calculation window

For each length L, the bar is compared with the highest high and lowest low of the preceding L bars, excluding the current bar. If the high exceeds the highest high, the direction is up; if the low breaks below the lowest low, it is down. An equal value alone is not treated as a break.

Bars that break both sides

An outside bar that breaks both sides reverses the direction up to that point. In the initial state with no direction yet, no direction is set and no dot is output.

Price of the turn point

At a reversal, the high or low of the ended swing is recorded. If the outside bar made an extreme beyond it, it is replaced by that bar's extreme.

Differences from the original Break Swing ZigZag

Whereas the original product connects dots with lines for 1 length, this runs the same turn rule separately as 4 sets and places only dots that differ in color and size. All timeframes are the same as the chart.

4

Situations for reading the display

Only the short calculation window turned

Indicator
A dot has appeared on a short-length layer, but not yet on the long layers.
Cross-check
Check the dot's horizontal position, the current price and the last dot that appeared on the long layers.
Check
Organize it as a record of a small pullback; do not treat it as the long wave having reversed too.
Caution
More dots on the short layer alone does not mean more trading opportunities.

Several layers turn on nearby bars

Indicator
Tops or Bottoms of several colors appear at nearby positions.
Cross-check
Check the length of each layer and whether the dots overlap.
Check
Compare them as records of the same price change picked up by different calculation windows.
Caution
Because they use the same price series, this does not mean 4 independent grounds are in place.

Reviewing while holding a position

Indicator
A dot indicating a turn against the direction of your position appeared.
Cross-check
Cross-check the holding and exit conditions you set in advance with the time at which the dot could be confirmed.
Check
Use it as material for review, but do not treat it as an automatic instruction to close or stop out.
Caution
The dot's extreme price is a past price, and you cannot necessarily settle at that price now.

A large bar that breaks above and below

Indicator
It broke both the highest high and the lowest low of the preceding calculation window.
Cross-check
Check that it is not the initial state, and check the outside bar's high and low.
Check
Read the turn record separately from a normal one-sided break.
Caution
Whether the high or the low came first within the bar is not determined.

Many dots overlap

Indicator
Several dots are visible on the same bar at nearby prices.
Cross-check
Zoom in and check whether the same length has been entered in several fields.
Check
Different settings are easier to sort out when compared on separate charts.
Caution
Large dots may hide small dots. A color that is not visible does not necessarily mean it is not calculated.

I want them on the forming bar too

Indicator
Setting Closed Bars Only to false also calculates the latest bar.
Cross-check
Check that the presence and price of dots change before and after the bar closes.
Check
Use the forming-bar display and the closed-bar records separately.
Caution
Do not compare results by mixing them with the confirmation times of the default true setting.
5

Steps for checking the display

1

Match lengths and colors

Check the actual values of Length 1 to 4. The dot widths are 1, 2, 3 and 4, and even if you reorder the values, color and width stay with the input field.

2

Follow the same layer

Follow Tops and Bottoms of the same color in time order and read on which bar each turn was confirmed. There are no connecting lines in the display.

3

Separate price and time

The dot's price is the extreme of the ended swing, and its horizontal position is the bar where it was judged. It does not need to match the current bar's high or low.

4

Make changes for one purpose

When examining differences due to calculation window length, keep Closed Bars Only the same. The change example is a behavior comparison, not a recommended setting.

6

Installation and checking the package contents

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

Length 1

English item name
Length 1 (bars, 1 to 500)
Input name
InpLength1
Default
21
Allowed range
Integer from 1 to 500
Description
Default 21 bars. Gray (DarkGray) dots of width 1. The calculation window for checking the preceding highs and lows.

Length 2

English item name
Length 2 (bars, 1 to 500)
Input name
InpLength2
Default
40
Allowed range
Integer from 1 to 500
Description
Default 40 bars. Gold (Gold) dots of width 2. Direction and extremes are held separately from the other lengths.

Length 3

English item name
Length 3 (bars, 1 to 500)
Input name
InpLength3
Default
60
Allowed range
Integer from 1 to 500
Description
Default 60 bars. Blue (DodgerBlue) dots of width 3. There is no requirement to enter lengths in order of size.

Length 4

English item name
Length 4 (bars, 1 to 500)
Input name
InpLength4
Default
72
Allowed range
Integer from 1 to 500
Description
Default 72 bars. Crimson (Crimson) dots of width 4. The same length can be entered in several fields, in which case the calculation results overlap.

Closed bars only

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
With the default true, the forming latest bar is not judged. With false, the latest bar is also judged, and dots may change until it closes.

Brand and QR display

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Default true. Switches the brand text and QR display on or off. The swing calculation does not change.

Brand reference corner

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Allowed range
Top left, bottom left, bottom right, top right
Description
Default bottom left. The placement of the brand text and QR.

Brand horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer (limited to 0 to 4000 pixels when displayed)
Description
Default 10 pixels. The horizontal margin from the reference corner. If the display cannot be found, set it back to 10.

Brand vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer (limited to 0 to 4000 pixels when displayed)
Description
Default 10 pixels. The vertical margin from the reference corner. It does not affect the calculation conditions.
8

Usage specifications

Default confirmation timing

With true, a dot is placed on the bar being evaluated after that bar closes. It is not added afterward to the past bar where the extreme formed.

Past dots and recalculation

In normal calculation where subsequent bars increase with the same history and the same inputs, dots on closed bars are not moved or deleted. Full recalculation due to settings changes or additions to or corrections of the history is a separate matter.

A display-only product

There are no orders, sound notifications, text signals or on-screen toggle buttons. It is an indicator for checking the display of prices and dots.

Functions not included

There is no display drawn back on the extreme bar, no ATR offset, no specification of the initial calculation range, and no text, sounds or buttons.

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 dots appear at first

Each length is initialized on the bar L bars from the start of the history, and the direction is set after that. Setting the first direction alone does not output a dot; a further turn is required.

Dots are away from the candles

This is normal, because the vertical value is the extreme of the earlier swing and the horizontal position is the turn bar. There is also the 8-pixel display offset.

A large dot appears to be a short length

Even if you swap the lengths, the size stays fixed to input fields 1 to 4. Check the correspondence between colors and input fields.

Dots at the top and bottom edges are cut off

Adjusting the price scale to widen the display range makes them easier to check. The published images also have dots cut off at the edges.

The settings are not accepted

All 4 Lengths are integers from 1 to 500. 0, negative numbers and 501 or more are rejected at initialization.

No lines or notifications appear

This product shows dots only; there are no lines, notifications, text or buttons. The display method differs from the original Break Swing ZigZag.

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

Calculation order and initial state

Bars are processed in order from the oldest. Each layer's direction, highest high and lowest low are independent. After initialization of length L, the preceding L bars are compared for t>L. The first one-sided break only creates the direction, and if the first one is an outside bar, the direction stays 0.

Outside bar price

At a reversal from up to down, the larger of the held highest high and the outside bar's high becomes Top. From down to up, the smaller of the held lowest low and the outside bar's low becomes Bottom. For a one-sided break, it is the held extreme.

Output and pixel offset

There are 8 display buffers, in the order Top and Bottom for Length 1 to 4. The values are prices, and empty is EMPTY_VALUE. Symbol 108, width 1 to 4, Top shifted up 8 pixels and Bottom shifted down 8 pixels. It is not a process that adds or subtracts 8 points to or from the price.

Verified scope

The published images and numerical checks were made by giving fixed price data to the product before the brand display was added. For the product with the brand display, it was confirmed that the calculation part is the same, but its on-screen display has not yet been verified. Whether it gives the same values as other indicators with the same name, behavior over long histories and on symbols with a different number of price digits, and the subwindow name and Data Window display have not been verified.