Error 4058 Mt4
Contents |
Trade Server Return CodesCompiler WarningsCompilation Errors Runtime Errors Runtime Errors The GetLastError() function return last error code, stored in _LastError predefined variable. This value mql4 error codes can be reset using the ResetLastError() function. Error code constants defined
Mql4 Error Code 5004
at stderror.mqh file. To print text messages use ErrorDescription() function defined at stdlib.mqh file. For convenience,
Mql4 Error 4109
trade errors are additionally listed in the Trade Server Return Codes section. Runtime errors of mql4-program: Code ID Description 0 ERR_NO_ERROR No error returned 1 ERR_NO_RESULT No
Mql4 Error 4073
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 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 mql4 error 130 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 existing one when hedging is disabled 150 ERR_TRADE_PROHIBITED_BY_FIFO An attempt to close an order contravening the FIFO rule 4000 ERR_NO_MQLERROR No error returned 4001 ERR_WRONG_FUNCTION_POINTER Wrong function pointer 4002 ERR_ARRAY_INDEX_OUT_OF_RANGE Array index is out of range 4003 ERR_NO_MEMORY_FOR_CALL_STACK No m
a GitHub account Sign in Create a gist now Instantly share code, notes, and snippets. Star 0 Fork 0 currencysecrets/getErrorDetail.mq4 Created Apr 17, 2013 Embed What would you like mql4 error 129 to do? Embed Embed this gist in your website. Embed Share Copy sharable mql4 error 4051 URL for this gist. Share Clone via HTTPS Clone with Git or checkout with SVN using the repository's web mql4 error 4108 address. HTTPS Learn more about clone URLs Download ZIP Code Revisions 1 This function returns the error message returned by MetaTrader. Obtained from: http://www.forexfactory.com/showthread.php?p=4435889#post4435889 The way I use this function is within https://docs.mql4.com/constants/errorswarnings/errorcodes my alertMe function, where I wrap err_msg( GetLastError() ). Raw getErrorDetail.mq4 //+------------------------------------------------------------------+ string err_msg(int e) //+------------------------------------------------------------------+ // Returns error message text for a given MQL4 error number // Usage: string s=err_msg(146) returns s="Error 0146: Trade context is busy." { switch (e) { case 0: return("Error 0000: No error returned."); case 1: return("Error 0001: No error returned, but the result is unknown."); case 2: return("Error https://gist.github.com/currencysecrets/5408632 0002: Common error."); case 3: return("Error 0003: Invalid trade parameters."); case 4: return("Error 0004: Trade server is busy."); case 5: return("Error 0005: Old version of the client terminal."); case 6: return("Error 0006: No connection with trade server."); case 7: return("Error 0007: Not enough rights."); case 8: return("Error 0008: Too frequent requests."); case 9: return("Error 0009: Malfunctional trade operation."); case 64: return("Error 0064: Account disabled."); case 65: return("Error 0065: Invalid account."); case 128: return("Error 0128: Trade timeout."); case 129: return("Error 0129: Invalid price."); case 130: return("Error 0130: Invalid stops."); case 131: return("Error 0131: Invalid trade volume."); case 132: return("Error 0132: Market is closed."); case 133: return("Error 0133: Trade is disabled."); case 134: return("Error 0134: Not enough money."); case 135: return("Error 0135: Price changed."); case 136: return("Error 0136: Off quotes."); case 137: return("Error 0137: Broker is busy."); case 138: return("Error 0138: Requote."); case 139: return("Error 0139: Order is locked."); case 140: return("Error 0140: Long positions only allowed."); case 141: return("Error 0141: Too many requests."); case 145: return("Error 0145: Modification denied because order too close to market."); case 146: return("Error 0146: Trade context is busy."); case 147: return("Error 0147: Expirations are denied by broker
phpBB Group SHF design and coding by milanese based on prosilverSE by subBlue