Position & Risk
Size exposure using equity, stop distance and actual specifications.
Search official trade, runtime and compilation codes and warnings. Calculate risk using actual contract specifications.
Size exposure using equity, stop distance and actual specifications.
Estimate margin, tick value and price-move value.
A mathematical scenario, not a forecast of strategy returns.
Calculations run locally in your browser. Inputs are not uploaded or saved. Terminal and broker margin rules apply; estimates exclude slippage, commission and swap.
1171 matching records
| Platform / category | Code / constant | Official meaning | Troubleshooting |
|---|---|---|---|
| MT5 · Runtime errors | 5003 ERR_TOO_LONG_FILENAME | Too long file name | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5004 ERR_CANNOT_OPEN_FILE | File opening error | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5005 ERR_FILE_CACHEBUFFER_ERROR | Not enough memory for cache to read | YI GOLD suggestionsReduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results. MetaQuotes |
| MT5 · Runtime errors | 5006 ERR_CANNOT_DELETE_FILE | File deleting error | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5007 ERR_INVALID_FILEHANDLE | A file with this handle was closed, or was not opening at all | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5008 ERR_WRONG_FILEHANDLE | Wrong file handle | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5009 ERR_FILE_NOTTOWRITE | The file must be opened for writing | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5010 ERR_FILE_NOTTOREAD | The file must be opened for reading | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5011 ERR_FILE_NOTBIN | The file must be opened as a binary one | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5012 ERR_FILE_NOTTXT | The file must be opened as a text | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5013 ERR_FILE_NOTTXTORCSV | The file must be opened as a text or CSV | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5014 ERR_FILE_NOTCSV | The file must be opened as CSV | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5015 ERR_FILE_READERROR | File reading error | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5016 ERR_FILE_BINSTRINGSIZE | String size must be specified, because the file is opened as binary | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5017 ERR_INCOMPATIBLE_FILE | A text file must be for string arrays, for other arrays - binary | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 5018 ERR_FILE_IS_DIRECTORY | This is not a file, this is a directory | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5019 ERR_FILE_NOT_EXIST | File does not exist | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5020 ERR_FILE_CANNOT_REWRITE | File can not be rewritten | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5021 ERR_WRONG_DIRECTORYNAME | Wrong directory name | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5022 ERR_DIRECTORY_NOT_EXIST | Directory does not exist | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5023 ERR_FILE_ISNOT_DIRECTORY | This is a file, not a directory | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5024 ERR_CANNOT_DELETE_DIRECTORY | The directory cannot be removed | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5025 ERR_CANNOT_CLEAN_DIRECTORY | Failed to clear the directory (probably one or more files are blocked and removal operation failed) | YI GOLD suggestionsSerialize account requests, verify previous outcomes, reduce frequency and use bounded backoff. MetaQuotes |
| MT5 · Runtime errors | 5026 ERR_FILE_WRITEERROR | Failed to write a resource to a file | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5027 ERR_FILE_ENDOFFILE | Unable to read the next piece of data from a CSV file (FileReadString, FileReadNumber, FileReadDatetime, FileReadBool), since the end of file is reached | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5030 ERR_NO_STRING_DATE | No date in the string | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5031 ERR_WRONG_STRING_DATE | Wrong date in the string | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5032 ERR_WRONG_STRING_TIME | Wrong time in the string | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5033 ERR_STRING_TIME_ERROR | Error converting string to date | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5034 ERR_STRING_OUT_OF_MEMORY | Not enough memory for the string | YI GOLD suggestionsReduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results. MetaQuotes |
| MT5 · Runtime errors | 5035 ERR_STRING_SMALL_LEN | The string length is less than expected | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5036 ERR_STRING_TOO_BIGNUMBER | Too large number, more than ULONG_MAX | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5037 ERR_WRONG_FORMATSTRING | Invalid format string | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5038 ERR_TOO_MANY_FORMATTERS | Amount of format specifiers more than the parameters | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT5 · Runtime errors | 5039 ERR_TOO_MANY_PARAMETERS | Amount of parameters more than the format specifiers | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT5 · Runtime errors | 5040 ERR_WRONG_STRING_PARAMETER | Damaged parameter of string type | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT5 · Runtime errors | 5041 ERR_STRINGPOS_OUTOFRANGE | Position outside the string | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5042 ERR_STRING_ZEROADDED | 0 added to the string end, a useless operation | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5043 ERR_STRING_UNKNOWNTYPE | Unknown data type when converting to a string | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5044 ERR_WRONG_STRING_OBJECT | Damaged string object | YI GOLD suggestionsVerify chart ID, object existence and property types. Check creation/update results and avoid name collisions. MetaQuotes |
Official meanings and YI GOLD suggestions are presented separately. References are verified during version builds; page visits do not fetch external sites.