If you're looking to level up your trading game, the MT5 CCI with a shift parameter is a fantastic tool to consider. This simple extension to the CCI indicator uses the iCCI function call, allowing you to shift the plot by a user-defined number of bars.
Think of it as an educational piece of code that demonstrates how to implement a shift feature for any indicator by adjusting the buffer index. When you use the [i - shift] notation, you're effectively shifting the index in the buffer.


The Test_CustomCCI script is a great way to see how this indicator works in action with iCustom. To get started, simply place both files in your Indicators/Examples folder, compile CCI_withShift, and then compile the other file. You'll see both indicators ready for use in your trading platform.
Happy trading!
Comments 0