MT5 indicators← Dual Midline Agreement Cloud 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

Dual Midline Agreement Cloud

Compares the midpoints of the highs and lows over different periods, and shows a cloud with width only on bars where both moved in the same direction.

Indicator name: Dual Midline Agreement CloudMetaTrader 5Shows a cloud on the price chart

2 range midpoints → each compared with the past → cloud only on same-direction bars

1 2 range midpoints2 Each compared with the past3 Cloud only on same-direction bars
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Blue cloudThe 2 midpoints are each above their value the specified number of bars earlier.

2

Red-orange cloudBoth of the 2 are each below their value the specified number of bars earlier.

3

Zero-width sectionsBars where the directions do not agree, or where one of them does not change. A thin line can remain.

MT5 onlyCalculated display based on the settingsNo notifications or orders
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
Fast lookback period / Fast Midline Bars
InpFastBars
7 → 20
Fast comparison interval / Fast Delay Bars
InpFastDelay
2 → 5
Slow lookback period / Slow Midline Bars
InpSlowBars
13 → 50
Slow comparison interval / Slow Delay Bars
InpSlowDelay
1 → 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 settingsInpFastBars = 7 / InpFastDelay = 2 / InpSlowBars = 13 / InpSlowDelay = 1
Dual Midline Agreement Cloud default settings
A cloud using the default 2 periods and comparison intervals. Where the directions do not agree, it appears as a thin line.
View the screen in detail at full size
Dual Midline Agreement Cloud default settings (actual size)
Example with changed settingsInpFastBars = 20 / InpFastDelay = 5 / InpSlowBars = 50 / InpSlowDelay = 3
Dual Midline Agreement Cloud example with changed settings
An example with longer periods and comparison intervals. Check the places with width and the places with a thin line separately.
View the screen in detail at full size
Dual Midline Agreement Cloud example with changed settings (actual size)

Example shown: 1-minute chart (M1). This is an example for explaining the display. 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

Blue cloud

The 2 midpoints are each above their value the specified number of bars earlier.

Red-orange cloud

Both of the 2 are each below their value the specified number of bars earlier.

Zero-width sections

Bars where the directions do not agree, or where one of them does not change. A thin line can remain.

3

What it measures

Compares the midpoints of the highs and lows over different periods, and shows a cloud with width only on bars where both moved in the same direction.

Midpoints and delay

Each midpoint is the average of the highest high and lowest low of the most recent Bars bars. Fast and Slow each have their own period and comparison Delay.

Cloud width

The area between A, the average of the current 2 midpoints, and B, the average of the midpoints each one is compared with, is filled. If the Delays differ, B is not the average at a single past point in time.

Condition for zero width

Unless the changes of the 2 midpoints are in the same direction, B=A is used. The width is also zero when one of them does not change.

4

Situations for reading the display

Blue cloud

Indicator
The 2 midpoints are each above their value the specified number of bars earlier.
Cross-check
Cross-check the settings against the corresponding parts of the published screen.
Check
Each midpoint is the average of the highest high and lowest low of the most recent Bars bars. Fast and Slow each have their own period and comparison Delay.
Caution
This is not a display that instructs trades based only on colors or on levels being reached or crossed.

Red-orange cloud

Indicator
Both of the 2 are each below their value the specified number of bars earlier.
Cross-check
Cross-check the settings against the corresponding parts of the published screen.
Check
The area between A, the average of the current 2 midpoints, and B, the average of the midpoints each one is compared with, is filled. If the Delays differ, B is not the average at a single past point in time.
Caution
This is not a display that instructs trades based only on colors or on levels being reached or crossed.

Zero-width sections

Indicator
Bars where the directions do not agree, or where one of them does not change. A thin line can remain.
Cross-check
Cross-check the settings against the corresponding parts of the published screen.
Check
Unless the changes of the 2 midpoints are in the same direction, B=A is used. The width is also zero when one of them does not change.
Caution
This is not a display that instructs trades based only on colors or on levels being reached or crossed.
5

Steps for checking the display

1

Check the base

Each midpoint is the average of the highest high and lowest low of the most recent Bars bars. Fast and Slow each have their own period and comparison Delay.

2

Align the settings

Check the settings list below in the input fields of the properties. Do not confuse periods, times and units.

3

Load the required history

It needs the larger of the bar counts obtained by adding each Delay to each period. With the defaults, it can be calculated from bar 14.

4

Read the screen and values

Match the diagram, the actual screen and the price scale. Also check for lines off the screen and overlapping lines.

6

Installation and checking the package contents

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

Fast lookback period

English item name
Fast Midline Bars
Input name
InpFastBars
Default
7
Allowed range
Integer from 1 to 1000
Description
Number of bars used for the 1st midpoint. Despite the name Fast, it can be set longer than Slow.

Fast comparison interval

English item name
Fast Delay Bars
Input name
InpFastDelay
Default
2
Allowed range
Integer from 1 to 1000
Description
How many bars back the 1st midpoint is compared with.

Slow lookback period

English item name
Slow Midline Bars
Input name
InpSlowBars
Default
13
Allowed range
Integer from 1 to 1000
Description
Number of bars used for the 2nd midpoint.

Slow comparison interval

English item name
Slow Delay Bars
Input name
InpSlowDelay
Default
1
Allowed range
Integer from 1 to 1000
Description
How many bars back the 2nd midpoint is compared with.
8

Usage specifications

Number of bars needed for preparation

It needs the larger of the bar counts obtained by adding each Delay to each period. With the defaults, it can be calculated from bar 14.

A thin line remains

On bars with zero width, the 2 drawing values also hold the same value, and a thin line may be visible in MT5. A bar without a cloud is not necessarily completely blank.

Latest bar and history

The forming bar may change with price updates. Past calculation results may also change with history additions or corrections or settings changes.

MT5 only

No account authentication or license file is required. There are no sound, notification or order functions. An MT4 version is not included.

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

The cloud is not visible

Check the number of history bars. If the 2 directions do not agree, the width is zero even when there is history.

The cloud color differs from the price direction

What is compared is the 2 range midpoints. This does not mean the same as the latest price rising or falling.

The display stopped

Check the price feed, terminal connection, history loading and input ranges. Not being displayed does not necessarily mean a malfunction.

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

Formula

M1=(highest high+lowest low of period 1)/2, and M2 likewise for period 2. d1=M1(t)−M1(t−Delay1), d2=M2(t)−M2(t−Delay2). If d1×d2>0, A=(M1(t)+M2(t))/2 and B=(M1(t−Delay1)+M2(t−Delay2))/2. Otherwise B=A.

Starting position

Counting the oldest bar as bar 0, display starts from bar max(Bars1−1+Delay1, Bars2−1+Delay2). Earlier bars are empty.