CCI formula help

Viewing 2 posts - 1 through 2 (of 2 total)
  • #234451

    Hi,

    I am looking to explore modifying the CCI indicator. Can someone help me with the actual code of the CCI.

    Here is the actual formula but I don’t know how turn this into code.

    CCI=.015×Mean DeviationTypical PriceMA

    where:

    Typical Price=i=1P((High+Low+Close)÷3)

    P=Number of periods

    MA=Moving AverageMoving Average=(i=1PTypical Price)÷P

    Mean Deviation=(i=1PTypical PriceMA)÷P

    Can anyone help me with this?

    TIA​

    #234459

    Hi, here you have the code:

     

    2 users thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login