CCI indicator in MQL4 expert advisor

 

Hi all I am using CCI indicator in MQL4 expert advisor. u want to set its fixed minimum and fixed maximum properties via MQL4 code. please refer to the below screen shot.



please tell me how to get it done.

 

Both limit are related ONLY to the indicator window. They have NO effect on the calculated results. they can be greater than e.g. 100 but than this value cannot be displayed in that window.

If you want to limit the values of the CCI in an ea use limCCI = fmax(-100,fmin(100,iCCI(...)));