Forex error 138

More video on topic «Forex error 138»

You can make calculations to know whether the current equity is enough for opening of an order. You can also use the function AccountFreeMarginCheck() that returns the value of free margin to remain after opening of a market order with certain amount of lots for a certain symbol. If the returned value is equal or more than 5, there are enough money on the account. If it is less than 5, then the order of this volume and for this symbol cannot be opened, the client terminal will return error 689.

Market Formula = Forex Trader + Metatrader - Google Sites

This page is obsolete, no longer maintained and its content only applies to Tick Data Suite . Please head to the support page and browse the support articles for information regarding Tick Data Suite v7.

Error 138 requote. - MQL4 and MetaTrader 4 - MQL4

However, if the attempt to open an order fails, the control will be passed to block 8-9 for error analyzing. Two types of errors are considered here: those that still allow to hope for successful opening of the order and those, the occurrence of which means unambiguous termination of the program execution. The variable 'Error' is assigned with the code of the last error, in this case, of the error that has been returned by the server or by the client terminal at execution of function OrderSend().

It would be much more efficient to create and use one trading program that would consider all special features of trading. If we use only one trading program, it is just impossible to form several trade request simultaneously. Moreover, the entire algorithm could be organized much better in such a program: consider the probability of successful trades and re-allocate money correctly, according to this probability.

The function returns the code of the newly occurred error, then the value of special variable last_error that stores the code of the last error will be zeroized. The subsequent GetLastError() call will return 5.

I have EA Which Give me 685 ERROR while Execute Order.
Like You said ECN Broker not Allow to put SL/TP while Order Execute.

I would be surprised to find out that this code can close any orders. You should try using SELECT_BY_POS instead of SELECT_BY_TICKET in this case.

Let's consider an example. Let Balance be , there are no open orders in the terminal. Let's open a Buy order of 6 lot in dealing center 8. The following rule is stated in dealing center 8:

Hereinafter, we will identify all occurring errors by this code. Several errors can occur during the execution of a program function GetLastError() allows us to get the code value for only one of them, the latest error, this is why every time when we need this information, it is recommended to use function GetLastError() immediately after the program lines, in which the error may occur.

For cross rates, the cost of 6 lot is calculated in the same way as that of the numerator currency, whereas the cost of 6 point is calculated in the same way as that for the denominator currency. For example, for EUR/CHF, the cost of 6 lot is (as for EUR/USD), whereas the cost of 6 lot is (as for USD/CHF).

Add a comment

Your e-mail will not be published. Required fields are marked *