SMS LOOP

 

Hi please can any one help with sending of sms from mt4, I got it working fine for weeks but then the ea opened another trade strait after closing one, then the sms went into a loop and sent about 50 sms's until my sms account was empty, has any one got any idea how I can stop this, thanks

 

Yes . . . if you want a more specific answer post your code . . .

Put the SMS code/function call immediately after the code that opens the order/ inside the same conditional statement that opens the order.

 
RaptorUK:

Yes . . . if you want a more specific answer post your code . . .

Put the SMS code/function call immediately after the code that opens the order/ inside the same conditional statement that opens the order.


Hi thanks for taking the time to help here is the code,
Files:
smsbcode.txt  1 kb
 
robertlotter:

Hi thanks for taking the time to help here is the code,

I think I found the problem, it sends an sms for every pip after it reaches the take profit amount, so it should be easy to fix thanks.
 
robertlotter:

I think I found the problem,
Well done :-)
Reason: