## Normalized CCI

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

### Normalized CCI

Apprentice
FXCodeBase: Confirmed User

Posts: 33768
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: Normalized CCI

Hi Apprentice,

In one of your messages, you specified the following:
"For normalization, I use period Min, Max. Is there another method you would like to use? "

However, I believe normalization should be done following these guidelines:

The normalized Commodity Channel Index (CCI) is calculated by dividing the CCI by its standard deviation over a given period (14).

The formula I suggest using to calculate the normalized CCI is as follows:
Normalized CCI = (CCI - CCI's simple moving average) / (0.015 x CCI's standard deviation)

where:

CCI is the Commodity Channel Index.
CCI's simple moving average is the simple moving average of the CCI over a given period (usually 14 periods).
CCI's standard deviation is the standard deviation of the CCI over the same period as the moving average.

Thank you very much, Apprentice! :)
Gilles
FXCodeBase: Initiate

Posts: 141
Joined: Tue Jul 31, 2018 8:28 am
Location: France

### Re: Normalized CCI

Development reference 150.

Apprentice
FXCodeBase: Confirmed User

Posts: 33768
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Normalized CCI

Try this version.
Normalized CCI.lua

Apprentice
FXCodeBase: Confirmed User

Posts: 33768
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Hi Apprentice,

Would it be possible for you to create an Adaptive version of the Normalized CCI indicator ?
I suggest using the calculation method used for the AMA (Adaptive Moving Average) indicator.

Thanck you !
Gilles
FXCodeBase: Initiate

Posts: 141
Joined: Tue Jul 31, 2018 8:28 am
Location: France

### Re: Normalized CCI

Development reference 205.

Apprentice
FXCodeBase: Confirmed User

Posts: 33768
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia