MT5 indicators← Dual Trigger Gap 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 Trigger Gap

2 tracking lines that approach the close under different conditions. Their difference is converted to points and shown as bars. The color is decided by the sign of the difference, not by whether it increased from the previous bar.

Indicator name: Dual Trigger GapMetaTrader 5Separate window

Converts which of the 2 lines is above, and their distance, into bars

Continuation-side line − return-side lineDifference ÷ symbol's point → bar height0 or more is green, below 0 is redA large bar does not necessarily mean strong current price movement
Schematic diagram of how to read it. This is not an actual terminal screen.
1

SignPositive if the continuation side is above the return side, negative if below.

2

HeightShows the distance between the 2 lines in points.

3

Constant heightOn bars where the close does not change, the lines do not move either, and the difference remains.

The only input is Follow DivisorDifference of lines, not of pricesDo not confuse points and pips
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
Denominator of the tracking ratio
InpFactor
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 settingsInpFactor = 2
Dual Trigger Gap default settings
The difference between the lines is color-coded positive and negative in a separate window.
View the screen in detail at full size
Dual Trigger Gap default settings (actual size)
Settings change exampleInpFactor = 4
Dual Trigger Gap settings change example
Follow Divisor changed from 2 to 4. The vertical axes differ, so compare the values too.
View the screen in detail at full size
Dual Trigger Gap settings change example (actual size)

Example shown: 1-minute chart (M1). This is an example to explain the display. The settings change example is not a recommended value. Details can be checked in the full-size view. The vertical axis of the separate window is adjusted automatically for each image, so do not compare values by on-screen height alone.

2

How to read it in 30 seconds

Green / red

Green means the difference is 0 or more; red means it is negative.

Unit of the numbers

The distance converted using the symbol's point.

Why the bars continue

Even if price does not move, a difference between lines that opened earlier can remain.

3

What it measures

Shows only the distance between 2 lines that follow the same update rules as Dual Trigger Channel.

Continuation-side line

If the close is above the line and above the previous close, or below the line and below the previous close, the line moves toward the close by 1/F of the distance.

Return-side line

If the close is above the line but below the previous close, or below the line but above the previous close, the line moves toward the close by 1/F.

Difference display

(continuation side−return side)/point. This product does not draw the lines themselves.

Meaning of F

With 1, the line moves to the close on a bar that meets the update condition. The larger it is, the smaller the tracking ratio of 1 update.

4

Situations for reading the display

Bars continue at the same height

Indicator
If the close does not change, neither line moves, and the difference does not change.
Cross-check
Look at price and the bars at the same time.
Check
Do not mistake a tall bar for a large current price movement.
Caution
A difference that opened in the past may remain.

It crossed 0

Indicator
The display shows that the 2 lines have swapped places.
Cross-check
Check the sign and the distance.
Check
Read it as a relation between lines, not as future direction.
Caution
The colors do not show an increase or decrease from the previous bar.
5

Steps for checking the display

1

Check the unit

This product uses points. Avoid simply comparing values across different symbols.

2

Separate the sign and the height

Color shows which line is above; height shows the distance.

3

Compare the factor

Change only F on the same history and check how the values change.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Dual_Trigger_Gap.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. Place only 1 instance of the same product on 1 chart.

4

Check the settings and display

First check with the default values. Changes and removal are done from the chart's 'Indicators List'.

This product does not require DLL permission or enabling automated trading. When removed, this product's drawings are cleared.

7

Settings

There is 1 input. Change it on the Inputs tab of the properties. The English display name and the input name in the code are shown together.

Denominator of the tracking ratio

Name shown on screen
Follow Divisor
Input name
InpFactor
Default
2
Allowed range
1–100 (real number)
Description
Follow Divisor. When the condition is met, the line approaches the close by 1/F of the distance.
8

Usage specifications

Starting point of the history

The 2 lines both use the oldest loaded close as their starting point. If the history starts differently, the value for the same bar may differ.

Forming bar and initial value

The oldest bar is only the starting point and its bar is empty. Display starts from the 2nd bar, and the value of the latest bar is updated as the close changes.

Relationship with other products

The update formula is the same as Dual Trigger Channel, but an exact match when attached at the same time, or across all history and all conditions, is not guaranteed.

Only 1 instance of the same product on 1 chart

This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.

For on-screen display only

This product shows calculation results through plot buffers and does not place trade orders. It does not guarantee profit or future price movement.

9

Troubleshooting and usage notes

The bars are not visible

Check that there are at least 2 bars of history. If the difference is exactly 0, the bar height is 0 as well.

The values change on another symbol

This is because the point, history and prices differ. Do not treat the same points as the same price width.

It does not start after changing inputs

An input outside the allowed range is refused at startup. Check the English reason shown on the Experts tab of the Toolbox, not an explanation on the chart, and confirm by returning to the default values.

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

Update formula

With the previous continuation line a, return line b, previous close q and current close c, the continuation condition is (c>a and c>q) or (c<a and c<q). The return condition is (c>b and c<q) or (c<b and c>q). The matching line is updated to previous value+(c−previous value)/F, and otherwise it is kept.

Display and recalculation

Gap=(continuation line−return line)/point. 0 or more is ForestGreen, negative is Crimson. Values are shown with 1 decimal place. Only values up to the current bar are used, and it is recalculated when history or inputs change.