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

Smoothed CCI

Smooths the difference between price and a center line divided by the deviation, and shows it as a blue line and positive/negative bars. The center method and the later smoothing method can be chosen separately.

Indicator name: Smoothed CCIMetaTrader 5Separate window

Choose the center → divide by the deviation → smooth

Choose the center → divide by the deviation → smoothFind the difference between price and the chosen center lineDivide by the mean deviation to make the unsmoothed valueThe smoothed line and positive/negative bars of the same value
Schematic diagram of how to read it. This is not an actual terminal screen.
1

The blue line and the bars are the same valueGreen is 0 or more, red is below 0. It is not a color-coding for rising and falling.

2

Gray is unsmoothedAdded with Show Unsmoothed CCI. With None it is not drawn because it would duplicate the main line.

3

±100 is not a limitThe vertical axis is automatic, and values also go outside ±100.

Default: 14, Typical, SMASmoothing: T3 5/0.618No marks or notifications
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 period
InpCCIPeriod
14 → 20
Price used in the calculation
InpPrice
Typical → Close
Center method
InpCenterMethod
SMA → EMA
Later-stage smoothing
InpSmoothMethod
T3 → SMMA
Smoothing period
InpSmoothPeriod
5 → 10
Show unsmoothed value
InpShowCCI
false → true
Show bars
InpShowHistogram
true → false

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 / InpPrice = Typical / InpCenterMethod = SMA / InpSmoothMethod = T3 / InpSmoothPeriod = 5 / InpShowCCI = false / InpShowHistogram = true
Smoothed CCI default settings
The blue line and the green/red bars have the same value. The vertical axis in the image is 259.85 at the top and −214.37 at the bottom.
View the screen in detail at full size
Smoothed CCI default settings (actual size)
Settings change exampleInpCCIPeriod = 20 / InpPrice = Close / InpCenterMethod = EMA / InpSmoothMethod = SMMA / InpSmoothPeriod = 10 / InpShowCCI = true / InpShowHistogram = false
Smoothed CCI settings change example
Changed to period 20, Close, EMA center and SMMA 10 smoothing. The bars are removed and the gray unsmoothed line is added.
View the screen in detail at full size
Smoothed CCI settings change example (actual size)

Published example: M1. This is an example to explain the display. The example with changed settings is not a set of recommended values. Details can be checked in the actual-size view. Also check the vertical axis and units of the separate window. Except for products with a fixed scale, the scale changes with the settings and the displayed range.

2

How to read it in 30 seconds

Center and smoothing

The center is the reference for price; smoothing is processing applied to the value after calculation.

Bar color

0 or more is green and negative is red. At 0, the bar has no height.

Duplicate values in the heading

By default, the same number for the bars and the line appears twice.

3

What it measures

Changing the center method also changes the meaning of the unsmoothed value.

Unsmoothed value

Divides the difference between price and the current center by the mean deviation of price from that center×0.015. The center is chosen from SMA, EMA, SMMA, LWMA and LSMA.

Choosing the smoothing

None, T3, SMA, EMA, SMMA, LWMA. With None, the unsmoothed value becomes the main line. T3's default coefficient of 0.618 differs from Smoothed Stochastic's default of 0.7.

A static calculation window

With an SMA, LWMA or LSMA center, if all prices in the window are the same, the unsmoothed value is 0. With EMA or SMMA, past state remains and the value is normally ±66.67, but it is 0 if the center and the price coincide.

First value

None and T3 start at bar CCI Period. Moving average smoothing starts at bar CCI Period+Smoothing Period−1. The unsmoothed line starts at bar CCI Period.

4

Situations for reading the display

The bars and the line overlap

Indicator
The same value shown in 2 forms
Cross-check
The same 2 numbers in the heading
Check
Hide the bars if needed
Caution
They are not 2 independent calculation results.

Color changes while the price is stopped

Indicator
Small positive and negative values alternate
Cross-check
Remaining smoothing state
Check
Read the value, not just the color
Caution
The color can change even when the value is almost 0.

Large values right after a stop

Indicator
Large values even from small price changes
Cross-check
Center and mean deviation
Check
Keep it separate from the range itself
Caution
A large value does not mean a large price change.

Level lines not visible

Indicator
±100 is outside the display range
Cross-check
Top and bottom of the vertical axis
Check
Check the scale at actual size
Caution
The level lines are not necessarily always visible.
5

