Indicators: CCI - EMA based

 

CCI - EMA based:

CCI (Commodity Channel Index) is normally calculated using Simple Moving Average and mean deviation based on that same Simple Moving Average.

This version of CCI is changing that. Instead of using Simple Moving Average it uses EMA (Exponential Moving Average), and instead of using mean deviation it uses EMA deviation (originally published here EMA Deviation). That gives us a sort of a completely new CCI and the difference, when compared to original Donald Lambert calculation is significant in a lot of cases.

Author: Mladen Rakic

 
Thank you for publishing it.
I would love to see the lwma based one indeed.
 

It displays nothing.

I'm using build 2190.

 
nonain:

It displays nothing.

I'm using build 2190.

Build 2190. No changes of the code at all (just downloaded it and attached it to the chart)


 
Mladen Rakic:

Build 2190. No changes of the code at all (just downloaded it and attached it to the chart)


My experts tab says


 
nonain:

My experts tab says


Line 69 :

      val[i]=(dev!=0) ?(_price-avg)/(0.015*dev) : 0;

If you have changed that line, undo the change.

If you didn't and it still does the same report it to metaquotes (since your terminal obviously does not recognize the "dev!=0" part then)

Nothing to be changed in the code

 
Mladen Rakic:

Line 69 :

If you have changed that line, undo the change.

If you didn't and it still does the same report it to metaquotes (since your terminal obviously does not recognize the "dev!=0" part then)

Nothing to be changed in the code

I haven't changed the code.

By the way, I tested the following indicators and only the jma one displayed itself.

https://www.mql5.com/en/code/20925
https://www.mql5.com/en/code/22482
https://www.mql5.com/en/code/21253


 
nonain:

I haven't changed the code.

By the way, I tested the following indicators and only the jma one displayed itself.

https://www.mql5.com/en/code/20925
https://www.mql5.com/en/code/22482
https://www.mql5.com/en/code/21253


Please read my post again : zero checking code is done. On my terminal they are working correctly (as you can see from my previous posts).  Nothing to be changed in the code. All the best

 
Mladen Rakic:

Please read my post again : zero checking code is done. On my terminal they are working correctly (as you can see from my previous posts).  Nothing to be changed in the code. All the best

I haven't said "Hey, this is a problem. please fix it" I just reported an issue. All the best

Reason: