Mql4 Error Code 131
Contents |
Error Codes Styles of Indicator Lines Types and Properties of Graphical Objects Sound Files MessageBox() Return Codes MarketInfo() Identifiers List of Programs Upgrade mql4 error 4109 to MetaTrader 5 Book in One File Download it - 2 mql4 error 130 Mb Error Codes GetLastError() - the function that returns codes of error. Code constants of errors
Mql4 Ordersend Error 130
are determined in stderror.mqh file. To draw the text messages use the ErrorDescription() function described in the stdlib.mqh file. Error codes returned from a trade server or
Mql4 Error 4051
client terminal: Constant Value Description ERR_NO_ERROR 0 No error returned. ERR_NO_RESULT 1 No error returned, but the result is unknown. ERR_COMMON_ERROR 2 Common error. ERR_INVALID_TRADE_PARAMETERS 3 Invalid trade parameters. ERR_SERVER_BUSY 4 Trade server is busy. ERR_OLD_VERSION 5 Old version of the client terminal. ERR_NO_CONNECTION 6 No connection with trade server. ERR_NOT_ENOUGH_RIGHTS 7 Not enough rights. mql4 error code 5004 ERR_TOO_FREQUENT_REQUESTS 8 Too frequent requests. ERR_MALFUNCTIONAL_TRADE 9 Malfunctional trade operation. ERR_ACCOUNT_DISABLED 64 Account disabled. ERR_INVALID_ACCOUNT 65 Invalid account. ERR_TRADE_TIMEOUT 128 Trade timeout. ERR_INVALID_PRICE 129 Invalid price. ERR_INVALID_STOPS 130 Invalid stops. ERR_INVALID_TRADE_VOLUME 131 Invalid trade volume. ERR_MARKET_CLOSED 132 Market is closed. ERR_TRADE_DISABLED 133 Trade is disabled. ERR_NOT_ENOUGH_MONEY 134 Not enough money. ERR_PRICE_CHANGED 135 Price changed. ERR_OFF_QUOTES 136 Off quotes. ERR_BROKER_BUSY 137 Broker is busy. ERR_REQUOTE 138 Requote. ERR_ORDER_LOCKED 139 Order is locked. ERR_LONG_POSITIONS_ONLY_ALLOWED 140 Long positions only allowed. ERR_TOO_MANY_REQUESTS 141 Too many requests. ERR_TRADE_MODIFY_DENIED 145 Modification denied because an order is too close to market. ERR_TRADE_CONTEXT_BUSY 146 Trade context is busy. ERR_TRADE_EXPIRATION_DENIED 147 Expirations are denied by broker. ERR_TRADE_TOO_MANY_ORDERS 148 The amount of opened and pending orders has reached the limit set by a broker. MQL4 run time error codes: Constant Value Description ERR_NO_MQLERROR 4000 No error. ERR_WRONG_FUNCTION_POINTER 4001 Wrong function pointer. ERR_ARRAY_INDEX_OUT_OF_RANGE 4002 Array index is out of range. ERR_NO_MEMORY_FOR_FUNCTION_CALL_STACK 4003 No memory for function call stack. ERR_RECURSIVE_STACK_OVERFLOW 4004 Recursive
Trade Server Return CodesCompiler WarningsCompilation Errors Runtime Errors Runtime Errors The GetLastError() function return last error code, stored
Mql4 Error 4073
in _LastError predefined variable. This value can be reset mql4 error 4108 using the ResetLastError() function. Error code constants defined at stderror.mqh file. To print text messages mql4 error 5002 use ErrorDescription() function defined at stdlib.mqh file. For convenience, trade errors are additionally listed in the Trade Server Return Codes section. Runtime errors https://book.mql4.com/appendix/errors of mql4-program: Code ID Description 0 ERR_NO_ERROR No error returned 1 ERR_NO_RESULT No error returned, but the result is unknown 2 ERR_COMMON_ERROR Common error 3 ERR_INVALID_TRADE_PARAMETERS Invalid trade parameters 4 ERR_SERVER_BUSY Trade server is busy 5 ERR_OLD_VERSION Old version of the client terminal 6 ERR_NO_CONNECTION No connection with https://docs.mql4.com/constants/errorswarnings/errorcodes trade server 7 ERR_NOT_ENOUGH_RIGHTS Not enough rights 8 ERR_TOO_FREQUENT_REQUESTS Too frequent requests 9 ERR_MALFUNCTIONAL_TRADE Malfunctional trade operation 64 ERR_ACCOUNT_DISABLED Account disabled 65 ERR_INVALID_ACCOUNT Invalid account 128 ERR_TRADE_TIMEOUT Trade timeout 129 ERR_INVALID_PRICE Invalid price 130 ERR_INVALID_STOPS Invalid stops 131 ERR_INVALID_TRADE_VOLUME Invalid trade volume 132 ERR_MARKET_CLOSED Market is closed 133 ERR_TRADE_DISABLED Trade is disabled 134 ERR_NOT_ENOUGH_MONEY Not enough money 135 ERR_PRICE_CHANGED Price changed 136 ERR_OFF_QUOTES Off quotes 137 ERR_BROKER_BUSY Broker is busy 138 ERR_REQUOTE Requote 139 ERR_ORDER_LOCKED Order is locked 140 ERR_LONG_POSITIONS_ONLY_ALLOWED Buy orders only allowed 141 ERR_TOO_MANY_REQUESTS Too many requests 145 ERR_TRADE_MODIFY_DENIED Modification denied because order is too close to market 146 ERR_TRADE_CONTEXT_BUSY Trade context is busy 147 ERR_TRADE_EXPIRATION_DENIED Expirations are denied by broker 148 ERR_TRADE_TOO_MANY_ORDERS The amount of open and pending orders has reached the limit set by the broker 149 ERR_TRADE_HEDGE_PROHIBITED An attempt to open an order opposite to the exi
Trade Server Return CodesCompiler Warnings Compilation ErrorsRuntime Errors Compilation Errors MetaEdtior 5 shows error messages about the program errors detected by the built-in compiler during compilation. The list of these errors is given below https://docs.mql4.com/constants/errorswarnings/errorscompile in table. To compile a source code into an executable one, press F7. Programs that contain errors cannot be compiled until the errors identified by the compiler are eliminated. Code Description 100 File reading error 101 Error of opening an *. EX4 for writing 103 Not enough free memory to complete compilation 104 Empty syntactic unit unrecognized by compiler 105 Incorrect file name in mql4 error #include 106 Error accessing a file in #include (probably the file does not exist) 108 Inappropriate name for #define 109 Unknown command of preprocessor (valid #include, #define, #property, #import) 110 Symbol unknown to compiler 111 Function not implemented (description is present, but no body) 112 Double quote (") omitted 113 Opening angle bracket (<) or double quote (") omitted 114 Single quote (') omitted mql4 error code 115 Closing angle bracket ">" omitted 116 Type not specified in declaration 117 No return operator or return is found not in all branches of the implementation 118 Opening bracket of call parameters was expected 119 Error writing EX4 120 Invalid access to an array 121 The function is not of void type and the return operator must return a value 122 Incorrect declaration of the destructor 123 Colon ":" is missing 124 Variable is already declared 125 Variable with such identifier already declared 126 Variable name is too long (> 250 characters) 127 Structure with such identifier already defined 128 Structure is not defined 129 Structure member with the same name already defined 130 No such structure member 131 Breached pairing of brackets 132 Opening parenthesis "(" expected 133 Unbalanced braces (no "}") 134 Difficult to compile (too much branching, internal stack levels are overfilled) 135 Error of file opening for reading 136 Not enough memory to download the source file into memory 137 Variable is expected 138 Reference cannot be initialized 140 Assignment expected (appears at declaration) 141 Opening brace "{" expected 142 Parameter can be a dynamic arr