Control strings

 

Hi

in my EA MT5 there are differents indicators and everyone can to be false or true.

There are two CCI.

Every CCI have setup for line buy and setup for line sell.

If CCI line cross linebuy... buy

If CCI line cross linesell... sell


Is correct this ? : 

if(cci(InpCCIPeriod2)>CCI2LineValueBuy && UseCCI1==true){buy++;}

if(cci(InpCCIPeriod)>CCI1LineValueBuy && UseCCI2==true){buy++;}


thank you