MT5 indicators← CCI EMA Band Reversal Arrows 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 EMA Band Reversal Arrows

Combines CCI and its EMA with the relationship between Bollinger Bands and the high and low, and shows bars where the conditions are met with blue and red arrows. It draws no lines and by default shows marks only on closed bars.

Indicator name: CCI EMA Band Reversal ArrowsMetaTrader 5Main chart

Read the normal conditions and Setup 2 separately

1Check the CCI level and EMA2Narrow down by the band and bar shape3Blue is the up condition, red the down condition
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Check the CCI level and EMAChecks for CCI above the upper level and below its own EMA, or below the lower level and above its EMA.

2

Narrow down by the band and bar shapeUnder the normal conditions, it also checks the distance from the band, the comparison with the previous high or low, and the range of that bar.

3

Blue is the up condition, red the down conditionDraws blue up arrows and red down arrows on the main chart. They are not marks that guarantee a reversal has occurred or that an order is executed.

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
Also allow outside the band / Allow Band Break
InpAllowBandBreak
false → true
Additional condition inside the levels / Setup 2
InpSetup2
false → true

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 settingsInpAllowBandBreak = false / InpSetup2 = false
CCI EMA Band Reversal Arrows default settings
Default settings: Allow Band Break=false, Setup 2=false, Closed Bars Only=true. Blue and red arrows are visible on closed bars where the normal conditions are met.
View the screen in detail at full size
CCI EMA Band Reversal Arrows default settings (full size)
Settings change exampleInpAllowBandBreak = true / InpSetup2 = true
CCI EMA Band Reversal Arrows settings change example
This example changes both Allow Band Break and Setup 2 to true. The other inputs are the same. Because 2 items are changed, the increase in marks cannot be judged to be the effect of only one of them. Some red arrows at the top edge are cut off. These settings are not recommended values.
View the screen in detail at full size
CCI EMA Band Reversal Arrows settings change example (full 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

Check the CCI level and EMA

Checks for CCI above the upper level and below its own EMA, or below the lower level and above its EMA.

Narrow down by the band and bar shape

Under the normal conditions, it also checks the distance from the band, the comparison with the previous high or low, and the range of that bar.

Blue is the up condition, red the down condition

Draws blue up arrows and red down arrows on the main chart. They are not marks that guarantee a reversal has occurred or that an order is executed.

3

What it measures

Combines CCI and its EMA with the relationship between Bollinger Bands and the high and low, and shows bars where the conditions are met with blue and red arrows. It draws no lines and by default shows marks only on closed bars.

How the calculation works

CCI and Bollinger Bands are calculated from weighted price = (high+low+2×close)/4, and CCI is smoothed with an EMA. The normal downward condition is: CCI>Upper and CCI<its EMA, the high is at or below the previous high, the high is at or below the upper band line with its distance from the line within the limit, and the bar's high−low is within the limit. The upward condition is: CCI<Lower and CCI>EMA, the low is at or above the previous low, the low is at or above the lower band line with the distance within the limit, and the range is within the limit.

Conditions and exceptions

It is not a method that detects only the moment CCI and its EMA cross; it records bars where the greater/less relationship and each condition are met. If the conditions continue, marks appear consecutively. Setup 2 switches to separate conditions and does not use the band distance, range or previous high/low conditions. With the default Closed Bars Only=true, no mark is placed on the latest forming bar.

Setup 2 is a separate path

Adds marks for states where CCI is inside the levels and the EMA is outside them. It does not check whether the previous CCI was outside the levels. It is not an add-on that keeps the strictness of the normal conditions as it is.

Points and price size

The distance and range are the input value × the price size of 1 point for the symbol. If 1 point = 0.00001, the default 100/150 points are 0.001/0.0015; if 1 point = 0.001, they are 0.1/0.15. They are not necessarily the same as pips.

Inside and outside the band

When the upper line equals the high, or the lower line equals the low, it is treated as inside and the distance is 0. Even with Allow Band Break=true, the distance limit inside the band remains.

What it cannot measure

It only shows the conditions for reversal candidates and does not calculate future direction, target price, holding time or profit rate. CCI, the EMA and the bands are all derived from price and are not independent guarantees.

ConditionNormalAdded by Setup 2
CCIAbove Upper / below LowerWithin the Lower to Upper range
EMAAbove CCI / below CCIAbove Upper / below Lower
Previous high/low, band, distance, rangeApplied (partly lifted depending on settings)Not applied
Forming barNot shown if Closed Bars Only=true
4

Situations for reading the display

Reading a normal blue mark

Indicator
It is a record that CCI fell below the lower level and is above its own EMA, and that the conditions on the low with the band, the previous bar and the range all held.
Cross-check
Check the price and input values for the same bar.
Check
It also appears during declines, so do not treat it as a confirmed reversal; compare it with other price conditions.
Caution
The mark position is not an order or exit price.

Reading a normal red mark

Indicator
Conditions such as CCI above the upper level and below its EMA, and the high not exceeding the previous high, all hold.
Cross-check
Distinguish the 1 bar where the high stopped making new highs from the flow before and after it.
Check
Even when considering holding or exiting, apply your own criteria separately.
Caution
It does not guarantee the start of a decline.

Setup 2 increases the marks

Indicator
Because it adds marks using only CCI inside the levels and the EMA outside them, marks also appear on bars with a large range or far from the band.
Cross-check
They have the same color and shape as normal-condition marks, so you cannot tell the paths apart by appearance alone.
Check
On a separate chart with the same symbol, timeframe and history, switch only Setup 2 and check.
Caution
The published settings change example also enables the band break at the same time.

Looking at sections without marks

Indicator
Nothing is drawn when history or conditions are insufficient. The band, CCI and EMA lines are not shown by this product.
Cross-check
Check the input ranges, the periods, the price size of points and Closed Bars Only.
Check
Do not judge from no display alone that it is broken or that the market is safe.
Caution
Some combinations, such as period 1, produce no marks even within the allowed range.
5

Steps for checking the display

1

Apply with the defaults

Load history in MT5 and apply it to the main chart. By default it shows closed bars only, and Setup 2 and the band break are disabled.

2

Read the normal conditions

Distinguish what blue and red mean, and check the high and low of the target bar and the previous bar. CCI, the EMA and the bands are internal calculations.

3

Check the price size of points

Check the symbol's 1 point and understand what price size 100/150 points correspond to.

4

Compare 1 item at a time

Change the settings 1 at a time on a separate chart. Note that the distance and range limits do not apply to Setup 2.

6

Installation and checking the package contents

Included filePurpose / location
TRI_CCI_EMA_Band_Reversal_Arrows.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 15 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 period

English item name
CCI Period (weighted price)
Input name
InpCCIPeriod
Default
21
Allowed range
Integer 1–500
Description
Default 21. CCI is calculated from the weighted price. With period 1, CCI becomes 0, and with the default levels no marks appear.

Upper CCI level

English item name
CCI Upper Level
Input name
InpCCIUpper
Default
80
Allowed range
Finite value at or above Lower
Description
Default 80. The normal downward condition is CCI strictly above this value. CCI is not points or a price.

Lower CCI level

English item name
CCI Lower Level
Input name
InpCCILower
Default
-80
Allowed range
Finite value at or below Upper
Description
Default −80. The normal upward condition is CCI strictly below this value. Equal upper and lower levels are allowed as input.

EMA period to smooth CCI

English item name
CCI EMA Period
Input name
InpEMAPeriod
Default
14
Allowed range
Integer 1–500
Description
Default 14. This is an EMA of CCI, not of price. With period 1, CCI and the EMA become equal, and no marks appear in either the normal conditions or Setup 2.

Bollinger Bands period

English item name
Bands Period (weighted price)
Input name
InpBandsPeriod
Default
21
Allowed range
Integer 1–500
Description
Default 21. The bands are calculated from the population standard deviation around an SMA of the weighted price. The lines themselves are not drawn. Setup 2 also needs the history required for the calculation.

Standard deviation multiplier of the band

English item name
Bands Deviation
Input name
InpBandsDeviation
Default
2
Allowed range
Finite value from 0.1 to 10
Description
Default 2. Not % or points. Center ± multiplier × standard deviation.

Distance limit inside the band

English item name
Max Band Distance (points, 0 = off)
Input name
InpMaxBandDistance
Default
100
Allowed range
Finite value from 0 to 1,000,000 (points)
Description
Default 100. For down it is upper line − high; for up it is low − lower line. 0 turns off only the distance limit. This is separate from allowing band breaks. It does not apply to Setup 2.

Range limit of 1 bar

English item name
Max Bar Range (points, 0 = off)
Input name
InpMaxBarRange
Default
150
Allowed range
Finite value from 0 to 1,000,000 (points)
Description
Default 150. The upper limit of high − low. 0 turns off the limit. It also applies to normal conditions that allow band breaks, but not to Setup 2.

Also allow outside the band

English item name
Allow Band Break
Input name
InpAllowBandBreak
Default
false
Allowed range
true / false
Description
Default false. With true, highs above the upper line and lows below the lower line also become candidates under the normal conditions. Outside the band the distance limit is not used, but the CCI, EMA, previous bar comparison and range conditions remain. It is not detection of a crossing at the moment price goes outside.

Additional condition inside the levels

English item name
Setup 2
Input name
InpSetup2
Default
false
Allowed range
true / false
Description
Default false. When CCI is within Lower to Upper, CCI<Upper and EMA>Upper means down, and CCI>Lower and EMA<Lower means up. It does not use the band, distance, range or previous bar comparison, and it is not detection of the moment CCI returns.

Show on closed bars only

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
Default true. Excludes the latest forming bar. With false, the current bar is also judged, and until the bar closes, marks appear, disappear and change height.

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 the forming bar

With Closed Bars Only=true, no mark is placed on the latest bar; with false, it is evaluated even while the bar is forming. With false, marks and their heights can change. Because it recalculates from the full history every time, it does not guarantee that past values stay unchanged through corrections or additions to the history or a change of start position.

Mark positions

The blue up arrow is 10 pixels below the low of the target bar, and the red down arrow 10 pixels above the high. They are not a fixed price difference or a trading price.

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

The band and CCI lines are not visible

This product draws only arrows. The bands, CCI and the EMA are internal calculations, and there is no input to show their lines.

Marks appear even after tightening the distance and range

Check Setup 2. This additional path does not use the distance, range, band or previous high/low. On the normal path with Allow Band Break=true, only the distance limit is not used outside the band.

Marks appear on bars with no crossing and on consecutive bars

It judges by the current greater/less relationship and does not require a previous crossing of CCI and the EMA. Setup 2 also does not show only the first bar that returns inside the levels.

Marks differ even with the same points

Values change if the symbol's price size of 1 point, the timeframe, the history or the price feed differ. The CCI and band calculations also use the current bar's price.

Marks disappeared after changing settings

With CCI EMA Period=1, CCI and the EMA become equal and no marks appear. With CCI Period=1, CCI is 0. With Upper=Lower, Setup 2 adds no marks.

The input is not accepted

Set each period to 1 to 500, Lower≤Upper, the deviation multiplier to 0.1 to 10, and the distance and range each to a finite value from 0 to 1,000,000. Check the input ranges of the bands and other items even with Setup 2.

Arrows are cut off at the edge of the screen

Adjust the chart's vertical scale and display range. The published images can also be checked at full size.

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

Calculation and reference range

CCI and Bollinger Bands are calculated from weighted price = (high+low+2×close)/4, and CCI is smoothed with an EMA. The normal downward condition is: CCI>Upper and CCI<its EMA, the high is at or below the previous high, the high is at or below the upper band line with its distance from the line within the limit, and the bar's high−low is within the limit. The upward condition is: CCI<Lower and CCI>EMA, the low is at or above the previous low, the low is at or above the lower band line with the distance within the limit, and the range is within the limit.

Initial values and exceptions

It is not a method that detects only the moment CCI and its EMA cross; it records bars where the greater/less relationship and each condition are met. If the conditions continue, marks appear consecutively. Setup 2 switches to separate conditions and does not use the band distance, range or previous high/low conditions. With the default Closed Bars Only=true, no mark is placed on the latest forming bar.

Package contents and dependencies

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

Formulas and initialization

w=(high+low+2×close)/4. CCI=(w−period average)/(0.015×mean absolute deviation); if the deviation is 0, CCI=0. The CCI EMA starts at the first valid CCI and is updated with coefficient 2/(EMA period+1). The bands are the SMA of w ± multiplier × population standard deviation. Everything is recalculated from the oldest bar every time.

Starting position

CCI is valid from the bar at position CCI Period, and the EMA also starts from that value. Judgment needs 1 previous bar and Bands Period bars. The 0-based first position that can be judged is max(1, CCI Period−1, Bands Period−1). By default this is the 21st bar, but since the first CCI and EMA are equal, no normal mark appears there. Setup 2 also needs the band history.

Equal levels and Setup 2

The normal condition is CCI>Upper or CCI<Lower. The additional path inside the levels is Lower≤CCI<Upper and EMA>Upper for down, and Lower<CCI≤Upper and EMA<Lower for up. With Upper=Lower the additional path never holds. On the normal path, the previous high/low, distance and range limits include equality.

State and display

The normal path first checks the upper side of CCI, then the lower side, and only if neither applies does it check Setup 2. It never places both up and down on 1 bar. There are no notifications or orders, no external indicators and no account authentication.