fillerofjoy
fillerofjoy
fillerofjoy
fillerofjoy
Hi There. Is there some who can point me in the right direction. I am looking for the proper construction of my Logic in the creation of my EA. I have 1 indicator that has 2 lines that cross a 3rd line either together or seperately. I have configured this indicator differently 5 times. So there is a possible of 10 different times this crosses (2 x 5). I have constructed my EA to attach a value to a variable for each cross. I am now at the point where I have this final Logic. The logic needs to be something like this,

if (all variables 10 in total) added together produce a total greater than 7 then program executes a buy.

This seems simple to me but the logic I have variable 1 + variable 2 + variable 3 etc buys for each time one or more of the 5 indicators cross. I only want it to execute the buy if there are more that 7 crosses lined up at the same time.

Any help to point me in the write direction would be appreciated.

Thanks

Clayton
fillerofjoy
Registered at MQL5.community