MT5 indicators← Channel Location 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

Channel Location Gap

Fits the same average price into 2 ranges of average highs and average lows with different lengths, and shows the difference between the locations as bars. The bar height is the difference in location, and the color is the increase or decrease of the value from 1 bar before.

Indicator name: Channel Location GapMetaTrader 5Separate window, 2-color histogram

Read the difference in location and the change from the previous bar separately

Read the bar height and color separately+10−1Red can still be a positive value. Green can still be a negative value.±1 is not an upper or lower limit.
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Height is the difference in locationThe Fast-side location is subtracted from the Slow-side location. Values also go outside ±1.

2

Color compares with the previous barGreen if it increases, red if it decreases. If it is the same, the previous color is kept.

3

Carried over at width 0If either range has a width of 0, the previous valid value and color are kept.

Green = increase / red = decreaseDefault: 5 / 34±1 is not an upper or lower limit
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
Period for the common average price and the Fast side / Fast Period
InpFastPeriod
5 → 7
Period of the Slow-side average range / Slow Period
InpSlowPeriod
34 → 30

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 settingsInpFastPeriod = 5 / InpSlowPeriod = 34
Channel Location Gap default settings
Default: Fast Period = 5, Slow Period = 34. Read the bar height and the color separately.
View the screen in detail at full size
Channel Location Gap default settings (actual size)
Settings change exampleInpFastPeriod = 7 / InpSlowPeriod = 30
Channel Location Gap settings change example
Change example: Fast Period = 7, Slow Period = 30. The vertical axis scale also differs from the default, so do not compare by the on-screen length of the bars alone.
View the screen in detail at full size
Channel Location Gap settings change example (actual size)

Published example: M1. This is an example to explain the display. The example with changed settings is not a set of recommended values. Details can be checked in the actual-size view. Also check the vertical axis and units of the separate window. Except for products with a fixed scale, the scale changes with the settings and the displayed range.

2

How to read it in 30 seconds

Read the height

The bar height is the difference between 2 locations within ranges. The ±1 dotted lines are reference lines, not upper or lower limits of the value.

Read the color separately

Green means the value increased from the previous bar, and red means it decreased. A positive value can be red and a negative value can be green.

Check the settings

The parentheses in the window name show Fast Period, then Slow Period. The default is (5, 34).

3

What it measures

Measures the averaged center price with 2 average ranges and displays Slow-side location − Fast-side location.

Price used for the center

For each bar, (close × 5 + open × 2 + high + low) ÷ 9 is calculated. Its simple average over Fast Period bars is used as the common average price M.

The 2 ranges

One range is built from the simple averages of the highs and lows over Fast Period bars, and the other from their simple averages over Slow Period bars. They are not the highest high and lowest low within the period.

The 2 locations and their difference

Each location is (M − average low) ÷ (average high − average low). The value obtained by subtracting the Fast-side location from the Slow-side location is used as the bar height.

Why values exceed ±1

The common M can go outside the Slow-side average high and average low. The difference in location is not limited to ±1. Even if M is outside, the difference does not necessarily exceed ±1.

4

Situations for reading the display

A red bar above 0

Indicator
The value is positive but has decreased from the previous bar.
Cross-check
Compare it with the height of the previous bar.
Check
Read the sign and the color separately.
Caution
It does not mean that red is negative and green is positive.

A green bar below 0

Indicator
The value is negative but has increased from the previous bar.
Cross-check
Check whether the number is larger or smaller than on the previous bar.
Check
Read which way the difference in location changed.
Caution
The color does not indicate a price rise or a trading decision.

A bar went outside ±1

Indicator
The average price M is outside the Slow-side average range.
Cross-check
Check the ±1 dotted lines and the vertical axis at that time.
Check
When comparing, also check whether the scale has changed.
Caution
M being outside the range is not the same as the bar always going outside ±1.

The same value and color continue

Indicator
Besides cases where the same value continues, the value may be carried over because either width is 0.
Cross-check
Check for sections where the high and low were the same.
Check
Do not conclude from appearance alone that updating has stopped.
Caution
While the width is 0, a large value or the previous color can remain as it is.
5

