EA Closing my orders wont work anymore.

 

Hi i have a problem with my EA.

When i modified the EA so it would have more then one position open at the same time.

The exit -buy and -sell order function doesent work anymore.

How come? :S

Is there anyone who knows?



Files:
new.mq4  11 kb
old.mq4  10 kb
 

Why have you done this ?

int Total, Ticket;  //  <---  type int
.
.
.

   Total = OrdersTotal()>=100;   //  result is a bool,  why cast it to an int ?

You need to think about this stuff in order to understand it.

Reason: