MT5 indicators← Close Break Swing 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

Close Break Swing

Confirms tops and bottoms on the bar where the close breaks the opposite level, or where the wait bars and the pullback width are met. The height of a mark is the held extreme price, and the horizontal position is the confirming bar.

Indicator name: Close Break SwingMetaTrader 5Price chart

New extremes stop → 2 turn conditions → vertex on the confirming bar

Held top priceWait bars + pullback widthOpposite levelClose breaks below
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Blue line and red and green marksBlue is the line connecting confirmed vertices. Red is a top and green is a bottom, drawn on the bar that confirmed the turn.

2

2 kinds of conditionAfter confirming that new extremes have stopped, a turn occurs by a close breaking the level, or by the wait bars and the pullback width. The close route does not wait for the bar count or width.

3

Different from the time of the extremeThe horizontal position of a mark is the confirmation time. It is not drawn back on the past bar where that price was made.

Default 12 bars / 500 pointsClose break, or bars + widthDefault 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
Wait bars after new extremes stop / Bars Without A New Extreme (1 to 500)
InpMinBars
12 → 6
Minimum pullback width for the bar route / Minimum Size in Points (1 to 100000)
InpMinSize
500 → 200

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 / InpMinSize = 500
Close Break Swing default settings
Defaults: Bars Without A New Extreme 12, Minimum Size 500 points, Closed Bars Only true. Check the small number of vertices.
View the screen in detail at full size
Close Break Swing default settings (full size)
Settings change exampleInpMinBars = 6 / InpMinSize = 200
Close Break Swing settings change example
Change example: 6 bars, width 200 points. This example changes 2 items at the same time. The marks increase, but the difference cannot be read as the effect of only one input.
View the screen in detail at full size
Close Break Swing settings change example (full 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

Read the top and bottom prices

The height of the red and green marks is the extreme price held before the turn.

Read the confirmation time

The bar with the mark is the time the condition was confirmed. It does not mean you could trade at that price.

Separate the route that was met

With a close breaking the level, the bar count and width are not needed. With the bar route, the pullback width and the current bar's high/low condition are also needed.

3

What it measures

Measures, after new extremes have stopped, a close breaking to the opposite side and turns by time and price width. It is not a line that predicts future highs or lows.

First direction

Relative to the first bar, the direction is up if both the high and the low are higher, and down if both are lower. No point is drawn until both conditions are met.

Mark that the updates have stopped

In an up direction, the internal mark is set on a bar whose high is strictly lower than the held high. An equal high alone does not set it. The down direction is the reverse.

Reversal by close

When the internal mark exists and the direction is up, the direction reverses if the close falls below the held opposite-side low. This can happen on the same bar as the first lower high.

Reversal by bar count and size

The count decreases from the bar after the internal mark is set. When the remaining count is 0, the pullback from the top to the low exceeds the specified size, and the current high is lower than the top, the direction turns down. The reverse also applies.

Equal values and new extremes

An equal high or equal low does not reset the count. If price moves to a new extreme without reversing, the count and the internal mark are reset.

Point units

The price size is Minimum Size × the symbol's _Point. If _Point is 0.00001, 500 points is 0.00500. Do not confuse it with pips or a fixed number of digits.

4

Situations for reading the display

A red peak appeared

Indicator
A reversal from up to down has been confirmed.
Cross-check
Check whether the close broke the held low, or whether the bar count and the pullback size were met.
Check
Read the horizontal position and the price of the mark separately.
Caution
The mark was not visible from the moment of that top, and it is not a sell instruction.

A green trough appeared

Indicator
A reversal from down to up has been confirmed.
Cross-check
Check whether the close rose above the held high, or the bar count and size conditions for the down direction.
Check
Separate the confirming bar from the position of the earlier low.
Caution
It does not guarantee that you could have bought at that price or that a rise followed.

A point appeared sooner than the set bar count

Indicator
The break of the level by the close may have occurred.
Cross-check
Check the internal mark and the opposite-side level that the close crossed.
Check
Read the 2 paths as separate.
Caution
Minimum Size is not a minimum size that applies to every reversal.

No point after the bar count has passed

Indicator
The size condition or the high/low condition of the current bar may not be met.
Cross-check
Check that the pullback strictly exceeds the specified size, not just equals it.
Check
An equal-value touch alone is not treated as met.
Caution
It is not a simple timer.

Reversed on an outside bar

Indicator
If an internal mark already exists, the close path can be met first.
Cross-check
Look not only at the new high and new low of the same bar, but also at the close and the earlier level.
Check
Read the order as: the reversal check comes before the extreme update.
Caution
It is not an indicator that always gives priority to updating the new extreme.
5

Steps for checking the display

1

Apply with the defaults

Check bar count 12, size 500 points, Closed Bars Only true.

2

Read the first direction and the extremes

Look at the initial condition where both high and low rise / fall, and the extremes held after that.

3

Compare the 2 reversal paths

Distinguish a break of the level by the close from the waiting bar count and pullback size counted from after the internal mark.

4

Read the time and price of a point

It is a past extreme price placed on the confirming bar. Read the time a line segment is completed as the time the next point appears.

6

Installation and checking the package contents

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

Waiting bars after the updates stop

English item name
Bars Without A New Extreme (1 to 500)
Input name
InpMinBars
Default
12
Allowed range
Integer 1 to 500
Description
Default 12. The count decreases from the bar after the first bar with a strictly lower high / higher low. The close-break path does not wait for this count.

Minimum pullback size for the bar-count path

English item name
Minimum Size in Points (1 to 100000)
Input name
InpMinSize
Default
500
Allowed range
Integer 1 to 100000 points
Description
Default 500. A pullback larger than the input × the symbol's _Point is required. An equal size does not meet it. The close-break path does not require this size.

Use closed bars only

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
The default true does not evaluate the forming bar. With false, the latest bar is also evaluated, and the point changes until the bar closes.

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 / Top right / Bottom 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 2000
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 2000
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 to the bar of a past extreme. However, the segment connecting dots is added only once the next dot appears. The segment cannot be read as having been visible from earlier.

Recalculation and the latest bar

Settings changes, adding older history or correcting history may change the whole result. With Closed Bars Only=false, marks on the forming bar appear and disappear.

Price and time

A mark may appear at a price away from the high/low of the confirming bar. It is not a price at which a trade could have been made on that bar, nor a record of execution.

Initial opposite-side level

Before the first turn, the opposite-side high or low of the first bar is used. A previously confirmed swing point does not necessarily exist.

Functions not included

There is no line extending to an unconfirmed extreme, no Fibonacci, no pitchfork, and no notification or order function.

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

Counting does not start while the same high continues

The start mark in an up direction requires a high strictly lower than the held high. An equal value alone does not start it.

Equal-value bars after the mark is set

The count decreases, and the bar does not trigger a reset as a new extreme. However, on the reversal bar of the bar-count path in an up direction, the high must be lower than the top.

Changing Minimum Size gives the same points

The reversal may be by the close-break path. This input acts only on the bar-count and pullback-size path.

The line does not appear yet

After the initial direction is decided, it waits for a reversal. With only 1 point no line can be drawn; a 2nd point is needed.

Inputs are not accepted

The bar count is an integer from 1 to 500 and the size an integer from 1 to 100000. 0 cannot be used.

Marks are cut off at the edge or overlap

Adjust the chart's display range and price scale. The published images can also be checked at full size.

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

Order of the bar count

If an internal mark exists up to the previous bar, the remaining count is first reduced by 1, and then the conditions of the current bar are checked. The bar on which the mark is first set is not counted. For example, with a count of 2, the remaining count is 0 on the 2nd bar after the start bar.

Strict comparison

In an up direction, high < held high is the start mark. Close < held low is path 1. Path 2 is remaining count 0, low < extreme − size, and high < held high. The down direction is the reverse, and the price comparisons do not include equality.

Order of reversal and extreme update

The reversal check is done first, and then the extreme of the remaining direction is updated. On an outside bar that already has a start mark, the earlier extreme may be confirmed by the close break, and the new high or low of that bar may not be extended in the same direction.

Initial state

The high and low of bar 0 are the reference, and the direction is decided when, from bar 1 onward, both the high and the low are higher / lower. No reversal occurs while there is no direction. No vertex is drawn yet at the time the first direction is set.

Drawing and preparation

The blue line is a DRAW_SECTION connecting the confirmed points; red and green are tops and bottoms. At most 1 point is confirmed on 1 bar. The times of the confirming bar and of the extreme are not necessarily the same.

Published images and scope verified

M1 is the timeframe shown when the display example was created. The price series is mainly at 30-minute intervals and does not show the frequency of actual 1-minute bars. The published images are screens before the brand display was added; the screen display on the product with the brand display has not been checked yet.