MT4 Error Codes by M Brooky • December 28, 2010 Sometimes in the MT4 journal you will see an odd error code come up and wonder what it may meaBrooky Indicators, General n. If you did not know, the MT4 error codes are held in the stdlib.mq4 file in your experts/libraries folder. You will however not see the description if your indicator or Expert Advisor has not been coded to do do so. Below is the list of errors that you can reference if you need to. Metatrader MT4 Error Codes Server Error List. Messages from your Brokers Server Error Number 1: = no error Error Number 2: = common error Error Number 3: = invalid trade parameters Error Number 4: = trade server is busy Error Number 5: = old version of the client terminal Error Number 6: = no connection with trade server Error Number 7: = not enough rights Error Number 8: = too frequent requests Error Number 9: = malfunctional trade operation (never returned error) Error Number 64: = account disabled Error Number 65: = invalid account Error Number 128: = trade timeout Error Number 129: = invalid price Error Number 130: = invalid stops Error Number 131: = invalid trade volume Error Number 132: = market is closed Error Number 133: = trade is disabled Error Number 134: = not enough money Error Number 135: = price changed Error Number 136: = off quotes Error Number 137: = broker is busy (never returned error) Error Number 138: = requote Error Number 139: = order is locked Error Number 140: = long positions only allowed Error Number 141: = too many requests Error Number 145: = modification denied because order too close to market Error Number 146: = trade context is busy Error Number 147: = expirations are denied by broker Error Number 148: = amount of open and pending orders has reached the limit Error Number 149: = hedging is prohibited Error Number 150: = prohibited by FIFO rules Client Error List: Your Platform Error Number 4000: = no error (never generated code) Error Number 4001: = wrong function pointer Error Number 4002: = array index is out of range Error Number 4003: = no memory for function call stack Error Number 4004: = recursive stack overflow Error Number 4005: = not enough stack for parameter Error Number 4006: = no memory for parameter string Error Number 4007: = no memory for temp string Error Number 4008: = not initialized string Error Number 4009: = not initialized string in array Error Number 4010: = no memory for array\’ string Error Number 4011: = too long string Error Number 4012: = remainder from zero divide Error Number 4013: = zero divide Error Number 4014: = unknown command Error Number 4015: = wrong jump (never generated error) Error Number 4016: = not initialized array Error Number 4017: = dll calls are not allowed Error Number 4018: = cannot load library Error Number 4019: = cannot call function Error Number 4020: = expert function calls are not allowed Error Number 4021: = not enough memory for temp string returned from function Error Number 4022: = system is busy (never generated error) Error Number 4050: = invalid function parameters count Error Number 4051: = invalid function parameter value Error Number 4052: = string function internal error Error Number 4053: = some array error Error Number 4054: = incorrect series array using Error Number 4055: = custom indicator error Error Number 4056: = arrays are incompatible Error Number 4057: = global variables processing error Error Number 4058: = global variable not found Error Number 4059: = function is not allowed in testing mode Error Number 4060: = function is not confirmed Error Number 4061: = send mail error Error Number 4062: = string parameter expected Error Number 4063: = integer parameter expected Error Number 4064: = double parameter expected Error Number 4065: = array as parameter expected Error Number 4066: = requested history data in update state Error Number 4099: = end of file Error Number 4100: = some file error Error Number 4101: = wrong file name Error Number 4102: = too many opened files Error Number 4103: = cannot open file Error Number 4104: = incompatible access to a file Error Number 4105: = no order selected Error Number 4106: = unknown symbol Error Number 4107: = invalid price parameter for trade function Error Number 4108: = invalid ticket Error Number 4109: = trade is not allowed in the expert properties Error Number 4110: = longs are not allowed in the expert properties Error Number 4111: = shorts are not allowed in the expert properties Error Number 4200: = object is already exist Error Number 4201: = unknown object property Error Number 4202: = object is not exist Error Number 4203: = unknown object type Error Number 4204: = no object name Error Number 4205: = object coordinates error Error Number 4206: = no specified subwindow Tags: code error More Forex Information AT http://www.brooky-indicators.com/mt4-error-codes/