Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
CCI Indicator manually coded

Hi there,
I just started learning Python and tried to start some small algorithms. For my latest algorithm I need to get access to the data of the CCI indicator for different periods. I coded the CCI Indicator manually, but unfortunately the code returns not the right CCI data? What did I make wrong?

See the source code attached, thank you :)

2 responses

Niklas,

You may use talib to get CCI

Thank you! How can I change the output of the CCI to a 4H chart instead of 1D?