MT5 indicators← CCI Pattern Marks 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

CCI Pattern Marks

Classifies the shape of the last 20 CCI values into 7 types and shows circled numbers ① to ⑦ and an auxiliary × on bars where a type is met. The CCI line itself is not drawn.

Indicator name: CCI Pattern MarksMetaTrader 5Main chart

How to read the display

1① to ⑦ are the types of shape2Green is the low side, red is the high side3The light blue × is an auxiliary mark
Schematic diagram of how to read it. This is not an actual terminal screen.
1

① to ⑦ are the types of shapeMore than one type can be met on the same bar. The numbers are not strength or ranking.

2

Green is the low side, red is the high sideGreen marks represent upward-side conditions and red marks downward-side conditions. They do not predict a rise or fall in price.

3

The light blue × is an auxiliary markShown on the same bar as ⑦ or as a ③ that goes against the flow. It does not look at whether there are orders or positions.

Record of conditions metMT5 onlyNot a trading instruction
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
CCI calculation period / CCI Period
InpCCIPeriod
14 → 20

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 settingsInpCCIPeriod = 14
CCI Pattern Marks default settings
Default settings. Multiple patterns may occur on the same bar. The numbers do not indicate strength or rank. Part of the red ③ at the top is cut off at the edge of the screen. Check the shape of the number against the other ③ marks at actual size as well.
View the screen in detail at full size
CCI Pattern Marks default settings (actual size)
Example of changed settingsInpCCIPeriod = 20
CCI Pattern Marks example of changed settings
Example change: CCI Period = 20. This example changes only the CCI period from 14 to 20.
View the screen in detail at full size
CCI Pattern Marks example of changed settings (actual 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

① to ⑦ are the types of shape

More than one type can be met on the same bar. The numbers are not strength or ranking.

Green is the low side, red is the high side

Green marks represent upward-side conditions and red marks downward-side conditions. They do not predict a rise or fall in price.

The light blue × is an auxiliary mark

Shown on the same bar as ⑦ or as a ③ that goes against the flow. It does not look at whether there are orders or positions.

3

What it measures

Classifies the shape of the last 20 CCI values into 7 types and shows circled numbers ① to ⑦ and an auxiliary × on bars where a type is met. The CCI line itself is not drawn.

How the calculation works

CCI is calculated from the typical price=(high+low+close)/3. Over the last 8 bars including the bar being checked, if CCI>0 on 6 or more bars it is an "up flow", and if CCI<=0 on 6 or more bars it is a "down flow". 0 is counted on the lower side. Bars that are neither get no mark. That flow and the 20 CCI values from the current bar back to 19 bars earlier are used to check the 7 types. "Flow" is a classification in this calculation, not a definitive statement about the price trend.

Conditions and exceptions

With CCI Period as P, the first CCI is at bar P, and marks are checked from bar P+19 at the earliest. With the default P=14, that is bar 33. However, on the latest bar no mark appears when Closed Bars Only=true. With P=1 or a window where prices are flat, CCI=0 and there are no marks. The levels and difference conditions of each type are fixed; what can be changed is the CCI period and the handling of the current bar.

MarkOutline of the shapeHow to read
① ZLRTurn near 0Mainly on the same side as the flow. When CCI turns inside ±80 and the preceding change is greater than 20.
② ShamuChange from a peak or trough near 0Mainly on the side opposite to the flow. When the previous 2 values are −50 to 50 and the current value changes by more than 15 from the previous value.
③ TLBPassing a line through CCI peaks or troughsCalculates the level at the current point from the last 2 peaks or troughs, and shows the side on which CCI passed that level.
④ VegasPassing after an extreme peak or troughWhen, after a peak or trough that reached ±200, a turn on the opposite side is found and CCI passes that value. The difference between the current and previous bar is more than 10.
⑤ GhostShape of 3 peaks or 3 troughsFrom a shape in which the middle one is the highest peak or lowest trough, when the latest peak or trough is exceeded by more than 15.
⑥ RevDivDifference between a near turn and an older turnChecks the positional relationship between a latest peak or trough 1 to 2 bars back and the peak or trough before it, and a change of more than 20 in the current value. It is not a divergence check against price.
⑦ HFEReturn inside ±200In a down flow, a return upward from −200 or below; in an up flow, a return downward from 200 or above, with a difference from the previous bar of more than 10.
× ExitAuxiliary mark for conditions against the flowPlaces a light blue × on the same bar as ⑦, or as a ③ that goes against the flow. It does not track held positions or past orders. It is not an instruction to close positions.

The numbers identify the types. A larger number does not mean stronger or more important. The outlines are simplified explanations; the exact conditions are collected in the technical information at the end.

4

Situations for reading the display

Read numbers, colors and × separately

Indicator
The numbers are the 7 types, green and red are the side that was met, and the light blue × is an auxiliary condition.
Cross-check
Do not interpret multiple marks on the same bar as an order of strength.
Check
Check that ③ or ⑦ and × are on the same bar.
Caution
× alone does not instruct a decision to close positions.

Compare setting differences

Indicator
Example change: CCI Period = 20.
Cross-check
Use the same symbol, timeframe and history.
Check
Look at how the changed setting relates to the increase or decrease and the position of the marks.
Caution
The published settings are not recommended values.

Reading intervals without marks

Indicator
With CCI Period as P, the first CCI is at bar P, and marks are checked from bar P+19 at the earliest. With the default P=14, that is bar 33. However, on the latest bar no mark appears when Closed Bars Only=true. With P=1 or a window where prices are flat, CCI=0 and there are no marks. The levels and difference conditions of each type are fixed; what can be changed is the CCI period and the handling of the current bar.
Cross-check
Check the required history and whether the conditions are met.
Check
Do not treat the absence of marks as the calculation having stopped.
Caution
Nothing may be displayed during periods when the conditions are not met.
5

Steps for checking the display

1

Apply with the defaults

Load the history in MT5, and first apply only this product to the chart.

2

Check the role of the display

More than one type can be met on the same bar. The numbers are not strength or ranking.

3

Comparing settings

Put the default and the change example on separate charts, with the same symbol, timeframe and history.

4

Distinguish the forming bar

Closed Bars Only defaults to true. With false, marks on the forming bar can change, so distinguish them from the record on closed bars.

6

Installation and checking the package contents

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

CCI calculation period

English item name
CCI Period
Input name
InpCCIPeriod
Default
14
Allowed range
Integer 1 to 500
Description
The number of bars used to find the average of the typical price and the mean absolute deviation. Shared by all 7 types.

Show marks on closed bars only

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
Default true. No marks are placed on the forming bar. With false, the mark on the current bar can change or disappear. The internal CCI, blended values and averages are also calculated for the current bar.

Brand and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Displayed with true. Calculated values 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
Negative values are treated as 0, and values above 4000 are treated as 4000.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer (pixels)
Description
Negative values are treated as 0, and values above 4000 are treated as 4000.
8

Usage specifications

Display only

It does not place, modify or close orders. There are no notifications or emails either.

Closed bars and history

Even with Closed Bars Only=true, it is not guaranteed to stay unchanged through corrections or additions to the history or changes of the start position. Products that have lines update the line on the current bar.

Mark positions

① to ⑦ are offset 12, 25, 38, 51, 64, 77 and 90 pixels below the low and above the high. × is 103 pixels. The value of each mark is the bar's low or high itself; the pixel offset is not included in the value. Marks may be cut off at the chart edge; widen the display range of the vertical axis to check them.

Brand display

Shows Produced by Trilogy Inc. and a QR code to https://www.trgy.co.jp/. When the same medium is used on the same chart, the display is shared. There is no account authentication.

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 marks, or blanks in the middle

With CCI Period as P, the first CCI is at bar P, and marks are checked from bar P+19 at the earliest. With the default P=14, that is bar 33. However, on the latest bar no mark appears when Closed Bars Only=true. With P=1 or a window where prices are flat, CCI=0 and there are no marks. The levels and difference conditions of each type are fixed; what can be changed is the CCI period and the handling of the current bar.

The input is not accepted

Check the ranges and combinations in the settings. Keep the inputs for unused methods within range as well.

The marks differ from other cross indicators

CCI is calculated from the typical price=(high+low+close)/3. Over the last 8 bars including the bar being checked, if CCI>0 on 6 or more bars it is an "up flow", and if CCI<=0 on 6 or more bars it is a "down flow". 0 is counted on the lower side. Bars that are neither get no mark. That flow and the 20 CCI values from the current bar back to 19 bars earlier are used to check the 7 types. "Flow" is a classification in this calculation, not a definitive statement about the price trend.

Displays overlap

Use separate charts, or adjust the brand position and margins. The images can also be checked at full size.

Marks are cut off at the edge of the screen

① to ⑦ are offset 12, 25, 38, 51, 64, 77 and 90 pixels below the low and above the high. × is 103 pixels. The value of each mark is the bar's low or high itself; the pixel offset is not included in the value. Marks may be cut off at the chart edge; widen the display range of the vertical axis to check them.

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

How to read the symbols and formulas

c0 is the CCI of the bar being checked, c1 is 1 bar earlier, and so on up to c19. A peak is a local maximum not below the CCI before and after it, and a trough is a local minimum not above the CCI before and after it; equal values are included. The search covers 1 to 18 bars back, counting from the most recent side. These are not price peaks and troughs. CCI=(typical price−P-bar average)/(0.015×mean absolute deviation). If the mean absolute deviation is 0, CCI=0.

Calculation and reference range

CCI is calculated from the typical price=(high+low+close)/3. Over the last 8 bars including the bar being checked, if CCI>0 on 6 or more bars it is an "up flow", and if CCI<=0 on 6 or more bars it is a "down flow". 0 is counted on the lower side. Bars that are neither get no mark. That flow and the 20 CCI values from the current bar back to 19 bars earlier are used to check the 7 types. "Flow" is a classification in this calculation, not a definitive statement about the price trend.

Initial values and exceptions

With CCI Period as P, the first CCI is at bar P, and marks are checked from bar P+19 at the earliest. With the default P=14, that is bar 33. However, on the latest bar no mark appears when Closed Bars Only=true. With P=1 or a window where prices are flat, CCI=0 and there are no marks. The levels and difference conditions of each type are fixed; what can be changed is the CCI period and the handling of the current bar.

Package contents and dependencies

Only MT5 itself and this manual. Account authentication, external indicators and DLLs are not required.

① ZLR and ② Shamu

①: In a down flow, if c0<c1, c2<c1, |c0|<80, |c1|<80 and |c1−c2|>20, red. In an up flow, the first 2 comparisons are reversed, and green. ②: In a down flow, if c0>c1+15, c1<c2, c2>c3, and c1 and c2 are both −50 to 50, green. In an up flow, the comparisons and direction of change are reversed, and red.

③ TLB level and equal values

For the last 2 peaks or troughs, from positions x1<x2 and values v1,v2, the line at the current point L=v1−x1×(v2−v1)/(x2−x1) is found. 2 points with equal values are not used. Down flow: if either peak is below −100 and c1<L, c0>=L, green. If either trough is below −100 and c1>L, c0<L, red. Up flow: if either trough is above 100 and c1>L, c0<=L, red. If either peak is above 100 and c1<L, c0>L, green. If both occur on the same bar, red is kept in a down flow and green in an up flow. c1 is also compared with L at the current point.

④ Vegas search order

Searches from 14 bars back to 2 bars back, starting from the older side. In a down flow, it takes the first trough at or below −200 that is 5 to 14 bars back, and then looks for the first peak v after it. If c1<v, c0>=v and c0−c1>10, green. In an up flow, it looks for a peak at or above 200 and then a trough v after it; if c1>v, c0<=v and c1−c0>10, red. A difference of exactly 10 is not shown.

⑤ Ghost

In a down flow, the last 3 troughs, newest first, are m0, m1, m2. In addition to m0>m1, m2>m1+15 and m0<0, with c0−15>m0, c0>c1 and c1−15<=m0, green. In an up flow, the 3 peaks are used, and with m0<m1, m2<m1−15, m0>0, c0+15<m0, c0<c1 and c1+15>=m0, red.

⑥ RevDiv

In a down flow, the next peak a2 is used only when the first peak a1 is 1 to 2 bars back. With −70<=a1<=0, a1>a2, a peak spacing of 3 bars or more, c0+20<a1, c0<c1 and c1+20>=a1, red. In an up flow, with troughs, 0<=a1<=70, a1<a2, a spacing of 3 bars or more, c0−20>a1, c0>c1 and c1−20<=a1, green. Divergence from the price series is not compared.

⑦ HFE and ×

In a down flow, if c1<=−200, c0>−200 and c0−c1>10, a green ⑦. In an up flow, if c1>=200, c0<200 and c1−c0>10, a red ⑦. If ⑦ is met, or there is a red ③ in an up flow or a green ③ in a down flow, a light blue × is also placed on the same bar. It is on the high side in an up flow and on the low side in a down flow. × can be shown even if no numbered mark has appeared before.