MT5 indicators← Bar Sequence Swing Points 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

Bar Sequence Swing Points

Counts bars whose high and low both rise or both fall, and connects with lines the price points recognized on a bar in the opposite direction.

Indicator name: Bar Sequence Swing PointsMetaTrader 5Price chart

The price is from the previous bar; recognition and display are on the next bar

Down count → previous low recognized on an up barCount the down barsTo upOutput the previous low on the next barInside and outside bars keep the count; it is not a simple number of consecutive bars
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Up and down countA bar is up if both the high and low are at or above the previous ones, and down if both are at or below the previous ones.

2

Recognized in the opposite directionOn a bar in the opposite direction after the required count is reached, the previous bar's high or low is adopted.

3

Lines connecting pointsThe high side is red and the low side is blue. Points on the same side are connected, and the middle of a line is not a new signal.

Default Qualifying Bars 2Current bar is provisionalLines between points are connected afterward
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
Required number of up or down bars / Qualifying Bars (1 to 100)
InpQualify
2 → 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 settingsInpQualify = 2
Bar Sequence Swing Points default settings
Required bars: 2. Red is the line connecting dots on the high side, blue on the low side. The price of each dot is the value of the previous bar.
View the screen in detail at full size
Bar Sequence Swing Points default settings (full size)
Settings change exampleInpQualify = 4
Bar Sequence Swing Points settings change example
Required count 4. Because the points that meet the condition change, the connection positions and sections of the lines change.
View the screen in detail at full size
Bar Sequence Swing Points 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

Look at both the high and the low

An update of the high alone does not necessarily make an up bar. The low must also be at or above the previous one.

Inside and outside bars keep the count

On a bar that fits neither, the count is kept. It does not mean that all of the most recent Q bars are up or down.

The middle of a line is interpolated

When a later point appears, the line is connected from the previous point. Do not read the line in that section as a signal that was known before.

3

What it measures

This product does not count bullish and bearish candles. It compares the high and low with the previous bar, not the open and close.

From down to up

When the down count is Q or more and an up bar occurs, the previous bar's low is output on the current bar.

From up to down

When the up count is Q or more and a down bar occurs, the previous bar's high is output on the current bar.

Same high and low

On a bar where both are the same as the previous bar, the up processing and then the down processing are run in order. With Q=1 and similar settings, points can appear on both sides.

Bars that fit neither

On an outside bar, where the high rises and the low falls, and on an inside bar, where the high falls and the low rises, both counts are kept as they are.

4

Situations for reading the display

A blue point is recognized

Indicator
After the down count was reached, an up bar was recognized.
Cross-check
Compare the previous bar's low with the position of the current bar.
Check
Distinguish the origin of the value from the time it is shown.
Caution
Do not treat it as already known on the bar of the low.

The count seems to skip

Indicator
The count may have been kept across inside or outside bars.
Cross-check
Compare both the high and low of each bar.
Check
Distinguish it from Q consecutive bars on the calendar.
Caution
Do not count based only on the word consecutive.

A line extends into a past section

Indicator
It is connecting to a new point on the same side.
Cross-check
Separate the bar where the point appeared from the line between points.
Check
Do not use the middle of a line as a signal at a past time.
Caution
The price of an interpolated line is not the value of a calculated point.

Few points

Indicator
There are few opposite-direction bars that meet the required count.
Cross-check
Check Q and the sequence of bars.
Check
Isolated points can be hard to see as a line.
Caution
A sparse display is not necessarily a fault.
5

Steps for checking the display

1

Look at the default screen

Check the red and blue lines with the default 2.

2

Check the target bar

The candidate is the previous bar and the evaluation is on the current bar. It is provisional until the current bar closes.

3

Compare with the price

Compare both the high and the low, and distinguish inside and outside bars.

4

Compare conditions separately

When you change the required count, compare both the point positions and the connected sections.

6

Installation and checking the package contents

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

Required number of up or down bars

English item name
Qualifying Bars (1 to 100)
Input name
InpQualify
Default
2
Allowed range
Integer from 1 to 100
Description
Default 2. Reset by a bar in the opposite direction. The count is kept on inside and outside bars.

Brand and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Switches the display only. 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 / Bottom left / Bottom right / Top right
Description
The default is bottom left.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer (pixels)
Description
Default 10. Negative numbers are treated as 0, and values above 4000 as 4000.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer (pixels)
Description
Default 10. Negative numbers are treated as 0, and values above 4000 as 4000.
8

Usage specifications

Current bar and history

The high, low and close of the current bar move. Because the calculation is redone when history is added or corrected or settings are changed, past display may also change.

Does not place orders

This product is for display. It has no function to automatically execute trades, exits, stop orders or notifications.

Extension of lines

The values of the dots do not move to past bars, but a new dot causes a line to be drawn between past dots. Distinguish how it looks in real time from the completed line.

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

A bullish candle is not counted as up

The evaluation uses both the high and the low, not bullish or bearish candles.

The count does not disappear partway

It is kept on inside and outside bars. The count is reset by an opposite-direction evaluation.

Lines appear afterward

By design, points on the same side are connected. The line between points is not information from a past time.

Loading is refused

The required count is 1 to 100. Check that you have not specified a value out of range.

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

Timing of dots

The condition is recognized at t, and the high or low of t−1 is output at t.

Order of evaluation

The up condition is processed first and the down condition after. On a bar with equal values, both are processed.

Drawing style

The high side and the low side each connect points with DRAW_SECTION. No calculated values are added to bars other than the points.