MT5 indicators← Dynamic Swing Bands 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

Dynamic Swing Bands

Updates support and resistance levels on crossovers of a swing price made from the high, low and close, and holds them together with a middle line.

Indicator name: Dynamic Swing BandsMetaTrader 5Price chart

It does not follow a rule of moving when the price breaks out of the band

Downward crossover → resistance to the recent highest highUpdate resistanceCrossover of the 2 internal seriesThe middle line is the midpoint between support and resistance. It is not a moving average line
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Crossover evaluated internallyCompares the swing price with its simple average. These 2 series themselves are not shown on screen.

2

Updated only on a crossoverA strict downward crossover updates resistance, and an upward crossover updates support.

3

Held until the next crossoverResistance is red, support is green and the middle line is gray. It is not a band that always encloses the price above and below.

Short 5 / Long 253 level linesCrossover on the latest bar is provisional
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
Short-term range / Short Period
InpShort
5 → 3
Average period / Long Period (average)
InpLong
25 → 10

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 settingsInpShort = 5 / InpLong = 25
Dynamic Swing Bands default settings
Short 5, Long 25. At a crossing, the highest high and lowest low of 30 bars are taken and held until the next crossing.
View the screen in detail at full size
Dynamic Swing Bands default settings (full size)
Settings change exampleInpShort = 3 / InpLong = 10
Dynamic Swing Bands settings change example
Short 3, Long 10. The swing price period, the average period and the 13-bar range for extremes all change at once.
View the screen in detail at full size
Dynamic Swing Bands 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

Red comes from resistance

On a downward crossover, it updates to the highest high of Short+Long bars.

Green comes from support

On an upward crossover, it updates to the lowest low of the same number of bars.

Gray is the midpoint

Shown once the levels on both sides have been established.

3

What it measures

The swing price is the average of the short-term highest high, lowest low and close. It differs from a moving average crossover of the close alone.

Internal price

Calculates (highest high of Short bars+lowest low of Short bars+close)÷3.

Average and strict crossover

Compares with the Long-bar SMA of the internal price. The condition is above on the previous bar and below on the current bar, or the reverse. Merely passing through an equal value is not a crossover.

First display

With the default, a crossover can be evaluated from the 30th bar at the earliest. The corresponding line is empty until an actual crossover occurs.

Held independently

Support and resistance hold extremes from different points in time. The lines may swap places or the price may be outside the band.

4

Situations for reading the display

Only red appears first

Indicator
Only a downward crossover has occurred so far.
Cross-check
Check whether an upward crossover has occurred.
Check
The middle line waits until both sides are available.
Caution
There is no forecast line that fills the missing display.

Level stays flat for a long time

Indicator
The corresponding crossover has not occurred.
Cross-check
Distinguish the price crossing a line from an internal crossover.
Check
Read it as the designed holding of values.
Caution
It is not necessarily a fault.

Periods were shortened

Indicator
The extreme range and the internal calculation change.
Cross-check
The change example goes from 5/25 to 3/10.
Check
You can also compare on separate charts where one setting is changed at a time.
Caution
These are not recommended values that indicate better or worse levels.

Empty with Long=1

Indicator
The internal price and the average become equal and do not cross.
Cross-check
Check Long.
Check
It is not an error; it is a setting under which the condition never occurs.
Caution
Even with more history, no strict crossover occurs.
5

Steps for checking the display

1

Look at the default screen

Load it with 5/25 and wait for the first crossover.

2

Check the target bar

A crossover on the latest bar is provisional until the bar closes.

3

Compare with the price

The lines come from past extremes, and there is no guarantee that they enclose the current price.

4

Compare conditions separately

Changing Short or Long one at a time lets you read their effects separately.

6

Installation and checking the package contents

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

Short-term range

English item name
Short Period
Input name
InpShort
Default
5
Allowed range
Integer from 1 to 500
Description
The number of bars over which the highest and lowest values of the internal price are searched. Default 5.

Average period

English item name
Long Period (average)
Input name
InpLong
Default
25
Allowed range
Integer from 1 to 500
Description
The number of bars for the SMA of the internal price. Default 25. With 1, no strict crossover occurs and the lines are not shown.

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.

The names support and resistance

These are names that distinguish levels selected by calculation. They do not guarantee a rebound or that a trade will be executed.

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

Nothing is displayed

Check the history and whether crossovers occur. With Long=1, there is never a crossover.

Only the middle line is missing

Both support and resistance need to have been found once.

The settings are not accepted

Short and Long are both 1 to 500. If out of range, loading is refused.

The band is inverted

This is because levels from different points in time are held. Read them apart by color and origin.

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

Starting position

With t starting at 0, the internal price starts from S−1 and the average from S+L−2. A crossover is possible at S+L−1 at the earliest.

Extreme range

S+L bars including the crossover bar. Not S×L bars.

Current bar

Because the high, low and close are used, the value is provisional until the end of that bar.