MT 4 - Error codes
_________________________________________________________
ERR_NO_ERROR

ERR_NO_RESULT

ERR_COMMON_ERROR

ERR_INVALID_TRADE_PARAMETERS

ERR_SERVER_BUSY

ERR_OLD_VERSION

ERR_NO_CONNECTION

ERR_NOT_ENOUGH_RIGHTS

ERR_TOO_FREQUENT_REQUESTS

ERR_MALFUNCTIONAL_TRADE

ERR_ACCOUNT_DISABLED

ERR_INVALID_ACCOUNT

ERR_TRADE_TIMEOUT

ERR_INVALID_PRICE

ERR_INVALID_STOPS

ERR_INVALID_TRADE_VOLUME

ERR_MARKET_CLOSED

ERR_TRADE_DISABLED

ERR_NOT_ENOUGH_MONEY

ERR_PRICE_CHANGED

ERR_OFF_QUOTES

ERR_BROKER_BUSY

ERR_REQUOTE

ERR_ORDER_LOCKED

ERR_LONG_POSITIONS_ONLY_ALLOWED

ERR_TOO_MANY_REQUESTS

ERR_TRADE_MODIFY_DENIED

ERR_TRADE_CONTEXT_BUSY

ERR_TRADE_EXPIRATION_DENIED

ERR_TRADE_TOO_MANY_ORDERS

ERR_TRADE_HEDGE_PROHIBITED
0

1

2

3

4

5

6

7

8

9

64

65

128

129

130

131

132

133

134

135

136

137

138

139

140

141

145

146

147

148

149
No error returned.

No error returned, but the result is unknown.

Common error.

Invalid trade parameters.

Trade server is busy.

Old version of the client terminal.

No connection with trade server.

Not enough rights.

Too frequent requests.

Malfunctional trade operation.

Account disabled.

Invalid account.

Trade timeout.

Invalid price.

Invalid stops.

Invalid trade volume.

Market is closed.

Trade is disabled.

Not enough money.

Price changed.

Off quotes.

Broker is busy.

Requote.

Order is locked.

Long positions only allowed.

Too many requests.

Modification denied because order too close to market.

Trade context is busy.

Expirations are denied by broker.

The amount of open and pending orders has reached the limit set by the broker.
An attempt to open a position opposite to the existing one when hedging is disabled.
Error codes returned from trade server


Value      Constant                                        Description
MQL4 run time error codes

Value      Constant                                        Description
ERR_NO_MQLERROR

ERR_WRONG_FUNCTION_POINTER

ERR_ARRAY_INDEX_OUT_OF_RANGE

ERR_NO_MEMORY_FOR_CALL_STACK

ERR_RECURSIVE_STACK_OVERFLOW

ERR_NOT_ENOUGH_STACK_FOR_PARAM

ERR_NO_MEMORY_FOR_PARAM_STRING

ERR_NO_MEMORY_FOR_TEMP_STRING

ERR_NOT_INITIALIZED_STRING

ERR_NOT_INITIALIZED_ARRAYSTRING

ERR_NO_MEMORY_FOR_ARRAYSTRING

ERR_TOO_LONG_STRING

ERR_REMAINDER_FROM_ZERO_DIVIDE

ERR_ZERO_DIVIDE

ERR_UNKNOWN_COMMAND

ERR_WRONG_JUMP

ERR_NOT_INITIALIZED_ARRAY

ERR_DLL_CALLS_NOT_ALLOWED

ERR_CANNOT_LOAD_LIBRARY

ERR_CANNOT_CALL_FUNCTION

ERR_EXTERNAL_CALLS_NOT_ALLOWED

ERR_NO_MEMORY_FOR_RETURNED_STR

ERR_SYSTEM_BUSY

ERR_INVALID_FUNCTION_PARAMSCNT

ERR_INVALID_FUNCTION_PARAMVALUE

ERR_STRING_FUNCTION_INTERNAL

ERR_SOME_ARRAY_ERROR

ERR_INCORRECT_SERIESARRAY_USING

