Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

MT5 CCI with shift parameter - indicator for MetaTrader 5

Views:
3892
Rating:
(6)
Published:
2023.10.20 23:51
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

A simple extension to the CCI indicator using the iCCI function call. Now you have a shift parameter which will shift the plot by user defined bars.

This is somewhat an educational code as it reveals how to apply a shift feature to any indicator based on shifting the buffer index.

When you use [i + shift], you are effectively shifting the index forward in the buffer. This means you are accessing values in the buffer that are ahead (in terms of bars) of the current bar i. 
Visually speaking, it moves the plot from right to left.


No shift

Shift applied


The "Test_CustomCCI" script shows how the indicator can be utilized with iCustom. 

Place both files in the Indicators/Examples folder and compile CCI_withShift before compiling the other file. They will both show as usable indicators in the software.





























Smooth Algorithms - Corrected/Modified - library for MetaTrader 5 Smooth Algorithms - Corrected/Modified - library for MetaTrader 5

Smooth Algorithms fixed version plus Trade Algorithms plus full operational EA, plus two indicators . So you will get complete project where you be able to see example how to use and implement this libraries

Double Bolling Band Signal Double Bolling Band Signal

Let follow previous EA by this link https://www.mql5.com/en/code/46630

Simplest CSV file reader Simplest CSV file reader

Provide simplest class to read and parse CSV file

Keltner Channel code for beginners by William210 Keltner Channel code for beginners by William210

Keltner Channel for traders or young developers by William210