Reading the color and direction
A blue up arrow is a combination of upward crossings, and a red down arrow is a combination of downward crossings. Up arrows are 10 pixels below the low, and down arrows are 10 pixels above the high.
Records with arrows on the price chart the bars where a CCI zero crossing and crossings of the selected confirmation conditions line up.
CCI is the basisThe basis is the CCI of the typical price crossing from negative to positive or from positive to negative. Merely touching zero does not count.
Select confirmation conditionsArrows appear only on bars where all the conditions in use among Trend Power, Stochastic Blend and DI confirm the same direction.
Same bar or 1 bar apartBy default it combines crossings on the same bar or 1 bar before or after. The arrow is placed on the bar after the conditions line up and is not moved back to the past crossing bar.
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.
A blue up arrow is a combination of upward crossings, and a red down arrow is a combination of downward crossings. Up arrows are 10 pixels below the low, and down arrows are 10 pixels above the high.
Even if you reduce the confirmation conditions to 1, the CCI crossing cannot be removed. If all 3 are set to false, loading is refused.
Confirm On Current Bar sets whether the crossings must be simultaneous, and Closed Bars Only sets whether the unclosed bar is included in the display. Check them separately.
Of the 4 kinds of crossings, CCI is required. You choose among the remaining 3 conditions, and it shows bars that meet all the selected conditions. It is not an indicator that measures trend strength, win rate or trading prices.
Uses the CCI of typical price = (high+low+close)/3. Previous negative and current positive is up; previous positive and current negative is down. If the previous or current value is exactly 0, it is not a crossing.
Trend Power is the relationship between the close, an average and the range; Stochastic Blend is a composite of %K over multiple periods and its smoothed line; DI is the relationship between +DI and −DI. The lines themselves are not drawn; only the final arrows are drawn.
With the judged bar as t, the condition holds if any of CCI[t] and condition[t], CCI[t−1] and condition[t], or CCI[t] and condition[t−1] are in the same direction. It does not hold if both are only on the previous bar.
Each enabled condition must satisfy one of the combinations above for the same judged bar t. It is not a function that keeps remembering many confirmations scattered before and after the CCI crossing.
Even with Confirm On Current Bar=true, if Closed Bars Only=true, nothing is drawn on the unclosed latest bar. The target is a closed bar where the crossings line up on the same bar.
Apply it to an MT5 price chart and load the history. When Stochastic Blend is used, the calculation needs at least 91 bars, and the crossing comparison needs data from the 92nd bar onward.
CCI is required. Check true/false for the 3 items that start with Use.
For the same bar only, set Confirm On Current Bar=true. To exclude the latest bar, set Closed Bars Only=true.
Compare with the same symbol, timeframe and history. After changing conditions, check whether the inputs are the same as in the manual's images.
| Included file | Purpose / location |
|---|---|
| TRI_CCI_Confirmed_Cross_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 13 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.
InpUseTrendInpUseBlendInpUseDIInpConfirmOnCurrentInpCCIPeriodInpDIPeriodInpTrendSmaInpPowerEmaInpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYThere are no order, exit, alert or email functions. Arrows are a record of the crossing conditions.
Calculates the full history from the oldest bar every time. Unclosed bars change with price. Closed bars are also recalculated when history is added or corrected or settings are changed.
Even for standard indicators with the same name, crossings differ depending on the smoothing method, calculation start position and handling of equal values. An exact match with external indicators is not assumed.
Displays Produced by Trilogy Inc. and a QR code to https://www.trgy.co.jp/. There is no account authentication. The white/black switching according to the background applies to the brand text, not to the arrow colors.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
Check the required history, the conditions in use and the CCI period. With CCI period 1, CCI is always 0 and there are no crossings. If no bar meets all conditions, no marks appear.
Negative → 0 → positive is not counted as a strict CCI crossing. Each confirmation condition also does not hold if it only passes through an equal value.
With 1 bar apart, the mark appears on the bar after the combination lines up. It is not a mechanism that moves arrows back to past bars.
Closed Bars Only=true excludes the latest bar. Simultaneous confirmation and limiting to closed bars are separate settings.
All 4 periods are integers from 1 to 500. The periods of unused conditions also cannot be out of range. A setting with all 3 conditions set to false is also refused.
The images can also be checked at full size. Adjust the display range and colors in the terminal and compare. The 10-pixel distance is different from price points.
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.
Let up be d=+1 and down be d=−1. For the CCI crossing C and each condition's crossing X, the default is (X[t]=d and (C[t]=d or C[t−1]=d)) or (X[t−1]=d and C[t]=d). With simultaneous confirmation, only X[t]=d and C[t]=d. An AND is taken over all enabled conditions, and the arrow is shown at the low or high of the judged bar t. Each crossing is a strict greater/less change or sign reversal between the previous bar and the current bar.
From the average m and mean absolute deviation d of the typical price, CCI=(price−m)/(0.015d). When d=0, it is 0. Trend Power's green series G=close−SMA of close, and red series R=−((low−EMA of close)+(high−EMA of close)). Previously R>G and now R<G is up; the reverse is down. The series themselves are hidden.
%K for Low/High is obtained with K=8, 89, 55, 34, 21 and Slowing=3, and added with weights 0.05, 0.43, 0.26, 0.16, 0.10. With Slowing, the sum of (close−K-period low) over 3 bars is divided by the sum of (K-period high−K-period low) over 3 bars and multiplied by 100. A denominator of 0 gives 100. The composite mov is smoothed as lo=mov/15+previous lo×14/15. mov starts from the 91st bar, with the first previous lo set to 0. Previously lo>mov and now lo<mov is up; the reverse is down.
The percentages of +DM and −DM divided by True Range on each bar are exponentially smoothed with coefficient 2/(DI Period+1). The oldest bar is 0. On a bar where the up and down DM are equal, both are 0, and even if True Range=0, that bar's ratio is 0. If +DI strictly crosses −DI from below to above, it is up; the reverse is down. The internal ADX is not used in the final condition.
CCI has its first value on bar P, and crossings are from bar P+1 onward. If Trend SMA is L, Trend crossings are from bar L+1 onward. Blend crossings are from the 92nd bar onward, and DI crossings from the 3rd bar onward, excluding the initial pair of 0 values. Each enabled condition and a valid CCI value must line up, and reaching the bar count does not guarantee that a mark appears. If Closed Bars Only=true, the bar after the judged bar is needed.
The ZIP contains only 1 item, the MT5 indicator itself, and the manual is opened from the product page on the site. No external indicators, DLLs or authentication files are needed. Source code is not included in the ZIP. The display buffers are 0 for up and 1 for down, and the stored values are the low and the high. The visual 10-pixel shift is not added to the price values.