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 | 4513 ERR_TERMINAL_WRONG_PROPERTY | Wrong identifier of the terminal property | 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 | 4514 ERR_FTP_SEND_FAILED | File sending via ftp failed | 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 | 4515 ERR_NOTIFICATION_SEND_FAILED | Failed to send a notification | 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 | 4516 ERR_NOTIFICATION_WRONG_PARAMETER | Invalid parameter for sending a notification – an empty string or NULL has been passed to the SendNotification() function | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT5 · Runtime errors | 4517 ERR_NOTIFICATION_WRONG_SETTINGS | Wrong settings of notifications in the terminal (ID is not specified or permission is not set) | 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 | 4518 ERR_NOTIFICATION_TOO_FREQUENT | Too frequent sending of notifications | YI GOLD suggestionsSerialize account requests, verify previous outcomes, reduce frequency and use bounded backoff. MetaQuotes |
| MT5 · Runtime errors | 4519 ERR_FTP_NOSERVER | FTP server is not specified | 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 | 4520 ERR_FTP_NOLOGIN | FTP login is not specified | 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 | 4521 ERR_FTP_FILE_ERROR | File not found in the MQL5\Files directory to send on FTP server | 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 | 4522 ERR_FTP_CONNECT_FAILED | FTP connection failed | YI GOLD suggestionsInspect connectivity, logs and request time. Verify actual order status before bounded retries with backoff to avoid duplicate exposure after a timeout. MetaQuotes |
| MT5 · Runtime errors | 4523 ERR_FTP_CHANGEDIR | FTP path not found on server | 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 | 4601 ERR_BUFFERS_NO_MEMORY | Not enough memory for the distribution of indicator buffers | YI GOLD suggestionsReduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results. MetaQuotes |
| MT5 · Runtime errors | 4602 ERR_BUFFERS_WRONG_INDEX | Wrong indicator buffer index | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 4603 ERR_CUSTOM_WRONG_PROPERTY | Wrong ID of the custom indicator property | YI GOLD suggestionsVerify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros. MetaQuotes |
| MT5 · Runtime errors | 4701 ERR_ACCOUNT_WRONG_PROPERTY | Wrong account property ID | 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 | 4751 ERR_TRADE_WRONG_PROPERTY | Wrong trade property ID | 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 | 4752 ERR_TRADE_DISABLED | Trading by Expert Advisors prohibited | YI GOLD suggestionsCheck server time, gold trading sessions, holidays and terminal/EA permissions. Wait for availability instead of repeatedly retrying closed-market requests. MetaQuotes |
| MT5 · Runtime errors | 4753 ERR_TRADE_POSITION_NOT_FOUND | Position 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 |
| MT5 · Runtime errors | 4754 ERR_TRADE_ORDER_NOT_FOUND | Order 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 |
| MT5 · Runtime errors | 4755 ERR_TRADE_DEAL_NOT_FOUND | Deal 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 |
| MT5 · Runtime errors | 4756 ERR_TRADE_SEND_FAILED | Trade request sending failed | 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 | 4758 ERR_TRADE_CALC_FAILED | Failed to calculate profit or margin | YI GOLD suggestionsCheck actual account denomination, free margin, volume and leverage. Calculate margin in the terminal and assess reduced exposure or genuine funding. Do not repeatedly submit the same request. MetaQuotes |
| MT5 · Runtime errors | 4801 ERR_INDICATOR_UNKNOWN_SYMBOL | Unknown symbol | YI GOLD suggestionsVerify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros. MetaQuotes |
| MT5 · Runtime errors | 4802 ERR_INDICATOR_CANNOT_CREATE | Indicator cannot be created | YI GOLD suggestionsVerify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros. MetaQuotes |
| MT5 · Runtime errors | 4803 ERR_INDICATOR_NO_MEMORY | Not enough memory to add the indicator | YI GOLD suggestionsReduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results. MetaQuotes |
| MT5 · Runtime errors | 4804 ERR_INDICATOR_CANNOT_APPLY | The indicator cannot be applied to another 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 |
| MT5 · Runtime errors | 4805 ERR_INDICATOR_CANNOT_ADD | Error applying an indicator to 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 |
| MT5 · Runtime errors | 4806 ERR_INDICATOR_DATA_NOT_FOUND | Requested data not found | YI GOLD suggestionsVerify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros. MetaQuotes |
| MT5 · Runtime errors | 4807 ERR_INDICATOR_WRONG_HANDLE | Wrong indicator handle | YI GOLD suggestionsVerify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros. MetaQuotes |
| MT5 · Runtime errors | 4808 ERR_INDICATOR_WRONG_PARAMETERS | Wrong number of parameters when creating an 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 |
| MT5 · Runtime errors | 4809 ERR_INDICATOR_PARAMETERS_MISSING | No parameters when creating an 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 |
| MT5 · Runtime errors | 4810 ERR_INDICATOR_CUSTOM_NAME | The first parameter in the array must be the name of the custom indicator | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 4811 ERR_INDICATOR_PARAMETER_TYPE | Invalid parameter type in the array when creating an indicator | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 4812 ERR_INDICATOR_WRONG_INDEX | Wrong index of the requested indicator buffer | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 4901 ERR_BOOKS_CANNOT_ADD | Depth Of Market can not be added | 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 | 4902 ERR_BOOKS_CANNOT_DELETE | Depth Of Market can not be removed | 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 | 4903 ERR_BOOKS_CANNOT_GET | The data from Depth Of Market can not be obtained | 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 | 4904 ERR_BOOKS_CANNOT_SUBSCRIBE | Error in subscribing to receive new data from Depth Of Market | 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 | 5001 ERR_TOO_MANY_FILES | More than 64 files cannot be opened at the same time | 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 | 5002 ERR_WRONG_FILENAME | Invalid 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.