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 | 128 ERR_TRADE_TIMEOUT | Trade timeout | 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 |
| MT4 · Runtime errors | 129 ERR_INVALID_PRICE | Invalid price | YI GOLD suggestionsRead the latest bid/ask and quote time. Check precision and allowed deviation; stop increasing exposure with stale quotes. MetaQuotes |
| MT4 · Runtime errors | 130 ERR_INVALID_STOPS | Invalid stops | YI GOLD suggestionsCheck bid/ask, point, digits, stops_level and freeze_level. Recalculate distances; do not remove protection merely to force a fill. MetaQuotes |
| MT4 · Runtime errors | 131 ERR_INVALID_TRADE_VOLUME | Invalid trade volume | YI GOLD suggestionsRead volume_min, volume_max, volume_step and volume_limit for the actual symbol. Round down to the step; do not send an order below minimum volume. MetaQuotes |
| MT4 · Runtime errors | 132 ERR_MARKET_CLOSED | Market is closed | YI GOLD suggestionsCheck server time, gold trading sessions, holidays and terminal/EA permissions. Wait for availability instead of repeatedly retrying closed-market requests. MetaQuotes |
| MT4 · Runtime errors | 133 ERR_TRADE_DISABLED | Trade is disabled | YI GOLD suggestionsCheck server time, gold trading sessions, holidays and terminal/EA permissions. Wait for availability instead of repeatedly retrying closed-market requests. MetaQuotes |
| MT4 · Runtime errors | 134 ERR_NOT_ENOUGH_MONEY | Not enough money | 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 |
| MT4 · Runtime errors | 135 ERR_PRICE_CHANGED | Price changed | YI GOLD suggestionsRead the latest bid/ask and quote time. Check precision and allowed deviation; stop increasing exposure with stale quotes. MetaQuotes |
| MT4 · Runtime errors | 136 ERR_OFF_QUOTES | Off quotes | YI GOLD suggestionsRead the latest bid/ask and quote time. Check precision and allowed deviation; stop increasing exposure with stale quotes. MetaQuotes |
| MT4 · Runtime errors | 137 ERR_BROKER_BUSY | Broker is busy | YI GOLD suggestionsSerialize account requests, verify previous outcomes, reduce frequency and use bounded backoff. MetaQuotes |
| MT4 · Runtime errors | 138 ERR_REQUOTE | Requote | YI GOLD suggestionsRead the latest bid/ask and quote time. Check precision and allowed deviation; stop increasing exposure with stale quotes. MetaQuotes |
| MT4 · Runtime errors | 139 ERR_ORDER_LOCKED | Order is locked | YI GOLD suggestionsSerialize account requests, verify previous outcomes, reduce frequency and use bounded backoff. MetaQuotes |
| MT4 · Runtime errors | 140 ERR_LONG_POSITIONS_ONLY_ALLOWED | Buy orders only 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 | 141 ERR_TOO_MANY_REQUESTS | Too many requests | YI GOLD suggestionsSerialize account requests, verify previous outcomes, reduce frequency and use bounded backoff. MetaQuotes |
| MT4 · Runtime errors | 145 ERR_TRADE_MODIFY_DENIED | Modification denied because order is too close to 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 |
| MT4 · Runtime errors | 146 ERR_TRADE_CONTEXT_BUSY | Trade context is busy | YI GOLD suggestionsSerialize account requests, verify previous outcomes, reduce frequency and use bounded backoff. MetaQuotes |
| MT4 · Runtime errors | 147 ERR_TRADE_EXPIRATION_DENIED | Expirations are denied by broker | 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 | 148 ERR_TRADE_TOO_MANY_ORDERS | The amount of open and pending orders has reached the limit set by the broker | 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 | 149 ERR_TRADE_HEDGE_PROHIBITED | An attempt to open an order opposite to the existing one when hedging is disabled | 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 | 150 ERR_TRADE_PROHIBITED_BY_FIFO | An attempt to close an order contravening the FIFO rule | 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 | 4000 ERR_NO_MQLERROR | No error returned | 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 | 4001 ERR_WRONG_FUNCTION_POINTER | Wrong function 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 | 4002 ERR_ARRAY_INDEX_OUT_OF_RANGE | Array index is out of range | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT4 · Runtime errors | 4003 ERR_NO_MEMORY_FOR_CALL_STACK | No memory for function call stack | YI GOLD suggestionsReduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results. MetaQuotes |
| MT4 · Runtime errors | 4004 ERR_RECURSIVE_STACK_OVERFLOW | Recursive stack overflow | YI GOLD suggestionsReduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results. MetaQuotes |
| MT4 · Runtime errors | 4005 ERR_NOT_ENOUGH_STACK_FOR_PARAM | Not enough stack for parameter | YI GOLD suggestionsReduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results. MetaQuotes |
| MT4 · Runtime errors | 4006 ERR_NO_MEMORY_FOR_PARAM_STRING | No memory for parameter string | YI GOLD suggestionsReduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results. MetaQuotes |
| MT4 · Runtime errors | 4007 ERR_NO_MEMORY_FOR_TEMP_STRING | No memory for temp string | YI GOLD suggestionsReduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results. MetaQuotes |
| MT4 · Runtime errors | 4008 ERR_NOT_INITIALIZED_STRING | Not initialized 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 |
| MT4 · Runtime errors | 4009 ERR_NOT_INITIALIZED_ARRAYSTRING | Not initialized string in array | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT4 · Runtime errors | 4010 ERR_NO_MEMORY_FOR_ARRAYSTRING | No memory for array string | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT4 · Runtime errors | 4011 ERR_TOO_LONG_STRING | Too long 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 |
| MT4 · Runtime errors | 4012 ERR_REMAINDER_FROM_ZERO_DIVIDE | Remainder from zero divide | YI GOLD suggestionsCheck denominators before division, remainder and return calculations. Distinguish missing data from true zero and report an explicit invalid state. MetaQuotes |
| MT4 · Runtime errors | 4013 ERR_ZERO_DIVIDE | Zero divide | YI GOLD suggestionsCheck denominators before division, remainder and return calculations. Distinguish missing data from true zero and report an explicit invalid state. MetaQuotes |
| MT4 · Runtime errors | 4014 ERR_UNKNOWN_COMMAND | Unknown command | 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 | 4015 ERR_WRONG_JUMP | Wrong jump (never generated 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 | 4016 ERR_NOT_INITIALIZED_ARRAY | Not initialized array | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT4 · Runtime errors | 4017 ERR_DLL_CALLS_NOT_ALLOWED | DLL 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 | 4018 ERR_CANNOT_LOAD_LIBRARY | Cannot load library | 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 | 4019 ERR_CANNOT_CALL_FUNCTION | Cannot call 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 |
Official meanings and YI GOLD suggestions are presented separately. References are verified during version builds; page visits do not fetch external sites.