Download MetaTrader 5

CCI indicator in MQL4 expert advisor

To add comments, please log in or register
salirazataqvi
24
salirazataqvi  

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.

Carl Schreiber
7289
Carl Schreiber  

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(...)));

To add comments, please log in or register