MT5 indicators← Multi-Period CCI Sum 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

Multi-Period CCI Sum

Calculates the CCI of the close over 9 periods and shows their sum as bars and a blue line. The bars are divided into 4 colors by combining the side of 0 and the increase or decrease from the previous bar.

Indicator name: Multi-Period CCI SumMetaTrader 5Separate window

Read the "sum" of 9 CCIs by sign and change

CCI ① + ② + ③ + ④ + ⑤ + ⑥ + ⑦ + ⑧ + ⑨0The color is the change in the sum, not a majority vote of the 9 lines
Schematic diagram of how to read it. This is not an actual terminal screen.
1

The bars and the line are the same numberThe sum of 9 CCIs. It is not an average or a conversion to 0 to 100.

2

The positive side has 2 colorsDark green if higher than the previous bar, light green if it did not rise.

3

0 and below also has 2 colorsDark red if lower than the previous bar, light red if it did not fall.

Close price onlyThe 9 periods can be in any orderNo notification feature
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 2
InpPeriod2
14 → 10
Period 3
InpPeriod3
28 → 15
Period 4
InpPeriod4
32 → 20
Period 5
InpPeriod5
60 → 30
Period 6
InpPeriod6
102 → 40
Period 7
InpPeriod7
162 → 50
Period 8
InpPeriod8
264 → 75
Period 9
InpPeriod9
326 → 100

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 settingsInpPeriod2 = 14 / InpPeriod3 = 28 / InpPeriod4 = 32 / InpPeriod5 = 60 / InpPeriod6 = 102 / InpPeriod7 = 162 / InpPeriod8 = 264 / InpPeriod9 = 326
Multi-Period CCI Sum default settings
The bars and the blue line show the same total value. The default longest period is 326, and the header shows the 9 periods and the total value.
View the screen in detail at full size
Multi-Period CCI Sum default settings (full size)
Example of changed settingsInpPeriod2 = 10 / InpPeriod3 = 15 / InpPeriod4 = 20 / InpPeriod5 = 30 / InpPeriod6 = 40 / InpPeriod7 = 50 / InpPeriod8 = 75 / InpPeriod9 = 100
Multi-Period CCI Sum example of changed settings
Periods 2 to 9 are changed, and the longest period is 100. All changed values are shown in the comparison box. The height of the sum and the vertical axis scale also differ from the default example.
View the screen in detail at full size
Multi-Period CCI Sum example of changed settings (full 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

Check the longest period

The first value appears at bar N, where N is the longest of the 9 periods.

Distinguish the sum from a majority vote

A few large values can decide the sign of the sum. It does not show the direction of all 9 lines.

Look at the side of 0 and the change

Check whether the value is above 0 or at or below 0, and read from the color whether it is higher or lower than the previous bar.

3

What it measures

Adds 9 close-based CCIs in the input order and draws the same sum as bars and a line.

Sum of 9 periods

Each CCI divides the difference between the close and the average over the period by 0.015 times the mean absolute deviation. The 9 values are added; no average is taken.

Periods and duplicates

Each period is 2 to 1000, and there is no constraint on the order. If the same period is specified more than once, that CCI is added as many times as it is specified.

Rules for the 4 colors

Positive and greater than the previous value is dark green; positive otherwise is light green. At or below 0 and less than the previous value is dark red; at or below 0 otherwise is light red.

Value scale

The top and bottom of the vertical axis are not fixed. Do not apply guides such as ±100 for a normal CCI directly to the sum. The size changes with the periods and with offsetting among the 9 values.

4

Situations for reading the display

The sum is positive, but not all periods are positive

Indicator
A few large positive values change the result of the addition.
Cross-check
The sum alone does not show the breakdown of signs by period.
Check
If needed, check the value for each period separately.
Caution
Do not call it the direction of all periods or of the majority.

A light color at the same height

Indicator
A value equal to the previous bar falls on the no-change side.
Cross-check
Light green if positive, light red if at or below 0.
Check
The comparison is with the previous bar's value.
Caution
It is not a rule that carries over the previous bar's color.

Nothing is drawn yet

Indicator
There are not enough bars for the longest period.
Cross-check
By default, display starts from bar 326.
Check
Load more history, or change the periods if needed.
Caution
On long timeframes, fewer bars may be available.
5

Steps for checking the display

1

Check the 9 inputs

Check the longest period in particular. Period 9 is not necessarily the longest.

2

Check the number of bars

Prepare at least as many bars of history as the longest period.

3

Read the color conditions

Separate the side of 0 of the sum from the change from the previous bar.

4

Change the settings and compare

Confirm that the longest period and the scale of the sum change.

6

Installation and checking the package contents

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

Period 1

English item name
Period 1
Input name
InpPeriod1
Default
5
Allowed range
Integer 2 to 1000
Description
A close-based CCI period. The order is free, and the same value as other periods can also be specified. The longest of the 9 periods determines where drawing starts.

Period 2

English item name
Period 2
Input name
InpPeriod2
Default
14
Allowed range
Integer 2 to 1000
Description
A close-based CCI period. The order is free, and the same value as other periods can also be specified. The longest of the 9 periods determines where drawing starts.

Period 3

English item name
Period 3
Input name
InpPeriod3
Default
28
Allowed range
Integer 2 to 1000
Description
A close-based CCI period. The order is free, and the same value as other periods can also be specified. The longest of the 9 periods determines where drawing starts.

Period 4

English item name
Period 4
Input name
InpPeriod4
Default
32
Allowed range
Integer 2 to 1000
Description
A close-based CCI period. The order is free, and the same value as other periods can also be specified. The longest of the 9 periods determines where drawing starts.

Period 5

English item name
Period 5
Input name
InpPeriod5
Default
60
Allowed range
Integer 2 to 1000
Description
A close-based CCI period. The order is free, and the same value as other periods can also be specified. The longest of the 9 periods determines where drawing starts.

Period 6

English item name
Period 6
Input name
InpPeriod6
Default
102
Allowed range
Integer 2 to 1000
Description
A close-based CCI period. The order is free, and the same value as other periods can also be specified. The longest of the 9 periods determines where drawing starts.

Period 7

English item name
Period 7
Input name
InpPeriod7
Default
162
Allowed range
Integer 2 to 1000
Description
A close-based CCI period. The order is free, and the same value as other periods can also be specified. The longest of the 9 periods determines where drawing starts.

Period 8

English item name
Period 8
Input name
InpPeriod8
Default
264
Allowed range
Integer 2 to 1000
Description
A close-based CCI period. The order is free, and the same value as other periods can also be specified. The longest of the 9 periods determines where drawing starts.

Period 9

English item name
Period 9
Input name
InpPeriod9
Default
326
Allowed range
Integer 2 to 1000
Description
A close-based CCI period. The order is free, and the same value as other periods can also be specified. The longest of the 9 periods determines where drawing starts.
8

Usage specifications

Forming bar

The values and colors of the rightmost bar change while the bar is forming. Past displays are also recalculated when history is added or corrected or settings are changed.

Do not judge blanks by the displayed numbers alone

If the required history is insufficient, lines and bars are not drawn. The 0 in the header alone cannot distinguish a valid 0 from the state before calculation, so check the number of bars and the drawing together.

Color of the first value

Because there is no earlier valid value to compare with, the first value is light green if positive and light red if 0 or below.

Windows with no price movement

If all closes in a window are the same, that CCI is added as 0. Including this handling, an exact match with the sum of 9 MT5 standard CCIs is not guaranteed.

No notification function

It only displays colors and values. There is no function that presents a particular color as a notification signal.

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

Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.

9

Troubleshooting and usage notes

Nothing is displayed

Check the required history and the input ranges. With out-of-range inputs, the indicator does not calculate or draw, and the reason appears in English on the MT5 "Experts" tab.

Details are hard to read

Open the full-size display of the comparison image. In the terminal, enlarge the separate window vertically to check the lines and scale.

The numbers are large

It is the sum of 9 values. It is not on the same scale as 1 CCI. Do not read the scale marks at the edge of the display as a calculated upper limit.

Step-like shape with short periods

With period 2, the CCI is roughly ±66.67 if the 2 closes differ, and 0 if they are equal. Using many short periods can make the sum step-like.

Recalculation takes time

The larger the periods and history, the more calculation is needed. When changing settings or the timeframe, wait until the display is updated.

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

Handling of equal values and 0

If the sum is exactly 0, it is judged on the at-or-below-0 side. A value equal to the previous bar takes the "did not rise" color if positive and the "did not fall" color if at or below 0. Even when the displayed digits are the same, tiny differences in the internal values can change the color.

Calculation order and history

Recounts the 9 CCIs from each bar's window and adds them in order from Period 1. On bars where the same reference closes are available, there is no smoothing state that depends on where older history starts. However, only the first valid value on that chart may have a different color because there is no previous value.

Size of the sum

If M is the maximum absolute value of the 9 CCIs on the same bar, the absolute value of the sum does not exceed 9 × M. Values of opposite sign can also offset each other, so it is not always larger than the value of 1 line.

Header

The window name is CCI Sum, with the 9 periods listed in parentheses in input order. The heading shows only 1 value, the sum, with 2 decimal places. The blue line has the same value as the bars, so it is not shown twice.