Download MetaTrader 5

Control strings

To add comments, please log in or register
Noprofit
303
Noprofit  

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

To add comments, please log in or register