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.
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.
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.
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.
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.
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.
Checks for CCI above the upper level and below its own EMA, or below the lower level and above its EMA.
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.
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.
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.
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.
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.
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.
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.
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.
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.
| Condition | Normal | Added by Setup 2 |
|---|---|---|
| CCI | Above Upper / below Lower | Within the Lower to Upper range |
| EMA | Above CCI / below CCI | Above Upper / below Lower |
| Previous high/low, band, distance, range | Applied (partly lifted depending on settings) | Not applied |
| Forming bar | Not shown if Closed Bars Only=true | |
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.
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.
Check the symbol's 1 point and understand what price size 100/150 points correspond to.
Change the settings 1 at a time on a separate chart. Note that the distance and range limits do not apply to Setup 2.
| Included file | Purpose / location |
|---|---|
| TRI_CCI_EMA_Band_Reversal_Arrows.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 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.
InpCCIPeriodInpCCIUpperInpCCILowerInpEMAPeriodInpBandsPeriodInpBandsDeviationInpMaxBandDistanceInpMaxBarRangeInpAllowBandBreakInpSetup2InpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYIt does not place, modify or close orders. There are no notifications or emails either.
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.
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.
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.
This product draws only arrows. The bands, CCI and the EMA are internal calculations, and there is no input to show their lines.
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.
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.
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.
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.
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.
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.
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.
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.
Only MT5 itself and this manual. Account authentication, external indicators and DLLs are not required.
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.
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.
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.
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.