Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 6760
- Rating:
- Published:
- 2018.11.01 14:06
- Updated:
- 2019.01.29 15:58
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Theory:
The commodity channel index (CCI) is an oscillator originally introduced by Donald Lambert in 1980. It is calculated as:
(price - average) / (0.015 * mean absolute deviation)
This version:
In this version we are adding (changing) the following:
- option to change the mean absolute deviation to:
- standard deviation
- ATR (average true range)
- option to chose to smooth the value of such a "CCI"
- option to change color on zero crosses or on slope direction change
What is the same as in regular CCI (if smoothing is not used):
- the crosses of the zero line will always be exactly the same as in regular CCI (regardless if you use ATR or standard deviation for calculation)
What is different :
- levels are not going to be the same (that will eventually need adjustments if you are used to use levels when using CCI for trading decisions)
- slope of the CCI is not going to be the same
Usage:
You can use the color changes for signals.

Volume Profile + Range v6.0 (former TPO).

Linear regression