Steps for checking the display

1

Check the center

Start with the default SMA. Do not confuse the center with the later-stage smoothing.

2

Read the line and the bars

Blue is the smoothed value, the bars show its sign, and gray is the unsmoothed value when enabled.

3

Cross-check the settings changes

Check all input differences in the change example. The effects of several items overlap.

4

Note when reloading

EMA and SMMA centers and recursive smoothing depend on where the history starts.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Smoothed_CCI.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. Place only 1 instance of the same product on 1 chart.

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 8 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.

CCI period

Name shown on screen
CCI Period
Input name
InpCCIPeriod
Default
14
Allowed range
2〜1000
Description
The calculation window for the center line and the mean deviation.

Price used in the calculation

Name shown on screen
Applied Price
Input name
InpPrice
Default
Typical
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
The same price is used for the center, the deviation and the numerator.

Center method

Name shown on screen
Center Method
Input name
InpCenterMethod
Default
SMA
Allowed range
SMA/EMA/SMMA/LWMA/LSMA
Description
LSMA is 3×LWMA−2×SMA. Changing the center changes the reference for the deviation.

Later-stage smoothing

Name shown on screen
Smoothing
Input name
InpSmoothMethod
Default
T3
Allowed range
None/T3/SMA/EMA/SMMA/LWMA
Description
None means no smoothing.

Smoothing period

Name shown on screen
Smoothing Period
Input name
InpSmoothPeriod
Default
5
Allowed range
1〜1000
Description
The range is checked even with None.

T3 factor

Name shown on screen
T3 Factor (0 to 1)
Input name
InpT3Factor
Default
0.618
Allowed range
A finite value from 0 to 1
Description
The input range is checked even for methods other than T3. It does not affect the calculated values of methods other than T3.

Show unsmoothed value

Name shown on screen
Show Unsmoothed CCI
Input name
InpShowCCI
Default
false
Allowed range
true / false
Description
Adds the gray line. It is not drawn with None.

Show bars

Name shown on screen
Show Histogram
Input name
InpShowHistogram
Default
true
Allowed range
true / false
Description
Also draws the same value as the main line as bars from 0.
8

Usage specifications

Smoothing and flat sections

Because of the smoothing state, the line may swing above and below 0 and the bar color may change even when the price stops. Even a small movement right after a stop can make the value before smoothing large.

The vertical axis is automatic

±100 are level lines, not upper or lower limits of the value.

The 0 in the header and whether a line exists

Even if 0.00 appears in the separate window header, there may be no value because the required history is insufficient. To distinguish this from a valid value of 0, also check whether the line exists and the bar at which drawing starts.

History dependence

With center EMA or SMMA, or smoothing T3, EMA or SMMA, values can change with the start of the history. With center SMA, LWMA or LSMA combined with smoothing None, SMA or LWMA, it calculates within the required finite window.

Forming bar and recalculation

The value of the latest bar changes while it is forming. Past values may also be recalculated when history is added or corrected, so this is not a guarantee of no repainting.

Input checks

Inputs for unused lines and methods are also checked against the allowed range. Simply turning off the display does not cause invalid periods or similar values to be ignored.

Only 1 instance of the same product on 1 chart

This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.

For on-screen display only

Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.

9

Troubleshooting and usage notes

Nothing is displayed

Check the required number of history bars and the inputs for the lines to show. With out-of-range inputs it does not start, and 1 line giving the reason in English appears in the Experts tab.

Details cannot be read

Open the actual-size view of the real screen and check the line colors and the vertical axis.

The value changed

The latest bar is forming. If past prices or the start of history change, values after recalculation can also change.

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

Reference for the deviation

Averages the absolute differences from the current bar's center to all prices in the window, not from each past bar's own center. A mean deviation of 0 gives 0. With an SMA, LWMA or LSMA center, a window in which all prices are the same is also 0.

T3

The internal EMA period is converted to (Smoothing Period+1)/2. The 6 stages of smoothing state are combined with coefficients and initialized with the first CCI value.

Comparison with the standard

With smoothing None, an SMA center, Typical and period 14, it has the same definition as the standard CCI except for flat price windows. This is not a guarantee of identical values; differences arise in flat windows and from rounding. Do not extend this explanation to other centers or smoothing methods.

Short periods

With period 2, the effect of rounding in the price calculation can stand out. Do not treat ±66.67 as a fixed upper limit.