MT5 indicators← Clear Swing Lines 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

Clear Swing Lines

Tracks the up and down state from the position of the highs and lows, and shows the switching boundary with blue and orange-red lines.

Indicator name: Clear Swing LinesMetaTrader 5Price chart

The state changes on the high and low, not on a crossover of the close

Up state: switches when the high falls below the boundaryHolds the highest of the lowsTo downCrossing a line alone does not instruct a trade or exit
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Blue lineThe highest of the lows recorded during the up state.

2

Orange-red lineThe lowest of the highs recorded during the down state.

3

Switching conditionsIt becomes down when the high falls below the blue boundary, and up when the low rises above the orange-red boundary. Being equal alone does not switch it.

No calculation inputsShows price levelsLatest bar is provisional
1

Display in MT5 (default settings)

A screen with default settings and only this product loaded. There are no inputs for calculation conditions. The settings section below is for the brand display.

Default settings
Clear Swing Lines default settings
Calculation conditions are fixed. Blue is the boundary of the up state, orange-red the boundary of the down state. Only one of the lines has a value.
View the screen in detail at full size
Clear Swing Lines default settings (full size)

Published example: M1. An example to explain the display. The published image is a screen from before the brand display was added. The calculation and drawing conditions are the same, and the packaged version has display settings for brand text and a QR code. Details can be checked in the full-size view. Also check the price scale of the main chart and the positions of the candlesticks.

2

How to read it in 30 seconds

Reading up in blue

The up-state line is the highest of the lows. The state is kept until the high falls below this boundary.

Reading down in orange-red

The down-state line is the lowest of the highs. It changes to up when the low rises above this boundary.

There is no settings change example

There are no inputs for calculation conditions. Only the brand display can be adjusted.

3

What it measures

It is neither a fixed-period moving average nor an up/down check of the close. It tracks the lows and highs while a state continues.

Up-state update

In the up state, it updates and holds the highest of the lows. The close alone does not decide the state.

Down-state update

In the down state, it updates and holds the lowest of the highs. When the state changes to the opposite, the boundary restarts from that bar's value.

When values are equal

If the high equals the up-state boundary, or the low equals the down-state boundary, that comparison alone does not cause a reversal.

Unit of the lines

The vertical axis is price. The color shows the state; it does not mean that blue is always above orange-red.

4

Situations for reading the display

Blue rose

Indicator
The highest of the lows was updated.
Cross-check
Compare that bar's low with the previous blue line.
Check
Read it as a level update within the up state.
Caution
It does not guarantee that the rise continues.

Changed to orange-red

Indicator
The high fell below the up-state boundary.
Cross-check
Look at the high, not only the close.
Check
Check the color and level on a closed bar.
Caution
It is not an automatic sell or exit signal.

Line is flat

Indicator
No high or low has appeared that updates the boundary.
Cross-check
Look at the range of the price highs and lows.
Check
Read the continuation of the state separately from the boundary staying unchanged.
Caution
It does not mean the price is not moving.

Color reverts on the latest bar

Indicator
This is an evaluation based on the high and low of the forming bar.
Cross-check
Check whether the bar has closed.
Check
Treat the display during the bar as provisional.
Caution
The colors in a history image alone do not show how things developed in real time.
5

Steps for checking the display

1

Look at the default screen

Load it on the main chart and tell blue and orange-red apart.

2

Check the target bar

Check on closed bars first, and treat the latest bar separately.

3

Compare with the price

Compare the high with the blue boundary and the low with the orange-red boundary.

4

Compare conditions separately

There are no calculation settings, so compare different timeframes on separate charts.

6

Installation and checking the package contents

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

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.

Initial state

Calculation starts by treating the oldest available bar as a down state. If the length of loaded history differs, the state at the same date and time may differ.

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

Only one line is shown

Only blue is shown in the up state and only orange-red in the down state. It is not a band that shows both at the same time.

Short lines are hard to see

Isolated values can be hard to see as a line. Zoom in and also check the bars before and after.

There are no calculation settings

This is by design. There are no inputs to change the period or sensitivity.

Different even with the same price

Match the timeframe and the loaded history. The initial state of the history also affects the calculation.

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 states

In the up state, it updates the boundary and checks the condition for switching to down. After that, in the down state, it updates the boundary and checks the condition for switching to up.

Start of calculation

Uses the high and low of the oldest bar as the initial values and starts from the down state.

Output timing

The value determined by a bar's high and low is output on that bar. There is no function to treat the current bar as closed.