Signal bar indicator. Which bar should you take a signal from? Drawing indicators.
Ind – InfoPad, Online Information Panel for MetaTrader
Description
Error codes
GetLastError() is a function that returns error codes. Error code constants are defined in the “stderror.mqh” file. To display text messages, use the ErrorDescription() function defined in the “stdlib. mqh” file.
Error codes returned by the trade server or client terminal:
In view of the frequent requests to me, as a specialist in the field of programming advisers on MT4, with questions about errors, I will try to tell you the most common mistakes of a trader and errors of advisers, how to eliminate them, and the reasons for their occurrence.
Each Expert Advisor has its functional mode, but we will proceed from a standard set of problems and common errors of Expert Advisors.
So, let’s begin.
A brief reference on errors is given in Error Codes, as well as in the MetaTrader4 terminal itself.
Based on them, we will try to describe the problem and how to solve it in the style of “Guidelines for Electronic Engineering Errors”.
If your error is not in this table, or the solutions did not help, contact the author of your adviser, but before that, use the article
Log files for detailed consideration of the problem with robots
Some articles may also help you:
Common errors and how to solve them
Error number | Brief description | Possible causes | Solution method |
Graph Mismatch Errors | Errors on the DC server: incoming ticks are not processed very accurately on all timeframes. | Errors on the DC server: incoming ticks are not processed very accurately on all timeframes. | Testing immediately after loading from the archive does not reveal errors because only minutes are loaded, which are converted into other TFs according to the correct algorithm. At this point, there are no mismatch errors. And then, when real quotes begin to arrive, mismatches accumulate again. |
TestGenerator: unmatched data error | Error in quotes archive data | 1. Incomplete quote data from your broker 2. Damaged quote base 3. You are trying to test the EA before today’s date. 4. asynchronous data of older TFs in the archive | An error occurs either when an error is not defined or when there is none. |
Error 0 or 1 | No error, error not known | 1. Previous reasons for the error in a persistent request. | Exclude handling of errors 0 and 1 in the Expert Advisor |
error 4, 146 | The broker prohibits the use of the order expiration date | The trade server is busy | 1. Restarting the terminal 2. Optimizing the EA code using error handling functions. |
error 8, 141 | Too frequent requests | 1. The EA submitted too many orders at the same time 2. Without waiting for a response from the server while performing the operation – the EA tries to send a new order, the Server is overloaded | |
1. Check the correct opening of the lot, study the specification of the contract, and read the terms of trade in your DC 2.3. Check the Minimum and Maximum lot in your DC and on your account. On some types of accounts, the minimum lot can be 0.01, 0.1, and even 3. The maximum lot can be 5 lots or 999 lots, and others. 4. Specify the number of bits on your Server. If, for example, the lot size = 1, then you can open a lot 0.1, 0.5, or 1.2, and so on, with 1 decimal place. If the lot have 2 digits, then based on the minimum lot, the lot can be 0.01, 0.06, 0.17, or 1.48. Also, in some DCs, there is an order of the degree of lots. For example, you can open 0.5 and 1 But 0.6 cannot be opened. Check wServerur broker about how to place lots. | Wrong price | 1. The price at which you are trying to open a position (BUY SELL) is incorrect | 1. Golden rule: BUY should be opened on Ask and closed on BID SELL should be opened on BID and closed on ASK |
error 130,145 | Wrong stop levels | er, 129 | 1. Check the correct opening of the lot, study the specification of the contract, and read the terms of trade in your DC 2.3. Check the Minimum and Maximum lot in your DC and on your account. On some types of accounts, the minimum lot can be 0.01 and also 0.1, and even 3. The maximum lot can be 5 lots or 999 lots, and others. 4. Specify the number of bits on your Server. If, for example, the lot size = 1, then you can open a lot 0.1, 0.5, or 1.2, and so on, with 1 decimal place. If the lo, 2 characters, then based on the minimum lot, the lot can be 0.01, 0.06, 0.17, or 1.48. Also, in some DCs, there is an order of the degree of lots, for example, you can open 0.5 and 1 and 1.5, and so on, but 0.6 cannot be opened. Check with your broker about how to place lots. |
error 131 | Wrong volume | 1. Wrong lot when opening a trade 2. The lot you are trying to open is less than the minimum 3. The lot you are trying to open is greater than the maximum 4. The size of the lot is different from that of the broker. | 1. Stop levels = Stoploss, TakeProfit or pending order, or limit order opening level. 2. stop levels are too close to the price. 3. Your account is opened in the ECN (UTC) or NDD (NDD) group. 4. Your broker uses Market Execution.5. Fast market, when Serverant news is released – the minimum stop level on the Server always rises 3 times. |
error 132 | The market is closed | 1. The market is closed on weekends | 1. Try to contact the market after the weekend |
error 133 | Trade prohibited | 1. Trading is prohibited at the moment 2. Trading is prohibited for this currency pair | 1. Try trading after the weekend |
error 134 | Not enough money to complete the transaction | 1. The lot you are trying to open is too large. There is not enough margin for it | 1. Check your free margin and calculate the funds you need to open a lot 2. Keep track of your free margin |
error 135..138 | The price has changed | 1. Requote 2. Too fast market 3. Broker or DC does not allow you to place a position at the declared price | 1. Do not trade at such moments 2. Increase the slippage level, but remember that this entails opening positions not at the price you stated. 3. Make an error handling function in the adviser and the number of attempts to open positions |
error 147 | The remainder of division by zero | 1. Your advisor or you are trying to set a pending order expiration date | 1. In the Expert Advisor, in the OrderSend function, set the expiration date = 0 2. Do not set the order expiration date. |
error 148 | The number of open and pending orders has reached the limit set by the broker. | 1. The maximum number of open orders and positions has reached the limit set by the broker. | Error 4018, 4019 |
error 4012, 4013 zero devide | Check the entire EA code for such a gross error, or check all values from the MarketInfo functions at the time of returning 0, sometimes when MarketInfo(Symbol(), MODE_SPREAD) returns not a spread, but 0 (for brokers with a floating spread) | You are trying to divide a number by 0. | DLL calls are not allowed |
error 4017 | Check the presence of the specified file in the folder experts – files Tester – filesCheck if the antivirus system blocks the file. Is the file write/read mode allowed | Calling a DLL is not allowed in your terminal | Allow the DLL call through Menu – Tools – Settings – Expert Advisor – Allow DLL call, but remember, allow this option only for advisers in which you are sure that there is no Trojan in the DLL. Check the DLL for Trojans with an antivirus. |
Unable to load the library | Check the DLLContact, the developer of this library | The library is corrupted library call fails | This file does not exist. This file is locked. |
Error 4020 | Calls to external library functions are not allowed | Calling functions from external experts is prohibited in your terminal | Allow calling functions through Menu – service – Settings – Expert Advisor – Allow calling external experts, |
Error 4103 | Unable to open file | The ticket of the order chosen by the expert does not exist. EA is trying to select a ticket, but this order was closed by another EA or hands.When trying to execute an order on an order, the ticket was executed and closed by the broker. | If this error appears very often, 100-1000 times per minute, check the functions of your adviserDisable other Expert Advisors, or set them up so that they do not conflict. Do not close the order with your hands when the Expert Advisor operates. |
Error 4106 | Unknown character | The symbol is not in the Market Watch | If this error appears very often, 100-1000 times per minute, check the functions of your adviserDisable other Expert Advisors, or set them up so that they do not conflict. Do not close the order with your hands when the Expert Advisor performs an operation. |
Error 4108 | Invalid ticket number | If this error appears very often, 100-1000 times per minute, check the functions of your adviserDisable other Expert Advisors, or set them up so that they do not conflict. Do not close the order with your hands when the Expert Advisor performs an operation | Turn on the “Allow the adviser to trade” checkbox in the input when installing the adviser or in the menu – service – settings – advisers. |
Error 4109 | Trading not allowed | In the General tab, when installing an adviser, there is a choice of positions: Long & Short – BUY SELL allowed; Only Long – Allowed BUY ; Only Short – Allowed SELL; | The adviser is forbidden to trade. There is a sad smiley or a cross on the chart |
Error 4110, 4111 | Long positions are not allowed Short positions are not allowed | In the EA settings, in the General tab, position type is not allowed | In the General tab, when installing an adviser, there is a choice of positions: Long & Short – BUY SELL allowed Only Long – Allowed BUY Only Short – Allowed SELL |
ERROR CODES
Error codes returned from the trade server.
The code | Identifier | Description |
10004 | TRADE_RETCODE_REQUOTE | Recvota |
10006 | TRADE_RETCODE_REJECT | Request denied |
10007 | TRADE_RETCODE_CANCEL | Request canceled by trader |
10008 | TRADE_RETCODE_PLACED | Order placed |
10009 | TRADE_RETCODE_DONE | Application completed |
10010 | TRADE_RETCODE_DONE_PARTIAL | Application partially completed |
10011 | TRADE_RETCODE_ERROR | Request processing error |
10012 | TRADE_RETCODE_TIMEOUT | Request canceled due to timeout |
10013 | TRADE_RETCODE_INVALID | Bad request |
10014 | TRADE_RETCODE_INVALID_VOLUME | Incorrect volume in the request |
10015 | TRADE_RETCODE_INVALID_PRICE | Wrong price in the request |
10016 | TRADE_RETCODE_INVALID_STOPS | Wrong stops in the request |
10017 | TRADE_RETCODE_TRADE_DISABLED | Trade prohibited |
10018 | TRADE_RETCODE_MARKET_CLOSED | The market is closed |
10019 | TRADE_RETCODE_NO_MONEY | There are not enough funds to fulfill the request |
10020 | TRADE_RETCODE_PRICE_CHANGED | Prices have changed |
10021 | TRADE_RETCODE_PRICE_OFF | No quotes to process request |
10022 | TRADE_RETCODE_INVALID_EXPIRATION | Invalid order expiration date in the request |
10023 | TRADE_RETCODE_ORDER_CHANGED | Order status has changed |
10024 | TRADE_RETCODE_TOO_MANY_REQUESTS | Too frequent requests |
10025 | TRADE_RETCODE_NO_CHANGES | There are no changes in the request |
10026 | TRADE_RETCODE_SERVER_DISABLES_AT | The client terminal prohibits auto trading |
10027 | TRADE_RETCODE_CLIENT_DISABLES_AT | There is already a closing order for the specified position. It may occur when working in a hedging system: when trying to close a position with an opposite one, if there are already orders to close this position trying to close or partially close, if the total volume of existing closing orders and the newly placed order exceeds the current position volume |
10028 | TRADE_RETCODE_LOCKED | Request blocked for processing |
10029 | TRADE_RETCODE_FROZEN | Order or position is frozen |
10030 | TRADE_RETCODE_INVALID_FILL | An unsupported order execution type by balance was specified |
10031 | TRADE_RETCODE_CONNECTION | The request to activate a pending order was rejected, and the order itself was canceled |
10032 | TRADE_RETCODE_ONLY_REAL | The operation is allowed only for real accounts |
10033 | TRADE_RETCODE_LIMIT_ORDERS | The limit on the number of pending orders has been reached |
10034 | TRADE_RETCODE_LIMIT_VOLUME | The limit on the volume of orders and positions for this symbol has been reached |
10035 | TRADE_RETCODE_INVALID_ORDER | Invalid or prohibited order type |
10036 | TRADE_RETCODE_POSITION_CLOSED | Position with specified POSITION_IDENTIFIER is already closed |
10038 | TRADE_RETCODE_INVALID_CLOSE_VOLUME | Closed volume exceeds current position volume |
10039 | TRADE_RETCODE_CLOSE_ORDER_EXIST | No connection to the trade Server |
10040 | TRADE_RETCODE_LIMIT_POSITIONS | The request was rejected because the symbol is set to the rule “You can only close existing positions.” |
10041 | TRADE_RETCODE_REJECT_CANCEL | The request was rejected because the symbol is set to the rule “You can only close existing positions.” |
10042 | TRADE_RETCODE_LONG_ONLY | The request was rejected because the rule “Only long positions allowed” is set on the symbol ( POSITION_TYPE_BUY ) |
10043 | TRADE_RETCODE_SHORT_ONLY | The request was rejected because the rule “Only short positions allowed” is set on the symbol ( POSITION_TYPE_SELL ) |
10044 | TRADE_RETCODE_CLOSE_ONLY | The request was rejected because the symbol is set to the rule “You can only close existing positions” |
Other Errors
ERR_SUCCESS | 0 | Operation completed successfully |
ERR_INTERNAL_ERROR | 4001 | Unexpected internal error |
ERR_WRONG_INTERNAL_PARAMETER | 4002 | The structure contains objects of strings and/or dynamic arrays and/or structures with such objects and/or classes |
ERR_INVALID_PARAMETER | 4003 | Wrong parameter when calling a system function |
ERR_NOT_ENOUGH_MEMORY | 4004 | Not enough memory to execute a system function |
ERR_STRUCT_WITHOBJECTS_ORCLASS | 4005 | Not enough memory to reallocate the string |
ERR_INVALID_ARRAY | 4006 | An array of the wrong type, the wrong size, or a broken dynamic array object |
ERR_ARRAY_RESIZE_ERROR | 4007 | The requested array size exceeds 2 gigabytes |
ERR_STRING_RESIZE_ERROR | 4008 | The requested history was not found |
ERR_NOTINITIALIZED_STRING | 4009 | uninitialized string |
ERR_INVALID_DATETIME | 4010 | Wrong date and/or time value |
ERR_ARRAY_BAD_SIZE | 4011 | Matching the names of dynamic and static resources |
ERR_INVALID_POINTER | 4012 | Wrong pointer |
ERR_INVALID_POINTER_TYPE | 4013 | Wrong pointer type |
ERR_FUNCTION_NOT_ALLOWED | 4014 | System function not allowed to be called |
ERR_RESOURCE_NAME_DUPLICATED | 4015 | Error while working with the graphic object |
ERR_RESOURCE_NOT_FOUND | 4016 | No resource found in EX5 with the same name |
ERR_RESOURCE_UNSUPPOTED_TYPE | 4017 | Unsupported resource type or size larger than 16 MB |
ERR_RESOURCE_NAME_IS_TOO_LONG | 4018 | Resource name exceeds 63 characters |
ERR_MATH_OVERFLOW | 4019 | An overflow occurred while evaluating a math function |
Unable to get data corresponding to the value | ||
ERR_CHART_WRONG_ID | 4101 | Wrong chart ID |
ERR_CHART_NO_REPLY | 4102 | Chart not responding |
ERR_CHART_NOT_FOUND | 4103 | Schedule not found |
ERR_CHART_NO_EXPERT | 4104 | The chart does not have an expert that could process the event |
ERR_CHART_CANNOT_OPEN | 4105 | Chart opening error |
ERR_CHART_CANNOT_CHANGE | 4106 | Error when changing for symbol and period plot |
ERR_CHART_WRONG_PARAMETER | 4107 | Wrong parameter value for the graph function |
ERR_CHART_CANNOT_CREATE_TIMER | 4108 | Error creating timer |
ERR_CHART_WRONG_PROPERTY | 4109 | Wrong chart property ID |
ERR_CHART_SCREENSHOT_FAILED | 4110 | Error when taking a screenshot |
ERR_CHART_NAVIGATE_FAILED | 4111 | Chart navigation error |
ERR_CHART_TEMPLATE_FAILED | 4112 | Error applying template |
ERR_CHART_WINDOW_NOT_FOUND | 4113 | The subwindow containing the specified indicator was not found |
ERR_CHART_INDICATOR_CANNOT_ADD | 4114 | Error when adding an indicator to a chart |
ERR_CHART_INDICATOR_CANNOT_DEL | 4115 | Error when deleting an indicator from a chart |
ERR_CHART_INDICATOR_NOT_FOUND | 4116 | The indicator was not found on the specified chart |
Graphic objects | ||
ERR_OBJECT_ERROR | 4201 | The terminal settings limit the number of requested bars |
ERR_OBJECT_NOT_FOUND | 4202 | Graphic object not found |
ERR_OBJECT_WRONG_PROPERTY | 4203 | Wrong graphic object property identifier |
ERR_OBJECT_GETDATE_FAILED | 4204 | Access to History |
ERR_OBJECT_GETVALUE_FAILED | 4205 | Unable to get value corresponding to date |
MarketInfo | ||
ERR_MARKET_UNKNOWN_SYMBOL | 4301 | Unknown character |
ERR_MARKET_NOT_SELECTED | 4302 | Symbol not selected in MarketWatch |
ERR_MARKET_WRONG_PROPERTY | 4303 | Wrong symbol property identifier |
ERR_MARKET_LASTTIME_UNKNOWN | 4304 | The time of the last tick is unknown (there were no ticks) |
ERR_MARKET_SELECT_ERROR | 4305 | Error adding or removing symbol in MarketWatch |
Access to History | ||
ERR_HISTORY_NOT_FOUND | 4401 | Many errors when loading the history |
ERR_HISTORY_WRONG_PROPERTY | 4402 | Incorrect history property identifier |
ERR_HISTORY_TIMEOUT | 4403 | Timeout exceeded when requesting history |
ERR_HISTORY_BARS_LIMIT | 4404 | The global variable of the client terminal with the same name already exists. |
ERR_HISTORY_LOAD_ERRORS | 4405 | Failed to send an email |
ERR_HISTORY_SMALL_BUFFER | 4407 | The receiving array is too small to hold all the requested data. |
Global_Variables | ||
ERR_GLOBALVARIABLE_NOT_FOUND | 4501 | Client terminal global variable not found |
ERR_GLOBALVARIABLE_EXISTS | 4502 | Failed to send file via FTP |
ERR_GLOBALVARIABLE_NOT_MODIFIED | 4503 | There were no global variable modifications |
ERR_GLOBALVARIABLE_CANNOTREAD | 4504 | The indicator could not be created |
ERR_GLOBALVARIABLE_CANNOTWRITE | 4505 | Failed to write file with global variable values |
ERR_MAIL_SEND_FAILED | 4510 | Failed to open and read a file with global variable values |
ERR_PLAY_SOUND_FAILED | 4511 | Failed to play sound |
ERR_MQL5_WRONG_PROPERTY | 4512 | Wrong program property identifier |
ERR_TERMINAL_WRONG_PROPERTY | 4513 | Wrong terminal property identifier |
ERR_FTP_SEND_FAILED | 4514 | No FTP server is specified |
ERR_NOTIFICATION_SEND_FAILED | 4515 | Failed to send notification |
ERR_NOTIFICATION_WRONG_PARAMETER | 4516 | Invalid parameter for sending a notification – an empty string or NULL was passed to the SendNotification() function |
ERR_NOTIFICATION_WRONG_SETTINGS | 4517 | Incorrect notification settings in the terminal (no ID or no permission set) |
ERR_NOTIFICATION_TOO_FREQUENT | 4518 | Too frequent notifications |
ERR_FTP_NOSERVER | 4519 | Error when adding an indicator |
ERR_FTP_NOLOGIN | 4520 | FTP login is not specified |
ERR_FTP_FILE_ERROR | 4521 | File not found in MQL5\Files directory to send to FTP server |
ERR_FTP_CONNECT_FAILED | 4522 | Error connecting to FTP server |
ERR_FTP_CHANGEDIR | 4523 | File upload directory not found on FTP server |
ERR_FTP_CLOSED | 4524 | Connection to FTP server closed |
Custom indicator buffers | ||
ERR_BUFFERS_NO_MEMORY | 4601 | Not enough memory to allocate indicator buffers |
ERR_BUFFERS_WRONG_INDEX | 4602 | Wrong index of own indicator buffer |
Properties of custom indicators | ||
ERR_CUSTOM_WRONG_PROPERTY | 4603 | Wrong custom indicator property ID |
Account | ||
ERR_ACCOUNT_WRONG_PROPERTY | 4701 | Wrong account property ID |
ERR_TRADE_WRONG_PROPERTY | 4751 | Wrong Trade Property ID |
ERR_TRADE_DISABLED | 4752 | Trading for an expert is prohibited |
ERR_TRADE_POSITION_NOT_FOUND | 4753 | Position not found |
ERR_TRADE_ORDER_NOT_FOUND | 4754 | Warrant not found |
ERR_TRADE_DEAL_NOT_FOUND | 4755 | Deal not found |
ERR_TRADE_SEND_FAILED | 4756 | Failed to send trade request |
ERR_TRADE_CALC_FAILED | 4758 | Failed to calculate profit or margin value |
Indicator | ||
ERR_INDICATOR_UNKNOWN_SYMBOL | 4801 | Unknown character |
ERR_INDICATOR_CANNOT_CREATE | 4802 | Not enough memory to add an indicator |
ERR_INDICATOR_NO_MEMORY | 4803 | Error when adding the indicator |
ERR_INDICATOR_CANNOT_APPLY | 4804 | The indicator cannot be applied to another indicator |
ERR_INDICATOR_CANNOT_ADD | 4805 | Wrong parameter type in the array when creating an indicator |
ERR_INDICATOR_DATA_NOT_FOUND | 4806 | Requested data not found |
ERR_INDICATOR_WRONG_HANDLE | 4807 | Wrong indicator handle |
ERR_INDICATOR_WRONG_PARAMETERS | 4808 | Incorrect number of parameters when creating an indicator |
ERR_INDICATOR_PARAMETERS_MISSING | 4809 | Missing parameters when creating an indicator |
ERR_INDICATOR_CUSTOM_NAME | 4810 | The first parameter in the array must be the name of the custom indicator |
ERR_INDICATOR_PARAMETER_TYPE | 4811 | The file name is too long |
ERR_INDICATOR_WRONG_INDEX | 4812 | Wrong index of the requested indicator buffer |
The file with this handle has already been closed or was not opened at all | ||
ERR_BOOKS_CANNOT_ADD | 4901 | Depth of Market cannot be added |
ERR_BOOKS_CANNOT_DELETE | 4902 | Depth of Market cannot be deleted |
ERR_BOOKS_CANNOT_GET | 4903 | Depth of Market data cannot be obtained |
ERR_BOOKS_CANNOT_SUBSCRIBE | 4904 | Error when subscribing to receive new Depth of Market data |
File operations | ||
ERR_TOO_MANY_FILES | 5001 | Can’t have more than 64 files open at the same time |
ERR_WRONG_FILENAME | 5002 | Invalid file name |
ERR_TOO_LONG_FILENAME | 5003 | The file with this handle has already been closed or was not opened at all |
ERR_CANNOT_OPEN_FILE | 5004 | The directory does not exist |
ERR_FILE_CACHEBUFFER_ERROR | 5005 | Not enough memory for read cache |
ERR_CANNOT_DELETE_FILE | 5006 | File deletion error |
ERR_INVALID_FILEHANDLE | 5007 | The file must be opened as CSV |
ERR_WRONG_FILEHANDLE | 5008 | Wrong file handle |
ERR_FILE_NOTTOWRITE | 5009 | The file must be open for writing |
ERR_FILE_NOTTOREAD | 5010 | The file must be open for reading |
ERR_FILE_NOTBIN | 5011 | The file must be opened as a binary |
ERR_FILE_NOTTXT | 5012 | The file must be opened as a text file. |
ERR_FILE_NOTTXTORCSV | 5013 | The file must be opened as text or CSV |
ERR_FILE_NOTCSV | 5014 | The string size must be specified since the file is opened as a binary |
ERR_FILE_READERROR | 5015 | File read error |
ERR_FILE_BINSTRINGSIZE | 5016 | For string arrays, there must be a text file; for the rest – binary |
ERR_INCOMPATIBLE_FILE | 5017 | It’s not a file; it’s a directory |
ERR_FILE_IS_DIRECTORY | 5018 | It’s not a file, it’s a directory |
ERR_FILE_NOT_EXIST | 5019 | File does not exist |
ERR_FILE_CANNOT_REWRITE | 5020 | File cannot be overwritten |
ERR_WRONG_DIRECTORYNAME | 5021 | Wrong directory name |
ERR_DIRECTORY_NOT_EXIST | 5022 | The directory cannot be deleted |
ERR_FILE_ISNOT_DIRECTORY | 5023 | This is a file, not a directory |
ERR_CANNOT_DELETE_DIRECTORY | 5024 | User-defined errors start with this code |
ERR_CANNOT_CLEAN_DIRECTORY | 5025 | Failed to clean up the directory (maybe one or more files are locked and the delete operation failed) |
ERR_FILE_WRITEERROR | 5026 | Failed to write resource to file |
ERR_FILE_ENDOFFILE | 5027 | Failed to read next chunk of data from CSV file (FileReadString, FileReadNumber, FileReadDatetime, FileReadBool) because end of file reached |
String conversion | ||
ERR_NO_STRING_DATE | 5030 | There is no date on the line |
ERR_WRONG_STRING_DATE | 5031 | Wrong date in line |
ERR_WRONG_STRING_TIME | 5032 | Wrong time on line |
ERR_STRING_TIME_ERROR | 5033 | Error converting string to date |
ERR_STRING_OUT_OF_MEMORY | 5034 | Out of memory for string |
ERR_STRING_SMALL_LEN | 5035 | String length is less than expected |
ERR_STRING_TOO_BIGNUMBER | 5036 | Number too large, greater than ULONG_MAX |
ERR_WRONG_FORMATSTRING | 5037 | Wrong format string |
ERR_TOO_MANY_FORMATTERS | 5038 | More format specifiers than parameters |
ERR_TOO_MANY_PARAMETERS | 5039 | More parameters than format specifiers |
ERR_WRONG_STRING_PARAMETER | 5040 | Corrupted parameter type string |
ERR_STRINGPOS_OUTOFRANGE | 5041 | Position outside of line |
ERR_STRING_ZEROADDED | 5042 | Added 0 to the end of the string, useless operation |
ERR_STRING_UNKNOWNTYPE | 5043 | Unknown data type when converting to string |
ERR_WRONG_STRING_OBJECT | 5044 | Corrupted string object |
Working with arrays | ||
ERR_INCOMPATIBLE_ARRAYS | 5050 | Copying incompatible arrays. A string array can only be copied to a string array, and a numeric array can only be copied to a numeric one. |
ERR_SMALL_ASSERIES_ARRAY | 5051 | Receive array declared as AS_SERIES and not large enough |
ERR_SMALL_ARRAY | 5052 | Array too small, starting position outside of array |
ERR_ZEROSIZE_ARRAY | 5053 | Zero length array |
ERR_NUMBER_ARRAYS_ONLY | 5054 | Must be a numeric array |
ERR_ONEDIM_ARRAYS_ONLY | 5055 | Must be a one dimensional array |
ERR_SERIES_ARRAY | 5056 | Timeseries cannot be used |
ERR_DOUBLE_ARRAY_ONLY | 5057 | Must be an array of type double |
ERR_FLOAT_ARRAY_ONLY | 5058 | Must be an array of type float |
ERR_LONG_ARRAY_ONLY | 5059 | Must be an array of type long |
ERR_INT_ARRAY_ONLY | 5060 | Must be an array of type int |
ERR_SHORT_ARRAY_ONLY | 5061 | Must be an array of type short |
ERR_CHAR_ARRAY_ONLY | 5062 | Must be an array of type char |
ERR_STRING_ARRAY_ONLY | 5063 | Must be an array of type string |
Working with OpenCL | ||
ERR_OPENCL_NOT_SUPPORTED | 5100 | OpenCL features are not supported on this computer |
ERR_OPENCL_INTERNAL | 5101 | Internal error while executing OpenCL |
ERR_OPENCL_INVALID_HANDLE | 5102 | Wrong OpenCL handle |
ERR_OPENCL_CONTEXT_CREATE | 5103 | Error creating OpenCL context |
ERR_OPENCL_QUEUE_CREATE | 5104 | Error creating run queue in OpenCL |
ERR_OPENCL_PROGRAM_CREATE | 5105 | Error while compiling OpenCL program |
ERR_OPENCL_TOO_LONG_KERNEL_NAME | 5106 | Entry point name too long (OpenCL kernel) |
ERR_OPENCL_KERNEL_CREATE | 5107 | Error creating kernel – OpenCL entry points |
ERR_OPENCL_SET_KERNEL_PARAMETER | 5108 | Error when setting parameters for the OpenCL kernel (entry points to the OpenCL program) |
ERR_OPENCL_EXECUTE | 5109 | OpenCL program execution error |
ERR_OPENCL_WRONG_BUFFER_SIZE | 5110 | Incorrect OpenCL buffer size |
ERR_OPENCL_WRONG_BUFFER_OFFSET | 5111 | Wrong offset in OpenCL buffer |
ERR_OPENCL_BUFFER_CREATE | 5112 | OpenCL Buffer Creation Error |
ERR_OPENCL_TOO_MANY_OBJECTS | 5113 | Maximum number of OpenCL objects exceeded |
ERR_OPENCL_SELECTDEVICE | 5114 | Error selecting OpenCL device |
Working with WebRequest | ||
ERR_WEBREQUEST_INVALID_ADDRESS | 5200 | URL not validated |
ERR_WEBREQUEST_CONNECT_FAILED | 5201 | Failed to connect to the specified URL |
ERR_WEBREQUEST_TIMEOUT | 5202 | Receive data timeout exceeded |
ERR_WEBREQUEST_REQUEST_FAILED | 5203 | Error as a result of executing an HTTP request |
Custom symbols | ||
ERR_NOT_CUSTOM_SYMBOL | 5300 | Custom character must be specified |
ERR_CUSTOM_SYMBOL_WRONG_NAME | 5301 | Invalid custom symbol name. Only Latin letters can be used in the symbol name without punctuation marks, spaces and special characters (allowed are “.”, “_”, “&” and “#”). The characters <, >, :, “, /,\, |, ?, * are not recommended. |
ERR_CUSTOM_SYMBOL_NAME_LONG | 5302 | Too long name for custom symbol. The length of the symbol name must not exceed 32 characters, including the terminating 0 |
ERR_CUSTOM_SYMBOL_PATH_LONG | 5303 | Too long path for custom symbol. Path length no more than 128 characters including “Custom\\”, symbol name, group separators and trailing 0 |
ERR_CUSTOM_SYMBOL_EXIST | 5304 | A custom symbol with the same name already exists |
ERR_CUSTOM_SYMBOL_ERROR | 5305 | Error when creating, deleting or modifying a custom symbol |
ERR_CUSTOM_SYMBOL_SELECTED | 5306 | Attempting to delete a custom symbol selected in Market Watch |
ERR_CUSTOM_SYMBOL_PROPERTY_WRONG | 5307 | Invalid custom symbol property |
ERR_CUSTOM_SYMBOL_PARAMETER_ERROR | 5308 | Wrong parameter when setting custom symbol property |
ERR_CUSTOM_SYMBOL_PARAMETER_LONG | 5309 | String parameter too long when setting custom character property |
ERR_CUSTOM_TICKS_WRONG_ORDER | 5310 | Array of ticks not ordered by time |
User errors | ||
ERR_USER_ERROR_FIRST | 65536 | User defined errors start with this code |
Questions?
If you have any questions, please ask them. We do not sell the pig in a poke.
And each of our products can be checked before the purchase.
We appreciate your attitude and wishes for our products and try to keep the quality standard high.
Thank you for being with us!
Do you have a question?
Leave a Reply