MetaTrader 5 error codes (296)

Every MetaTrader 5 error code in our register with the venue's own text. Codes with a link have a plain-English page with causes and fixes.

Check an order against MetaTrader 5 rules (free)

CodeNameOfficial textMarket
0ERR_SUCCESSThe operation completed successfullyall
4001ERR_INTERNAL_ERRORUnexpected internal errorall
4002ERR_WRONG_INTERNAL_PARAMETERWrong parameter in the inner call of the client terminal functionall
4003ERR_INVALID_PARAMETERWrong parameter when calling the system functionall
4004ERR_NOT_ENOUGH_MEMORYNot enough memory to perform the system functionall
4005ERR_STRUCT_WITHOBJECTS_ORCLASSThe structure contains objects of strings and/or dynamic arrays and/or structure of such objects and/or classesall
4006ERR_INVALID_ARRAYArray of a wrong type, wrong size, or a damaged object of a dynamic arrayall
4007ERR_ARRAY_RESIZE_ERRORNot enough memory for the relocation of an array, or an attempt to change the size of a static arrayall
4008ERR_STRING_RESIZE_ERRORNot enough memory for the relocation of stringall
4009ERR_NOTINITIALIZED_STRINGNot initialized stringall
4010ERR_INVALID_DATETIMEInvalid date and/or timeall
4011ERR_ARRAY_BAD_SIZETotal amount of elements in the array cannot exceed 2147483647all
4012ERR_INVALID_POINTERWrong pointerall
4013ERR_INVALID_POINTER_TYPEWrong type of pointerall
4014ERR_FUNCTION_NOT_ALLOWEDFunction is not allowed for callall
4015ERR_RESOURCE_NAME_DUPLICATEDThe names of the dynamic and the static resource matchall
4016ERR_RESOURCE_NOT_FOUNDResource with this name has not been found in EX5all
4017ERR_RESOURCE_UNSUPPORTED_TYPEUnsupported resource type or its size exceeds 16 Mball
4018ERR_RESOURCE_NAME_IS_TOO_LONGThe resource name exceeds 63 charactersall
4019ERR_MATH_OVERFLOWOverflow occurred when calculating math functionall
4020ERR_SLEEP_ERROROut of test end date after calling Sleep()all
4022ERR_PROGRAM_STOPPEDTest forcibly stopped from the outside. For example, optimization interrupted, visual testing window closed or testing agent stoppedall
4023ERR_INVALID_TYPEInvalid typeall
4024ERR_INVALID_HANDLEInvalid handleall
4025ERR_TOO_MANY_OBJECTSObject pool filled outall
4101ERR_CHART_WRONG_IDWrong chart IDall
4102ERR_CHART_NO_REPLYChart does not respondall
4103ERR_CHART_NOT_FOUNDChart not foundall
4104ERR_CHART_NO_EXPERTNo Expert Advisor in the chart that could handle the eventall
4105ERR_CHART_CANNOT_OPENChart opening errorall
4106ERR_CHART_CANNOT_CHANGEFailed to change chart symbol and periodall
4107ERR_CHART_WRONG_PARAMETERError value of the parameter for the function of working with chartsall
4108ERR_CHART_CANNOT_CREATE_TIMERFailed to create timerall
4109ERR_CHART_WRONG_PROPERTYWrong chart property IDall
4110ERR_CHART_SCREENSHOT_FAILEDError creating screenshotsall
4111ERR_CHART_NAVIGATE_FAILEDError navigating through chartall
4112ERR_CHART_TEMPLATE_FAILEDError applying templateall
4113ERR_CHART_WINDOW_NOT_FOUNDSubwindow containing the indicator was not foundall
4114ERR_CHART_INDICATOR_CANNOT_ADDError adding an indicator to chartall
4115ERR_CHART_INDICATOR_CANNOT_DELError deleting an indicator from the chartall
4116ERR_CHART_INDICATOR_NOT_FOUNDIndicator not found on the specified chartall
4201ERR_OBJECT_ERRORError working with a graphical objectall
4202ERR_OBJECT_NOT_FOUNDGraphical object was not foundall
4203ERR_OBJECT_WRONG_PROPERTYWrong ID of a graphical object propertyall
4204ERR_OBJECT_GETDATE_FAILEDUnable to get date corresponding to the valueall
4205ERR_OBJECT_GETVALUE_FAILEDUnable to get value corresponding to the dateall
4301ERR_MARKET_UNKNOWN_SYMBOLUnknown symbolall
4302ERR_MARKET_NOT_SELECTEDSymbol is not selected in MarketWatchall
4303ERR_MARKET_WRONG_PROPERTYWrong identifier of a symbol propertyall
4304ERR_MARKET_LASTTIME_UNKNOWNTime of the last tick is not known (no ticks)all
4305ERR_MARKET_SELECT_ERRORError adding or deleting a symbol in MarketWatchall
4306ERR_MARKET_SELECT_LIMITExceeded the limit of selected symbols in MarketWatchall
4307ERR_MARKET_SESSION_INDEXWrong session ID when calling the SymbolInfoSessionQuote/SymbolInfoSessionTrade functionall
4401ERR_HISTORY_NOT_FOUNDRequested history not foundall
4402ERR_HISTORY_WRONG_PROPERTYWrong ID of the history propertyall
4403ERR_HISTORY_TIMEOUTExceeded history request timeoutall
4404ERR_HISTORY_BARS_LIMITNumber of requested bars limited by terminal settingsall
4405ERR_HISTORY_LOAD_ERRORSMultiple errors when loading historyall
4407ERR_HISTORY_SMALL_BUFFERReceiving array is too small to store all requested dataall
4501ERR_GLOBALVARIABLE_NOT_FOUNDGlobal variable of the client terminal is not foundall
4502ERR_GLOBALVARIABLE_EXISTSGlobal variable of the client terminal with the same name already existsall
4503ERR_GLOBALVARIABLE_NOT_MODIFIEDGlobal variables were not modifiedall
4504ERR_GLOBALVARIABLE_CANNOTREADCannot read file with global variable valuesall
4505ERR_GLOBALVARIABLE_CANNOTWRITECannot write file with global variable valuesall
4510ERR_MAIL_SEND_FAILEDEmail sending failedall
4511ERR_PLAY_SOUND_FAILEDSound playing failedall
4512ERR_MQL5_WRONG_PROPERTYWrong identifier of the program propertyall
4513ERR_TERMINAL_WRONG_PROPERTYWrong identifier of the terminal propertyall
4514ERR_FTP_SEND_FAILEDFile sending via ftp failedall
4515ERR_NOTIFICATION_SEND_FAILEDFailed to send a notificationall
4516ERR_NOTIFICATION_WRONG_PARAMETERInvalid parameter for sending a notification – an empty string or NULL has been passed to the SendNotification() functionall
4517ERR_NOTIFICATION_WRONG_SETTINGSWrong settings of notifications in the terminal (ID is not specified or permission is not set)all
4518ERR_NOTIFICATION_TOO_FREQUENTToo frequent sending of notificationsall
4519ERR_FTP_NOSERVERFTP server is not specifiedall
4520ERR_FTP_NOLOGINFTP login is not specifiedall
4521ERR_FTP_FILE_ERRORFile not found in the MQL5\Files directory to send on FTP serverall
4522ERR_FTP_CONNECT_FAILEDFTP connection failedall
4523ERR_FTP_CHANGEDIRFTP path not found on serverall
4601ERR_BUFFERS_NO_MEMORYNot enough memory for the distribution of indicator buffersall
4602ERR_BUFFERS_WRONG_INDEXWrong indicator buffer indexall
4603ERR_CUSTOM_WRONG_PROPERTYWrong ID of the custom indicator propertyall
4701ERR_ACCOUNT_WRONG_PROPERTYWrong account property IDall
4751ERR_TRADE_WRONG_PROPERTYWrong trade property IDall
4752ERR_TRADE_DISABLEDTrading by Expert Advisors prohibitedall
4753ERR_TRADE_POSITION_NOT_FOUNDPosition not foundall
4754ERR_TRADE_ORDER_NOT_FOUNDOrder not foundall
4755ERR_TRADE_DEAL_NOT_FOUNDDeal not foundall
4756ERR_TRADE_SEND_FAILEDTrade request sending failedall
4758ERR_TRADE_CALC_FAILEDFailed to calculate profit or marginall
4801ERR_INDICATOR_UNKNOWN_SYMBOLUnknown symbolall
4802ERR_INDICATOR_CANNOT_CREATEIndicator cannot be createdall
4803ERR_INDICATOR_NO_MEMORYNot enough memory to add the indicatorall
4804ERR_INDICATOR_CANNOT_APPLYThe indicator cannot be applied to another indicatorall
4805ERR_INDICATOR_CANNOT_ADDError applying an indicator to chartall
4806ERR_INDICATOR_DATA_NOT_FOUNDRequested data not foundall
4807ERR_INDICATOR_WRONG_HANDLEWrong indicator handleall
4808ERR_INDICATOR_WRONG_PARAMETERSWrong number of parameters when creating an indicatorall
4809ERR_INDICATOR_PARAMETERS_MISSINGNo parameters when creating an indicatorall
4810ERR_INDICATOR_CUSTOM_NAMEThe first parameter in the array must be the name of the custom indicatorall
4811ERR_INDICATOR_PARAMETER_TYPEInvalid parameter type in the array when creating an indicatorall
4812ERR_INDICATOR_WRONG_INDEXWrong index of the requested indicator bufferall
4901ERR_BOOKS_CANNOT_ADDDepth Of Market can not be addedall
4902ERR_BOOKS_CANNOT_DELETEDepth Of Market can not be removedall
4903ERR_BOOKS_CANNOT_GETThe data from Depth Of Market can not be obtainedall
4904ERR_BOOKS_CANNOT_SUBSCRIBEError in subscribing to receive new data from Depth Of Marketall
5001ERR_TOO_MANY_FILESMore than 64 files cannot be opened at the same timeall
5002ERR_WRONG_FILENAMEInvalid file nameall
5003ERR_TOO_LONG_FILENAMEToo long file nameall
5004ERR_CANNOT_OPEN_FILEFile opening errorall
5005ERR_FILE_CACHEBUFFER_ERRORNot enough memory for cache to readall
5006ERR_CANNOT_DELETE_FILEFile deleting errorall
5007ERR_INVALID_FILEHANDLEA file with this handle was closed, or was not opening at allall
5008ERR_WRONG_FILEHANDLEWrong file handleall
5009ERR_FILE_NOTTOWRITEThe file must be opened for writingall
5010ERR_FILE_NOTTOREADThe file must be opened for readingall
5011ERR_FILE_NOTBINThe file must be opened as a binary oneall
5012ERR_FILE_NOTTXTThe file must be opened as a textall
5013ERR_FILE_NOTTXTORCSVThe file must be opened as a text or CSVall
5014ERR_FILE_NOTCSVThe file must be opened as CSVall
5015ERR_FILE_READERRORFile reading errorall
5016ERR_FILE_BINSTRINGSIZEString size must be specified, because the file is opened as binaryall
5017ERR_INCOMPATIBLE_FILEA text file must be for string arrays, for other arrays - binaryall
5018ERR_FILE_IS_DIRECTORYThis is not a file, this is a directoryall
5019ERR_FILE_NOT_EXISTFile does not existall
5020ERR_FILE_CANNOT_REWRITEFile can not be rewrittenall
5021ERR_WRONG_DIRECTORYNAMEWrong directory nameall
5022ERR_DIRECTORY_NOT_EXISTDirectory does not existall
5023ERR_FILE_ISNOT_DIRECTORYThis is a file, not a directoryall
5024ERR_CANNOT_DELETE_DIRECTORYThe directory cannot be removedall
5025ERR_CANNOT_CLEAN_DIRECTORYFailed to clear the directory (probably one or more files are blocked and removal operation failed)all
5026ERR_FILE_WRITEERRORFailed to write a resource to a fileall
5027ERR_FILE_ENDOFFILEUnable to read the next piece of data from a CSV file (FileReadString, FileReadNumber, FileReadDatetime, FileReadBool), since the end of file is reachedall
5030ERR_NO_STRING_DATENo date in the stringall
5031ERR_WRONG_STRING_DATEWrong date in the stringall
5032ERR_WRONG_STRING_TIMEWrong time in the stringall
5033ERR_STRING_TIME_ERRORError converting string to dateall
5034ERR_STRING_OUT_OF_MEMORYNot enough memory for the stringall
5035ERR_STRING_SMALL_LENThe string length is less than expectedall
5036ERR_STRING_TOO_BIGNUMBERToo large number, more than ULONG_MAXall
5037ERR_WRONG_FORMATSTRINGInvalid format stringall
5038ERR_TOO_MANY_FORMATTERSAmount of format specifiers more than the parametersall
5039ERR_TOO_MANY_PARAMETERSAmount of parameters more than the format specifiersall
5040ERR_WRONG_STRING_PARAMETERDamaged parameter of string typeall
5041ERR_STRINGPOS_OUTOFRANGEPosition outside the stringall
5042ERR_STRING_ZEROADDED0 added to the string end, a useless operationall
5043ERR_STRING_UNKNOWNTYPEUnknown data type when converting to a stringall
5044ERR_WRONG_STRING_OBJECTDamaged string objectall
5050ERR_INCOMPATIBLE_ARRAYSCopying incompatible arrays. String array can be copied only to a string array, and a numeric array - in numeric array onlyall
5051ERR_SMALL_ASSERIES_ARRAYThe receiving array is declared as AS_SERIES, and it is of insufficient sizeall
5052ERR_SMALL_ARRAYToo small array, the starting position is outside the arrayall
5053ERR_ZEROSIZE_ARRAYAn array of zero lengthall
5054ERR_NUMBER_ARRAYS_ONLYMust be a numeric arrayall
5055ERR_ONEDIM_ARRAYS_ONLYMust be a one-dimensional arrayall
5056ERR_SERIES_ARRAYTimeseries cannot be usedall
5057ERR_DOUBLE_ARRAY_ONLYMust be an array of type doubleall
5058ERR_FLOAT_ARRAY_ONLYMust be an array of type floatall
5059ERR_LONG_ARRAY_ONLYMust be an array of type longall
5060ERR_INT_ARRAY_ONLYMust be an array of type intall
5061ERR_SHORT_ARRAY_ONLYMust be an array of type shortall
5062ERR_CHAR_ARRAY_ONLYMust be an array of type charall
5063ERR_STRING_ARRAY_ONLYString array onlyall
5100ERR_OPENCL_NOT_SUPPORTEDOpenCL functions are not supported on this computerall
5101ERR_OPENCL_INTERNALInternal error occurred when running OpenCLall
5102ERR_OPENCL_INVALID_HANDLEInvalid OpenCL handleall
5103ERR_OPENCL_CONTEXT_CREATEError creating the OpenCL contextall
5104ERR_OPENCL_QUEUE_CREATEFailed to create a run queue in OpenCLall
5105ERR_OPENCL_PROGRAM_CREATEError occurred when compiling an OpenCL programall
5106ERR_OPENCL_TOO_LONG_KERNEL_NAMEToo long kernel name (OpenCL kernel)all
5107ERR_OPENCL_KERNEL_CREATEError creating an OpenCL kernelall
5108ERR_OPENCL_SET_KERNEL_PARAMETERError occurred when setting parameters for the OpenCL kernelall
5109ERR_OPENCL_EXECUTEOpenCL program runtime errorall
5110ERR_OPENCL_WRONG_BUFFER_SIZEInvalid size of the OpenCL bufferall
5111ERR_OPENCL_WRONG_BUFFER_OFFSETInvalid offset in the OpenCL bufferall
5112ERR_OPENCL_BUFFER_CREATEFailed to create an OpenCL bufferall
5113ERR_OPENCL_TOO_MANY_OBJECTSToo many OpenCL objectsall
5114ERR_OPENCL_SELECTDEVICEOpenCL device selection errorall
5120ERR_DATABASE_INTERNALInternal database errorall
5121ERR_DATABASE_INVALID_HANDLEInvalid database handleall
5122ERR_DATABASE_TOO_MANY_OBJECTSExceeded the maximum acceptable number of Database objectsall
5123ERR_DATABASE_CONNECTDatabase connection errorall
5124ERR_DATABASE_EXECUTERequest execution errorall
5125ERR_DATABASE_PREPARERequest generation errorall
5126ERR_DATABASE_NO_MORE_DATANo more data to readall
5127ERR_DATABASE_STEPFailed to move to the next request entryall
5128ERR_DATABASE_NOT_READYData for reading request results are not ready yetall
5129ERR_DATABASE_BIND_PARAMETERSFailed to auto substitute parameters to an SQL requestall
5200ERR_WEBREQUEST_INVALID_ADDRESSInvalid URLall
5201ERR_WEBREQUEST_CONNECT_FAILEDFailed to connect to specified URLall
5202ERR_WEBREQUEST_TIMEOUTTimeout exceededall
5203ERR_WEBREQUEST_REQUEST_FAILEDHTTP request failedall
5270ERR_NETSOCKET_INVALIDHANDLEInvalid socket handle passed to functionall
5271ERR_NETSOCKET_TOO_MANY_OPENEDToo many open sockets (max 128)all
5272ERR_NETSOCKET_CANNOT_CONNECTFailed to connect to remote hostall
5273ERR_NETSOCKET_IO_ERRORFailed to send/receive data from socketall
5274ERR_NETSOCKET_HANDSHAKE_FAILEDFailed to establish secure connection (TLS Handshake)all
5275ERR_NETSOCKET_NO_CERTIFICATENo data on certificate protecting the connectionall
5300ERR_NOT_CUSTOM_SYMBOLA custom symbol must be specifiedall
5301ERR_CUSTOM_SYMBOL_WRONG_NAMEThe name of the custom symbol is invalid. The symbol name can only contain Latin letters without punctuation, spaces or special characters (may only contain "."all
5302ERR_CUSTOM_SYMBOL_NAME_LONGThe name of the custom symbol is too long. The length of the symbol name must not exceed 32 characters including the ending 0 characterall
5303ERR_CUSTOM_SYMBOL_PATH_LONGThe path of the custom symbol is too long. The path length should not exceed 128 characters including "Custom\\", the symbol name, group separators and the endiall
5304ERR_CUSTOM_SYMBOL_EXISTA custom symbol with the same name already existsall
5305ERR_CUSTOM_SYMBOL_ERRORError occurred while creating, deleting or changing the custom symbolall
5306ERR_CUSTOM_SYMBOL_SELECTEDYou are trying to delete a custom symbol selected in Market Watchall
5307ERR_CUSTOM_SYMBOL_PROPERTY_WRONGAn invalid custom symbol propertyall
5308ERR_CUSTOM_SYMBOL_PARAMETER_ERRORA wrong parameter while setting the property of a custom symbolall
5309ERR_CUSTOM_SYMBOL_PARAMETER_LONGA too long string parameter while setting the property of a custom symbolall
5310ERR_CUSTOM_TICKS_WRONG_ORDERTicks in the array are not arranged in the order of timeall
5400ERR_CALENDAR_MORE_DATAArray size is insufficient for receiving descriptions of all valuesall
5401ERR_CALENDAR_TIMEOUTRequest time limit exceededall
5402ERR_CALENDAR_NO_DATACountry is not foundall
5601ERR_DATABASE_ERRORGeneric errorall
5602ERR_DATABASE_LOGICSQLite internal logic errorall
5603ERR_DATABASE_PERMAccess deniedall
5604ERR_DATABASE_ABORTCallback routine requested abortall
5605ERR_DATABASE_BUSYDatabase file lockedall
5606ERR_DATABASE_LOCKEDDatabase table lockedall
5607ERR_DATABASE_NOMEMInsufficient memory for completing operationall
5608ERR_DATABASE_READONLYAttempt to write to readonly databaseall
5609ERR_DATABASE_INTERRUPTOperation terminated by sqlite3_interrupt()all
5610ERR_DATABASE_IOERRDisk I/O errorall
5611ERR_DATABASE_CORRUPTDatabase disk image corruptedall
5612ERR_DATABASE_NOTFOUNDUnknown operation code in sqlite3_file_control()all
5613ERR_DATABASE_FULLInsertion failed because database is fullall
5614ERR_DATABASE_CANTOPENUnable to open the database fileall
5615ERR_DATABASE_PROTOCOLDatabase lock protocol errorall
5616ERR_DATABASE_EMPTYInternal use onlyall
5617ERR_DATABASE_SCHEMADatabase schema changedall
5618ERR_DATABASE_TOOBIGString or BLOB exceeds size limitall
5619ERR_DATABASE_CONSTRAINTAbort due to constraint violationall
5620ERR_DATABASE_MISMATCHData type mismatchall
5621ERR_DATABASE_MISUSELibrary used incorrectlyall
5622ERR_DATABASE_NOLFSUses OS features not supported on hostall
5623ERR_DATABASE_AUTHAuthorization deniedall
5624ERR_DATABASE_FORMATNot usedall
5625ERR_DATABASE_RANGEBind parameter error, incorrect indexall
5626ERR_DATABASE_NOTADBFile opened that is not database fileall
5700ERR_MATRIX_INTERNALInternal error of the matrix/vector executing subsystemall
5701ERR_MATRIX_NOT_INITIALIZEDMatrix/vector not initializedall
5702ERR_MATRIX_INCONSISTENTInconsistent size of matrices/vectors in operationall
5703ERR_MATRIX_INVALID_SIZEInvalid matrix/vector sizeall
5704ERR_MATRIX_INVALID_TYPEInvalid matrix/vector typeall
5705ERR_MATRIX_FUNC_NOT_ALLOWEDFunction not available for this matrix/vectorall
5706ERR_MATRIX_CONTAINS_NANMatrix/vector contains non-numbers (Nan/Inf)all
5707ERR_MATRIX_OPENBLASError during execution of an OpenBLAS functionall
5708ERR_MATRIX_OPENBLAS_PARAMETERInvalid parameter of an OpenBLAS functionall
5800ERR_ONNX_INTERNALONNX internal errorall
5801ERR_ONNX_NOT_INITIALIZEDONNX Runtime API initialization errorall
5802ERR_ONNX_NOT_SUPPORTEDProperty or value not supported by MQL5all
5803ERR_ONNX_RUN_FAILEDONNX runtime API run errorall
5804ERR_ONNX_INVALID_PARAMETERS_COUNTInvalid number of parameters passed to OnnxRunall
5805ERR_ONNX_INVALID_PARAMETERInvalid parameter valueall
5806ERR_ONNX_INVALID_PARAMETER_TYPEInvalid parameter typeall
5807ERR_ONNX_INVALID_PARAMETER_SIZEInvalid parameter sizeall
5808ERR_ONNX_WRONG_DIMENSIONTensor dimension not set or invalidall
10004TRADE_RETCODE_REQUOTERequoteall
10006TRADE_RETCODE_REJECTRequest rejectedall
10007TRADE_RETCODE_CANCELRequest canceled by traderall
10008TRADE_RETCODE_PLACEDOrder placedall
10009TRADE_RETCODE_DONERequest completedall
10010TRADE_RETCODE_DONE_PARTIALOnly part of the request was completedall
10011TRADE_RETCODE_ERRORRequest processing errorall
10012TRADE_RETCODE_TIMEOUTRequest canceled by timeoutall
10013TRADE_RETCODE_INVALIDInvalid requestall
10014TRADE_RETCODE_INVALID_VOLUMEInvalid volume in the requestall
10015TRADE_RETCODE_INVALID_PRICEInvalid price in the requestall
10016TRADE_RETCODE_INVALID_STOPSInvalid stops in the requestall
10017TRADE_RETCODE_TRADE_DISABLEDTrade is disabledall
10018TRADE_RETCODE_MARKET_CLOSEDMarket is closedall
10019TRADE_RETCODE_NO_MONEYThere is not enough money to complete the requestall
10020TRADE_RETCODE_PRICE_CHANGEDPrices changedall
10021TRADE_RETCODE_PRICE_OFFThere are no quotes to process the requestall
10022TRADE_RETCODE_INVALID_EXPIRATIONInvalid order expiration date in the requestall
10023TRADE_RETCODE_ORDER_CHANGEDOrder state changedall
10024TRADE_RETCODE_TOO_MANY_REQUESTSToo frequent requestsall
10025TRADE_RETCODE_NO_CHANGESNo changes in requestall
10026TRADE_RETCODE_SERVER_DISABLES_ATAutotrading disabled by serverall
10027TRADE_RETCODE_CLIENT_DISABLES_ATAutotrading disabled by client terminalall
10028TRADE_RETCODE_LOCKEDRequest locked for processingall
10029TRADE_RETCODE_FROZENOrder or position frozenall
10030TRADE_RETCODE_INVALID_FILLInvalid order filling typeall
10031TRADE_RETCODE_CONNECTIONNo connection with the trade serverall
10032TRADE_RETCODE_ONLY_REALOperation is allowed only for live accountsall
10033TRADE_RETCODE_LIMIT_ORDERSThe number of pending orders has reached the limitall
10034TRADE_RETCODE_LIMIT_VOLUMEThe volume of orders and positions for the symbol has reached the limitall
10035TRADE_RETCODE_INVALID_ORDERIncorrect or prohibited order typeall
10036TRADE_RETCODE_POSITION_CLOSEDPosition with the specified POSITION_IDENTIFIER has already been closedall
10038TRADE_RETCODE_INVALID_CLOSE_VOLUMEA close volume exceeds the current position volumeall
10039TRADE_RETCODE_CLOSE_ORDER_EXISTA close order already exists for a specified position. This may happen when working in the hedging system: when attempting to close a position with an opposite all
10040TRADE_RETCODE_LIMIT_POSITIONSThe number of open positions simultaneously present on an account can be limited by the server settings. After a limit is reached, the server returns the TRADE_all
10041TRADE_RETCODE_REJECT_CANCELThe pending order activation request is rejected, the order is canceledall
10042TRADE_RETCODE_LONG_ONLYThe request is rejected, because the " Only long positions are allowed " rule is set for the symbol ( POSITION_TYPE_BUY )all
10043TRADE_RETCODE_SHORT_ONLYThe request is rejected, because the " Only short positions are allowed " rule is set for the symbol ( POSITION_TYPE_SELL )all
10044TRADE_RETCODE_CLOSE_ONLYThe request is rejected, because the " Only position closing is allowed " rule is set for the symbolall
10045TRADE_RETCODE_FIFO_CLOSEThe request is rejected, because " Position closing is allowed only by FIFO rule " flag is set for the trading account ( ACCOUNT_FIFO_CLOSE =true)all
10046TRADE_RETCODE_HEDGE_PROHIBITEDThe request is rejected, because the " Opposite positions on a single symbol are disabled " rule is set for the trading account. For example, if the account hasall
65536ERR_USER_ERROR_FIRSTUser defined errors start with this codeall

This page explains an error message. It is information for developers, not financial advice and not a recommendation to trade. Codes and texts come from the venue's official documentation on the date shown; venues change them, so check the source before relying on it. Register built 2026-11-28.