my EA not trade Sometimes

 
hi
my code is:
if(Bid-Open[0]>=400*Point){
ticketNumb = OrderSend(Symbol(),OP_BUY,yek,Ask,0,SlB,TpB,"TEST",1374,0,clrBlueViolet);
}

its my part of EA that make trade,

i set the EA to 3 accounts,

its work good,

but sometimes 2 or 1 accounts not trade!!!!

1 account make trade but 2 accounts not or .........

i dont know why!!

anybody can help?

 

If the OrderSend() fails, print out the error and the values of the parameters used, then you may see what the problem is.

Where do the variables 

yek,SlB,TpB

get their values from?

Topics concerning MT4 and MQL4 have their own section.

In future please post in the correct section.

I will move your topic to the MQL4 and Metatrader 4 section.

 
Keith Watford:

If the OrderSend() fails, print out the error and the values of the parameters used, then you may see what the problem is.

Where do the variables 

get their values from?

Topics concerning MT4 and MQL4 have their own section.

In future please post in the correct section.

I will move your topic to the MQL4 and Metatrader 4 section.

thanks,

my EA work in Daily charts, there is no errors when it not trade!!!

but some days i see this messages in Expert part (Attached) i dont no why! i dont remove or recompile that day!

is this the problem??

and otherway, i think when the Bid go up 400PIP from Open, in 1 or 2 secound it going down again, and EA cant make trade in 1 2 secound,
i dont know this is true or what....

parameters:

double yek = 0.44;
double SlB = Ask-((170)*Point);
double TpB = Ask+(2700*Point);
Files:
EA.png  22 kb