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 |
|---|---|---|---|
| MT4 · Runtime errors | 4020 ERR_EXTERNAL_CALLS_NOT_ALLOWED | Expert function calls are not allowed | 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 |
| MT4 · Runtime errors | 4021 ERR_NO_MEMORY_FOR_RETURNED_STR | Not enough memory for temp string returned from function | YI GOLD suggestionsReduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results. MetaQuotes |
| MT4 · Runtime errors | 4022 ERR_SYSTEM_BUSY | System is busy (never generated error) | YI GOLD suggestionsSerialize account requests, verify previous outcomes, reduce frequency and use bounded backoff. MetaQuotes |
| MT4 · Runtime errors | 4023 ERR_DLLFUNC_CRITICALERROR | DLL-function call critical error | 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 |
| MT4 · Runtime errors | 4024 ERR_INTERNAL_ERROR | Internal error | 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 |
| MT4 · Runtime errors | 4025 ERR_OUT_OF_MEMORY | Out of memory | YI GOLD suggestionsReduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results. MetaQuotes |
| MT4 · Runtime errors | 4026 ERR_INVALID_POINTER | Invalid pointer | 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 |
| MT4 · Runtime errors | 4027 ERR_FORMAT_TOO_MANY_FORMATTERS | Too many formatters in the format function | 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 |
| MT4 · Runtime errors | 4028 ERR_FORMAT_TOO_MANY_PARAMETERS | Parameters count exceeds formatters count | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT4 · Runtime errors | 4029 ERR_ARRAY_INVALID | Invalid array | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT4 · Runtime errors | 4030 ERR_CHART_NOREPLY | No reply from chart | YI GOLD suggestionsVerify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros. MetaQuotes |
| MT4 · Runtime errors | 4050 ERR_INVALID_FUNCTION_PARAMSCNT | Invalid function parameters count | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT4 · Runtime errors | 4051 ERR_INVALID_FUNCTION_PARAMVALUE | Invalid function parameter value | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT4 · Runtime errors | 4052 ERR_STRING_FUNCTION_INTERNAL | String function internal error | 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 |
| MT4 · Runtime errors | 4053 ERR_SOME_ARRAY_ERROR | Some array error | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT4 · Runtime errors | 4054 ERR_INCORRECT_SERIESARRAY_USING | Incorrect series array using | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT4 · Runtime errors | 4055 ERR_CUSTOM_INDICATOR_ERROR | Custom indicator error | YI GOLD suggestionsVerify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros. MetaQuotes |
| MT4 · Runtime errors | 4056 ERR_INCOMPATIBLE_ARRAYS | Arrays are incompatible | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT4 · Runtime errors | 4057 ERR_GLOBAL_VARIABLES_PROCESSING | Global variables processing error | 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 |
| MT4 · Runtime errors | 4058 ERR_GLOBAL_VARIABLE_NOT_FOUND | Global variable not found | 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 |
| MT4 · Runtime errors | 4059 ERR_FUNC_NOT_ALLOWED_IN_TESTING | Function is not allowed in testing mode | 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 |
| MT4 · Runtime errors | 4060 ERR_FUNCTION_NOT_CONFIRMED | Function is not allowed for call | 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 |
| MT4 · Runtime errors | 4061 ERR_SEND_MAIL_ERROR | Send mail error | 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 |
| MT4 · Runtime errors | 4062 ERR_STRING_PARAMETER_EXPECTED | String parameter expected | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT4 · Runtime errors | 4063 ERR_INTEGER_PARAMETER_EXPECTED | Integer parameter expected | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT4 · Runtime errors | 4064 ERR_DOUBLE_PARAMETER_EXPECTED | Double parameter expected | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT4 · Runtime errors | 4065 ERR_ARRAY_AS_PARAMETER_EXPECTED | Array as parameter expected | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT4 · Runtime errors | 4066 ERR_HISTORY_WILL_UPDATED | Requested history data is in updating state | YI GOLD suggestionsVerify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros. MetaQuotes |
| MT4 · Runtime errors | 4067 ERR_TRADE_ERROR | Internal trade error | 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 |
| MT4 · Runtime errors | 4068 ERR_RESOURCE_NOT_FOUND | Resource not found | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT4 · Runtime errors | 4069 ERR_RESOURCE_NOT_SUPPORTED | Resource not supported | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT4 · Runtime errors | 4070 ERR_RESOURCE_DUPLICATED | Duplicate resource | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT4 · Runtime errors | 4071 ERR_INDICATOR_CANNOT_INIT | Custom indicator cannot initialize | YI GOLD suggestionsVerify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros. MetaQuotes |
| MT4 · Runtime errors | 4072 ERR_INDICATOR_CANNOT_LOAD | Cannot load custom indicator | YI GOLD suggestionsVerify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros. MetaQuotes |
| MT4 · Runtime errors | 4073 ERR_NO_HISTORY_DATA | No history data | YI GOLD suggestionsVerify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros. MetaQuotes |
| MT4 · Runtime errors | 4074 ERR_NO_MEMORY_FOR_HISTORY | No memory for history data | YI GOLD suggestionsReduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results. MetaQuotes |
| MT4 · Runtime errors | 4075 ERR_NO_MEMORY_FOR_INDICATOR | Not enough memory for indicator calculation | YI GOLD suggestionsReduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results. MetaQuotes |
| MT4 · Runtime errors | 4099 ERR_END_OF_FILE | End of file | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT4 · Runtime errors | 4100 ERR_SOME_FILE_ERROR | Some file error | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT4 · Runtime errors | 4101 ERR_WRONG_FILE_NAME | Wrong file name | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
Official meanings and YI GOLD suggestions are presented separately. References are verified during version builds; page visits do not fetch external sites.