OrderSend error 4111

[Deleted]  

 I have export the follow data ,then run the EA,

 the error is :

2012.11.20 11:25:34 2007.09.09 12:51      USDJPY,Daily: OrderSend error 4111?

 

how i can do ? 

Files:
table2_1.zip  40 kb
phi nuts
2092
phi nuts  
leyou1233:

 I have export the follow data ,then run the EA,

 the error is :

2012.11.20 11:25:34 2007.09.09 12:51      USDJPY,Daily: OrderSend error 4111?

 

how i can do ? 

The data got nothing to do with the error.

Next time add this code so you understand what error you get.

On top of your code :

#include <stdlib.mqh>

Then, do Print for error checking

int error = GetLatError();
Print ("Error number ",error," = ",ErrorDescription(error) );

And you will find that the error 4111 is "shorts are not allowed in the expert properties", which mean this :

 

And so you have to enable both long and short