Steps for checking the display

1

Display with the default settings

With Fast Period = 5 and Slow Period = 34, check the bars in the separate window.

2

Check the height and the reference lines

Look at the height relative to 0 and the +1 and −1 dotted lines. The vertical axis changes with the displayed range.

3

Compare the color with the previous bar

Green and red are the increase or decrease from the previous bar. If the value is the same, the color is carried over, and the first valid bar is green.

4

Change the inputs and compare

Check how the 2 periods, and the Fast-side period that builds the average price, are involved in the calculation.

6

Installation and checking the package contents

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

Using this product does not require allowing DLLs. When removed, this product's drawings are cleared.

7

Settings

There are 2 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.

Period for the common average price and the Fast side

English item name
Fast Period
Input name
InpFastPeriod
Default
5
Allowed range
Integer 2–500
Description
Used in common for averaging the center price and for averaging the Fast-side highs and lows. It is not required to be shorter than Slow Period.

Period of the Slow-side average range

English item name
Slow Period
Input name
InpSlowPeriod
Default
34
Allowed range
Integer 2–1000
Description
Used for averaging the Slow-side highs and lows. It can also be set to the same value as Fast Period or a smaller value.
8

Usage specifications

First value

Normally, the first calculated position is reached once the number of bars of the larger of the 2 periods is available. The default is bar 34 from the start. However, if either width is 0, bars are blank until a valid value can first be calculated.

Carry-over when the width is 0

If the width of the average range on the Fast side or the Slow side is 0, the previous valid value and color are kept. The first section, where there is no value to carry over, is blank. This is not a rule that outputs a new 0.

Initial color and equal values

The color of the first valid value is green. After that, if a value equals the previous value, the previous color is kept. The first green does not mean that an increase was observed.

Relative size of the periods

If Fast Period = Slow Period, the difference is 0 wherever the width is positive and the location can be calculated. Fast Period > Slow Period is also possible, but swapping the periods changes M itself, so the result is not simply the value with its sign reversed.

Latest bar

On the forming bar, updates to the high, low and close change the bar height and color. There is no function that outputs marks or notifications.

Name, digits and tiny differences

The window name shows the 2 periods, and values have 3 decimal places. Even a very small difference from rounding in the average calculation can change the color. Do not read the color near 0.000 alone as a large change.

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

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

No bars appear

Check the required history and whether either width has become 0. If the periods are the same, the calculated value is 0 and the bar has no height. A blank and a valid 0 are different. Do not distinguish them by 0.000 in the header alone.

The bars became large

±1 is not an upper or lower limit. When the average price M is outside the Slow-side range, a large difference may appear. Also check the scale of the vertical axis.

The color and sign do not match

The color does not represent the sign. It shows whether the value increased or decreased from the previous value. With the same value, the color is kept.

The value does not move

By specification, the previous value is kept when the width of a range is 0. Check the state of the price feed and whether the average range has width, separately.

An input is refused

Outside the allowed range, the indicator refuses to start and writes "Channel Location Gap: Fast Period must be 2 to 500." or "Channel Location Gap: Slow Period must be 2 to 1000." to the Experts log. Set the value back within the 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

Formula and order

N = (close × 5 + open × 2 + high + low) ÷ 9, and M = the Fast Period simple average of N. For each of the Fast side and the Slow side, the simple averages of the highs and lows are calculated and the location is obtained. Value = Slow-side location − Fast-side location. Future bars are not used.

Relationship between ±1 and being outside the range

In the formula, if M is within the Slow-side range, the difference stays within −1 to +1. If the difference goes beyond this range, M is outside the Slow-side range. However, even if M is outside the range, the difference may stay within −1 to +1. The reverse inference cannot be made.

History and carry-over

When the width is positive, the value is calculated from the current 2 averaging periods. In sections where the width is 0, on the other hand, the value and color carry over the previous state. If there is no valid value at the start of the history, or if equal values or a width of 0 continue, distinguish the initial blanks and the carried-over colors.

External functions

This product calculates from the chart's price data and draws 2-color bars in a separate window. It has no marks, notifications or order handling.