Frequently asked questions
Q.
Terminal> EXPERTS has an error, please tell me the details of the error.
A.
I will show you the error list.
MQL4 execution errors include:
constant | value | explanation |
ERR_NO_ERROR | 0 | no error |
ERR_NO_RESULT | 1 | No errors, but unknown results |
ERR_COMMON_ERROR | 2 | common error |
ERR_INVALID_TRADE_PARAMETERS | 3 | invalid trade variable |
ERR_SERVER_BUSY | 4 | trade server busy |
ERR_OLD_VERSION | 5 | Client terminal is old version |
ERR_NO_CONNECTION | 6 | Unable to connect to trade server |
ERR_NOT_ENOUGH_RIGHTS | 7 | no authority |
ERR_TOO_FREQUENT_REQUESTS | 8 | too many requests |
ERR_MALFUNCTIONAL_TRADE | 9 | A trade was made with an incompatible function |
ERR_ACCOUNT_DISABLED | 64 | Disable account |
ERR_INVALID_ACCOUNT | 65 | invalid account |
ERR_TRADE_TIMEOUT | 128 | trade time out |
ERR_INVALID_PRICE | 129 | invalid price value |
ERR_INVALID_STOPS | 130 | invalid stop value |
ERR_INVALID_TRADE_VOLUME | 131 | Invalid Lot Count |
ERR_MARKET_CLOSED | 132 | the market is closed |
ERR_TRADE_DISABLED | 133 | Trade void |
ERR_NOT_ENOUGH_MONEY | 134 | lack of funds |
ERR_PRICE_CHANGED | 135 | price value change |
ERR_OFF_QUOTES | 136 | far from market price |
ERR_BROKER_BUSY | 137 | intermediary busy |
ERR_REQOTE | 138 | Re-estimate |
ERR_ORDER_LOCKED | 139 | Order locked |
ERR_LONG_POSITIONS_ONLY_ALLOWED | 140 | Valid for buy positions only |
ERR_TOO_MANY_REQUESTS | 141 | too many requests |
ERR_TRADE_MODIFY_DENIED | 145 | Cannot be changed because the market is closed |
ERR_TRADE_CONTEXT_BUSY | 146 | Trade status is busy |
ERR_TRADE_EXPIRATION_DENIED | 147 | Broker's contract is terminated |
ERR_TRADE_TOO_MANY_ORDERS | 148 | The number of orders exceeds the broker's limit |
MQL4 execution errors include:
constant | value | explanation |
ERR_NO_MQLERROR | 4000 | no error |
ERR_WRONG_FUNCTION_POINTER | 4001 | bad function pointer |
ERR_ARRAY_INDEX_OUT_OF_RANGE | 4002 | Index beyond size of array |
ERR_NO_MEMORY_FOR_CALL_STACK | 4003 | no stack memory for function calls |
ERR_RECURSIVE_STACK_OVERFLOW | 4004 | recursive stack overflow |
ERR_NOT_ENOUGH_STACK_FOR_PARAM | 4005 | Not enough stack memory for variables |
ERR_NO_MEMORY_FOR_PARAM_STRING | 4006 | no memory for string variable |
ERR_NO_MEMORY_FOR_TEMP_STRING | 4007 | no memory for temporary string |
ERR_NOT_INITIALIZED_STRING | 4008 | uninitialized string |
ERR_NOT_INITIALIZED_ARRAYSTRING | 4009 | uninitialized string in array |
ERR_NO_MEMORY_FOR_ARRAYSTRING | 4010 | no memory for string array |
ERR_TOO_LONG_STRING | 4011 | string too long |
ERR_REMAINDER_FROM_ZERO_DIVIDE | 4012 | remainder when divided by 0 |
ERR_ZERO_DIVIDE | 4013 | Division by 0 |
ERR_UNKNOWN_COMMAND | 4014 | unknown command |
ERR_WRONG_JUMP | 4015 | Illegal change (no error generated) |
ERR_NOT_INITIALIZED_ARRAY | 4016 | array not initialized |
ERR_DLL_CALLS_NOT_ALLOWED | 4017 | DLL call not allowed |
ERR_CANNOT_LOAD_LIBRARY | 4018 | library cannot be loaded |
ERR_CANNOT_CALL_FUNCTION | 4019 | function cannot be called |
ERR_EXTERNAL_CALLS_NOT_ALLOWED | 4020 | Call to expert function not allowed |
ERR_NO_MEMORY_FOR_RETURNED_STR | 4021 | Insufficient memory for temporary strings returned from functions |
ERR_SYSTEM_BUSY | 4022 | System busy (no error generated) |
ERR_INVALID_FUNCTION_PARAMSCNT | 4050 | An argument to a function was considered invalid |
ERR_INVALID_FUNCTION_PARAMVALUE | 4051 | Invalid argument value to function |
ERR_STRING_FUNCTION_INTERNAL | 4052 | Internal error in string function |
ERR_SOME_ARRAY_ERROR | 4053 | I have an array with an error |
ERR_INCORRECT_SERIESARRAY_USING | 4054 | An incorrect phylogenetic sequence is used |
ERR_CUSTOM_INDICATOR_ERROR | 4055 | custom indicator error |
ERR_INCOMPATIBLE_ARRAYS | 4056 | Arrays are not reciprocal |
ERR_GLOBAL_VARIABLES_PROCESSING | 4057 | Global variable processing error |
ERR_GLOBAL_VARIABLE_NOT_FOUND | 4058 | global variable not found |
ERR_FUNC_NOT_ALLOWED_IN_TESTING | 4059 | Using a function that cannot be used in test mode |
ERR_FUNCTION_NOT_CONFIRMED | 4060 | can't find the function |
ERR_SEND_MAIL_ERROR | 4061 | Email sending error |
ERR_STRING_PARAMETER_EXPECTED | 4062 | you are asking for a string variable |
ERR_INTEGER_PARAMETER_EXPECTED | 4063 | you are asking for an integer variable |
ERR_DOUBLE_PARAMETER_EXPECTED | 4064 | requires a float variable |
ERR_ARRAY_AS_PARAMETER_EXPECTED | 4065 | You are requesting an array type variable |
ERR_HISTORY_WILL_UPDATED | 4066 | Requested past data from update status |
ERR_TRADE_ERROR | 4067 | An error occurred in the trade function |
ERR_END_OF_FILE | 4099 | end of file |
ERR_SOME_FILE_ERROR | 4100 | there is a file error |
ERR_WRONG_FILE_NAME | 4101 | bad file name |
ERR_TOO_MANY_OPENED_FILES | 4102 | too many files open |
ERR_CANNOT_OPEN_FILE | 4103 | can't open file |
ERR_INCOMPATIBLE_FILEACCESS | 4104 | File access is incompatible |
ERR_NO_ORDER_SELECTED | 4105 | No orders selected |
ERR_UNKNOWN_SYMBOL | 4106 | unknown currency |
ERR_INVALID_PRICE_PARAM | 4107 | Incorrect price value |
ERR_INVALID_TICKET | 4108 | fraudulent ticket |
ERR_TRADE_NOT_ALLOWED | 4109 | Trade not allowed. Enabled by checking "Allow live trading" in expert properties |
ERR_LONGS_NOT_ALLOWED | 4110 | Buy orders are not allowed. Check expert properties |
ERR_SHORTS_NOT_ALLOWED | 4111 | Sell orders are not allowed. Check expert properties |
ERR_OBJECT_ALREADY_EXISTS | 4200 | object already exists |
ERR_UNKNOWN_OBJECT_PROPERTY | 4201 | unknown object property |
ERR_OBJECT_DOES_NOT_EXIST | 4202 | object does not exist |
ERR_UNKNOWN_OBJECT_TYPE | 4203 | unknown object type |
ERR_NO_OBJECT_NAME | 4204 | no object name |
ERR_OBJECT_COORDINATES_ERROR | 4205 | Object coordinate error |
ERR_NO_SPECIFIED_SUBWINDOW | 4206 | there is no specified window |
ERR_SOME_OBJECT_ERROR | 4207 | An error occurred in an object function |
Search in FAQ
Frequently search keywords
related question
If there is no applicable question,