ERR_CUSTOM_INDICATOR_ERROR

ERR_INCOMPATIBLE_ARRAYS

ERR_GLOBAL_VARIABLES_PROCESSING

ERR_GLOBAL_VARIABLE_NOT_FOUND

ERR_FUNC_NOT_ALLOWED_IN_TESTING

ERR_FUNCTION_NOT_CONFIRMED

ERR_SEND_MAIL_ERROR

ERR_STRING_PARAMETER_EXPECTED

ERR_INTEGER_PARAMETER_EXPECTED

ERR_DOUBLE_PARAMETER_EXPECTED

ERR_ARRAY_AS_PARAMETER_EXPECTED

ERR_HISTORY_WILL_UPDATED

ERR_TRADE_ERROR

ERR_END_OF_FILE

ERR_SOME_FILE_ERROR

ERR_WRONG_FILE_NAME

ERR_TOO_MANY_OPENED_FILES

ERR_CANNOT_OPEN_FILE

ERR_INCOMPATIBLE_FILEACCESS

ERR_NO_ORDER_SELECTED

ERR_UNKNOWN_SYMBOL

ERR_INVALID_PRICE_PARAM

ERR_INVALID_TICKET

ERR_TRADE_NOT_ALLOWED

ERR_LONGS_NOT_ALLOWED

ERR_SHORTS_NOT_ALLOWED

ERR_OBJECT_ALREADY_EXISTS

ERR_UNKNOWN_OBJECT_PROPERTY

ERR_OBJECT_DOES_NOT_EXIST

ERR_UNKNOWN_OBJECT_TYPE

ERR_NO_OBJECT_NAME

ERR_OBJECT_COORDINATES_ERROR

ERR_NO_SPECIFIED_SUBWINDOW

ERR_SOME_OBJECT_ERROR
4000

4001

4002

4003

4004

4005

4006

4007

4008

4009

4010

4011

4012

4013

4014

4015

4016

4017

4018

4019

4020

4021

4022

4050

4051

4052

4053

4054

4055

4056

4057

4058

4059

4060

4061

4062

4063

4064

4065

4066

4067

4099

4100

4101

4102

4103

4104

4105

4106

4107

4108

4109

4110

4111

4200

4201

4202

4203

4204

4205

4206

4207
No error.

Wrong function pointer.

Array index is out of range.

No memory for function call stack.

Recursive stack overflow.

Not enough stack for parameter.

No memory for parameter string.

No memory for temp string.

Not initialized string.

Not initialized string in array.

No memory for array string.

Too long string.

Remainder from zero divide.

Zero divide.

Unknown command.

Wrong jump (never generated error).

Not initialized array.

DLL calls are not allowed.

Cannot load library.

Cannot call function.

Expert function calls are not allowed.

Not enough memory for temp string returned from function.

System is busy (never generated error).

Invalid function parameters count.

Invalid function parameter value.

String function internal error.

Some array error.

Incorrect series array using.

Custom indicator error.

Arrays are incompatible.

Global variables processing error.

Global variable not found.

Function is not allowed in testing mode.

Function is not confirmed.

Send mail error.

String parameter expected.

Integer parameter expected.

Double parameter expected.

Array as parameter expected.

Requested history data in updating state.

Some error in trading function.

End of file.

Some file error.

Wrong file name.

Too many opened files.

Cannot open file.

Incompatible access to a file.

No order selected.

Unknown symbol.

Invalid price.

Invalid ticket.

Trade is not allowed. Enable checkbox "Allow live trading" in the expert properties.
Longs are not allowed. Check the expert properties.

Shorts are not allowed. Check the expert properties.

Object exists already.

Unknown object property.

Object does not exist.

Unknown object type.

No object name.

Object coordinates error.

No specified subwindow.

Some error in object function.

Subscribe to updates via email:

Enter your email address:



Subscribe  to  fx1618 via RSS
Subscribe to fx1618 by Email
What is RSS???
_________________________________________________________________________________________________________________________________________
Home