Slawa could you please help me with Error numbers issue?

 
Hi Slawa,

If I try and place an order but order fails due to an execution error, can I resend same order straight away? For example if I get error number 4 (server busy) do i really have to wait "several minutes"? or can i just keep on trying to re-send order until it gets filled?

If I keep on trying to re-send order with no delay will i get into trouble with broker, or will MT4 expert fail somehow?

THanks Slawa.

Kind regards

RJF
 
Your actions are depend from returned error.
Please refer to table in "MQL4: Execution errors"

You can expose your samples with error processing and we will discuss it
 
Your actions are depend from returned error.
Please refer to table in "MQL4: Execution errors"

You can expose your samples with error processing and we will discuss it


Ok. But do you agree that no matter what error is, there is no harm in sending same order again straight away?

Regards

RJF
 
The only case when OrderSend must not be called repeatedly (sending the same order), it is the case of the returned code ERR_TRADE_TIMEOUT (128). In the latter case it is necessary to make completely sure that the order has not been opened.

All other cases (and this one, too) are described in the table mentioned above.