① to ⑦ are the types of shape
More than one type can be met on the same bar. The numbers are not strength or ranking.
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.
① to ⑦ are the types of shapeMore 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 sideGreen 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 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.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
More than one type can be met on the same bar. The numbers are not strength or ranking.
Green marks represent upward-side conditions and red marks downward-side conditions. They do not predict a rise or fall in price.
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.
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.
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.
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.
| Mark | Outline of the shape | How to read |
|---|---|---|
| ① ZLR | Turn near 0 | Mainly on the same side as the flow. When CCI turns inside ±80 and the preceding change is greater than 20. |
| ② Shamu | Change from a peak or trough near 0 | Mainly 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. |
| ③ TLB | Passing a line through CCI peaks or troughs | Calculates the level at the current point from the last 2 peaks or troughs, and shows the side on which CCI passed that level. |
| ④ Vegas | Passing after an extreme peak or trough | When, 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. |
| ⑤ Ghost | Shape of 3 peaks or 3 troughs | From 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. |
| ⑥ RevDiv | Difference between a near turn and an older turn | Checks 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. |
| ⑦ HFE | Return inside ±200 | In 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. |
| × Exit | Auxiliary mark for conditions against the flow | Places 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.
Load the history in MT5, and first apply only this product to the chart.
More than one type can be met on the same bar. The numbers are not strength or ranking.
Put the default and the change example on separate charts, with the same symbol, timeframe and history.
Closed Bars Only defaults to true. With false, marks on the forming bar can change, so distinguish them from the record on closed bars.
| Included file | Purpose / location |
|---|---|
| TRI_CCI_Pattern_Marks.ex5 | The 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.
Extract the ex5 main file rather than leaving it in the compressed file.
In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.
Refresh the Navigator or restart MT5, and apply it to the target chart. When comparing different settings, using separate charts makes checking easier.
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.
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.
InpCCIPeriodInpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYIt does not place, modify or close orders. There are no notifications or emails either.
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.
① 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.
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.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
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.
Check the ranges and combinations in the settings. Keep the inputs for unused methods within range as well.
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.
Use separate charts, or adjust the brand position and margins. The images can also be checked at full size.
① 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.
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.
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.
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.
Only MT5 itself and this manual. Account authentication, external indicators and DLLs are not required.
①: 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.
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.
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.
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.
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.
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.