![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
let's look at the CCI indicator http://berg.com.ua/tech/indicators-overlays/cci/
Come on, what do you want to sort out ?
Для того, чтоб сосчитать значение CCI на последний период, делаем следующее:
The indicator is considered one of the most sensitive - Why?
Because they take a typical price, a simple MA.
Where does the constant of 0.15 come from?
How to choose the optimal periods for each instrument and for each frame?
Further there will be questions about the interpretation of the indicator.
"After all, one takes a typical price, a simple MA, ..."
CCI uses a simple moving average instead of an exponential one, so prices from the distant past will be discarded and will not affect the results.
"Where does the constant of 0.15 come from?" = probably meant to write 0.015
Some arbitrary constant of 0.015, used in the CCI formula, was added to scale the index so that 70 to 80 per cent of the values fell into a channel between +100 per cent and -100 per cent. Lambert's premise was that fluctuations between channel boundaries were considered random and of no value for trading. Lambert suggested to go long only when the CCI was above +100. A significant drop below +100 would be an exit signal from a long position. The rules for a short position are the same: sell below -100, buy back above -100.
"How do I select the optimal periods for each instrument and for each frame?"
For CCI time period selection, Lambert recommended using 1/3 of a full cycle. So, if you see a cycle of 60 days (lows occur every 60 days), we recommend using a 20-period CCI.
By default, the CCI period is set to 14, so it tracks 42-bar cycles (14x3). Lambert has done research which suggests the CCI period length should be set to less than one third of the cycle length. He tested a number of different period lengths, ending with 20 as the standard number, but suggested that this number should be adjusted for each market individually. Twenty is the default value for CCI by most programmes.
After all, one takes a typical price, a simple MA, ...
How to choose the optimal periods for each instrument and for each frame?
Further there will be questions about the interpretation of the indicator.
All indicators, including oscillators, are to some extent based on the moving average of the price.
How to select the optimal periods - 1) look at the graph visually and select what seems optimal 2) optimize the parameters in the Expert Advisor or in Excel
Actually, you need to first decide on the interpretation - how you are going to use it, because there are several variants, and then solve the previous problem.
So, if you see a cycle of 60 days (lows occur every 60 days), we recommend using a 20-period CCI.
Imho nonsense, if the price always went in the same cycles everything would be easy
This is an example of tuning, you can tweak the indicator according to the algorithm whenever you want...
This is an example of tuning, according to the algorithm you can tweak the indicator whenever you want...
I get it, I'm not criticising you, I'm just trying to figure it out on a chart and it's hard to understand why 1/3
Lambert's research showed that for best results, the moving average used in CCI should be less than one-third the length of the estimated cycle.
However, the test results tables showed that the five-period moving average performed best, regardless of cycle length...
Try setting CCI = 50 ... I for example use 47 on "cable" ....