Thread: Martingale EA
View Single Post
  #136 (permalink)  
Old 01-20-2008, 08:41 PM
wolfe's Avatar
wolfe wolfe is offline
Senior Member
 
Join Date: Jan 2006
Posts: 820
wolfe is on a distinguished road
v1_3 will print to the trade log if the following errors occur while trying to place an order:

case 4: error_string="trade server is busy";
case 6: error_string="no connection with trade server";
case 128: error_string="trade timeout";
case 134: error_string="not enough money";
case 136: error_string="off quotes";
case 137: error_string="broker is busy (never returned error)";
case 138: error_string="requote";
case 146: error_string="trade context is busy";
case 148: error_string="amount of open and pending orders has reached the limit";

It should then re-try OrderSend() a set number of times, controlled through external variable Number_Of_Tries before it gives up and prints:

Print("Error opening Additional order : ", ErrorDescription(Error));

Time will tell if these new code additions will help the functionality of TFX.
Reply With Quote