MT5 indicators← Gann Count 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

Gann Count Swing

Counts new lows after a top and new highs after a bottom, and switches the direction at the specified count. The height of a vertex is the extreme price, and the horizontal position is the bar that confirmed the turn.

Indicator name: Gann Count SwingMetaTrader 5Price chart

Count new extremes in the opposite direction → turn at the specified count → vertex on the confirming bar

Held top priceNew low ①New low ②The top is shown hereDiagram: the count is kept even if there are bars without new extremes in between
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Blue lineConnects confirmed tops and bottoms. The latest unconfirmed candidate is not drawn.

2

Red tops, green bottomsThe height is the held extreme, and the horizontal position is the bar that confirmed the turn.

3

What is counted is new extremesIt is neither an ordinary count of consecutive bars nor a window of the latest N bars.

Default: 2 new extremesEqual highs and lows are not countedDefault 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
Number of new extremes needed for a turn / Swing Bars (1 to 10)
InpBars
2 → 3

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 settingsInpBars = 2
Gann Count Swing default settings
Defaults: Swing Bars = 2, Closed Bars Only = true. Displays the blue line, red marks for tops and green marks for bottoms. The horizontal position is not necessarily the bar that made the extreme.
View the screen in detail at full size
Gann Count Swing default settings (actual size)
Example of changed settingsInpBars = 3
Gann Count Swing settings change example
Change example: only Swing Bars was changed to 3. An example where there are fewer points in the same published range. The specification is not that increasing the value always just thins out the same points.
View the screen in detail at full size
Gann Count Swing 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

Read the count

In the upward direction, 1 is counted each time price falls further below the low since the top. In the downward direction, new highs are counted.

Read the confirmation time

On the bar where the specified count is reached, the held top or bottom price is drawn.

Not a buy or sell instruction

The colors and arrows are records of calculated turns. They also do not show that you could trade at that price.

3

What it measures

Measures how many new extremes have accumulated in the opposite direction from a swing extreme. It does not measure price range, percentage of price or the probability of a future turn.

Counting in the upward direction

When a new top is made, the low reference is reset to that bar's low, and the count of new lows is set to 0. After that, each time price falls below the reference low, the reference and the count are updated.

Counting in the downward direction

When a new bottom is made, the high reference is reset to that bar's high, and the count of new highs is set to 0. After that, each time price rises above the reference high, it is counted.

Not N consecutive bars

The count remains even if there are bars without new extremes in between. Bars contained within the previous bar are skipped, and equal highs and lows are not counted as new extremes.

When both sides are exceeded

A bar that exceeds both the held swing high and swing low gives priority to extending the current direction. Merely engulfing the previous bar does not always mean an extension.

4

Situations for reading the display

A red peak appeared

Indicator
The count of new lows reached the specified number, and the direction switched downward.
Cross-check
Separate the red price from the time of the bar with the mark.
Check
Read it as the held top price recorded on the confirming bar.
Caution
It does not show that you could sell at that price at that time.

A green trough appeared

Indicator
The count of new highs reached the specified number, and the direction switched upward.
Cross-check
Cross-check the bottom price with the bar that confirmed the pullback.
Check
Confirm that it is not a mark that was visible from the moment the low was made.
Caution
It does not guarantee a future rise or a time to buy.

The count reset midway

Indicator
A new extreme was made in the current direction.
Cross-check
Check for a new top if upward, or a new bottom if downward.
Check
Confirm that the recount on the opposite side has started.
Caution
A total of N bars in the opposite direction does not always cause a turn.

A large outside bar appeared

Indicator
When both held boundaries are exceeded, extension takes priority.
Cross-check
Compare with the boundaries held by the swing, not the high and low of the previous bar.
Check
Check the rule that the direction is not decided by whether the candle is bullish or bearish.
Caution
It does not reproduce the order in which the high and low were reached within the bar.

Changed the setting from 2 to 3

Indicator
More new extremes are needed before a turn.
Cross-check
Compare with a separate chart with the same history and display range.
Check
Check not only the number of points but also the turning bars and prices.
Caution
Because the later states also change, it is not necessarily simple thinning or improved accuracy.
5

Steps for checking the display

1

Apply with the defaults

Check Swing Bars 2 and Closed Bars Only true.

2

Separate time and price

The height of an arrow is the extreme price, and the horizontal position is the bar that confirmed the turn.

3

Count the new extremes

Tracks how many times the opposite-side reference was exceeded further since the previous extreme. Bars without a new extreme and equal values are not counted.

4

Compare 1 item at a time

Change only Swing Bars on a separate chart. Check why the points increased or decreased and where the resets occurred.

6

Installation and checking the package contents

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

Number of new extremes needed for a turn

English item name
Swing Bars (1 to 10)
Input name
InpBars
Default
2
Allowed range
Integer 1–10
Description
Default 2. In the upward direction, new lows since the top are counted; in the downward direction, new highs since the bottom. It is not a number of consecutive bars.

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.

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

First direction

At the start of the history there is no direction, and new highs and new lows are counted. The side that reaches the specified count first is chosen; if both reach the same count at the same time, it is upward. No dot is placed for this first direction decision.

Confirmed dots and segments

When closed bars are added with the same history and settings, confirmed dots are not moved into the past. The next dot and segment are added later. Do not read that segment 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.

Information not used

Whether bars are bullish or bearish, the order in which prices are reached within a bar, and volume are not used as conditions for turns. There are no notification, order or file output functions.

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

Deciding the initial direction alone does not produce a point. A turn is needed after that, and several confirmed 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 turn conditions are met.

No turn even after N bars

Only new extremes in the opposite direction are counted. Bars without a new extreme in between are not counted, and a new extreme in the current direction resets the count to 0.

Arrows are away from the candles

By design, the past extreme price is placed on the confirming bar. It does not necessarily match the confirming bar's own high or low.

Inputs are not accepted

Set Swing Bars to an integer from 1 to 10. Values outside the range are rejected at loading.

Marks are cut off at the edge or overlap

Adjust the price scale and the display range, and also check in the actual-size display.

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

Strict new extremes and inside bars

Only a high greater than the held high, or a low smaller than the held low, is a new extreme. Bars whose high is at or below the previous bar's high and whose low is at or above the previous bar's low are skipped. Values equal to a boundary are not counted.

Extension priority and reset

In the upward direction, a new high is processed first, the low reference is reset to that bar's value, and the new-low count is set to 0. In the downward direction, a new low is processed first. Even if both sides are exceeded, 1 bar does not reverse 2 times.

Drawing and output

The zigzag points are connected with DRAW_SECTION, and tops and bottoms are output to separate arrows. Up to 1 confirmed point is output on 1 bar. Unconfirmed candidates are not drawn.

Scope of the published images

M1 is a label on the image. 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.