Enhance Your Trading with the MT5 CCI Shift Indicator

Mike 2023.10.21 08:51 23 0 0
Attachments

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.

This shift feature visually moves the plot from right to left, providing a hindsight representation of the signal. While it might not be everyone's cup of tea, it can be valuable in certain trading systems.


No shift

Shift applied


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!

List
Comments 0