YI GOLD

MT4 / MT5 Error Codes & Trading Tools

Search official trade, runtime and compilation codes and warnings. Calculate risk using actual contract specifications.

Position & Risk

Size exposure using equity, stop distance and actual specifications.

Open calculator
Advanced contract parameters

Margin & Value

Estimate margin, tick value and price-move value.

Open calculator
Advanced contract parameters

Compound & Drawdown

A mathematical scenario, not a forecast of strategy returns.

Open calculator

Calculations run locally in your browser. Inputs are not uploaded or saved. Terminal and broker margin rules apply; estimates exclude slippage, commission and swap.

Official error code lookup

1171 matching records

Platform / categoryCode / constantOfficial meaningTroubleshooting
MT4 · Runtime errors128 ERR_TRADE_TIMEOUTTrade timeout
YI GOLD suggestions

Inspect connectivity, logs and request time. Verify actual order status before bounded retries with backoff to avoid duplicate exposure after a timeout.

MetaQuotes
MT4 · Runtime errors129 ERR_INVALID_PRICEInvalid price
YI GOLD suggestions

Read the latest bid/ask and quote time. Check precision and allowed deviation; stop increasing exposure with stale quotes.

MetaQuotes
MT4 · Runtime errors130 ERR_INVALID_STOPSInvalid stops
YI GOLD suggestions

Check bid/ask, point, digits, stops_level and freeze_level. Recalculate distances; do not remove protection merely to force a fill.

MetaQuotes
MT4 · Runtime errors131 ERR_INVALID_TRADE_VOLUMEInvalid trade volume
YI GOLD suggestions

Read 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 errors132 ERR_MARKET_CLOSEDMarket is closed
YI GOLD suggestions

Check server time, gold trading sessions, holidays and terminal/EA permissions. Wait for availability instead of repeatedly retrying closed-market requests.

MetaQuotes
MT4 · Runtime errors133 ERR_TRADE_DISABLEDTrade is disabled
YI GOLD suggestions

Check server time, gold trading sessions, holidays and terminal/EA permissions. Wait for availability instead of repeatedly retrying closed-market requests.

MetaQuotes
MT4 · Runtime errors134 ERR_NOT_ENOUGH_MONEYNot enough money
YI GOLD suggestions

Check 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 errors135 ERR_PRICE_CHANGEDPrice changed
YI GOLD suggestions

Read the latest bid/ask and quote time. Check precision and allowed deviation; stop increasing exposure with stale quotes.

MetaQuotes
MT4 · Runtime errors136 ERR_OFF_QUOTESOff quotes
YI GOLD suggestions

Read the latest bid/ask and quote time. Check precision and allowed deviation; stop increasing exposure with stale quotes.

MetaQuotes
MT4 · Runtime errors137 ERR_BROKER_BUSYBroker is busy
YI GOLD suggestions

Serialize account requests, verify previous outcomes, reduce frequency and use bounded backoff.

MetaQuotes
MT4 · Runtime errors138 ERR_REQUOTERequote
YI GOLD suggestions

Read the latest bid/ask and quote time. Check precision and allowed deviation; stop increasing exposure with stale quotes.

MetaQuotes
MT4 · Runtime errors139 ERR_ORDER_LOCKEDOrder is locked
YI GOLD suggestions

Serialize account requests, verify previous outcomes, reduce frequency and use bounded backoff.

MetaQuotes
MT4 · Runtime errors140 ERR_LONG_POSITIONS_ONLY_ALLOWEDBuy orders only allowed
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT4 · Runtime errors141 ERR_TOO_MANY_REQUESTSToo many requests
YI GOLD suggestions

Serialize account requests, verify previous outcomes, reduce frequency and use bounded backoff.

MetaQuotes
MT4 · Runtime errors145 ERR_TRADE_MODIFY_DENIEDModification denied because order is too close to market
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT4 · Runtime errors146 ERR_TRADE_CONTEXT_BUSYTrade context is busy
YI GOLD suggestions

Serialize account requests, verify previous outcomes, reduce frequency and use bounded backoff.

MetaQuotes
MT4 · Runtime errors147 ERR_TRADE_EXPIRATION_DENIEDExpirations are denied by broker
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT4 · Runtime errors148 ERR_TRADE_TOO_MANY_ORDERSThe amount of open and pending orders has reached the limit set by the broker
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT4 · Runtime errors149 ERR_TRADE_HEDGE_PROHIBITEDAn attempt to open an order opposite to the existing one when hedging is disabled
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT4 · Runtime errors150 ERR_TRADE_PROHIBITED_BY_FIFOAn attempt to close an order contravening the FIFO rule
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT4 · Runtime errors4000 ERR_NO_MQLERRORNo error returned
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT4 · Runtime errors4001 ERR_WRONG_FUNCTION_POINTERWrong function pointer
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT4 · Runtime errors4002 ERR_ARRAY_INDEX_OUT_OF_RANGEArray index is out of range
YI GOLD suggestions

Check length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access.

MetaQuotes
MT4 · Runtime errors4003 ERR_NO_MEMORY_FOR_CALL_STACKNo memory for function call stack
YI GOLD suggestions

Reduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results.

MetaQuotes
MT4 · Runtime errors4004 ERR_RECURSIVE_STACK_OVERFLOWRecursive stack overflow
YI GOLD suggestions

Reduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results.

MetaQuotes
MT4 · Runtime errors4005 ERR_NOT_ENOUGH_STACK_FOR_PARAMNot enough stack for parameter
YI GOLD suggestions

Reduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results.

MetaQuotes
MT4 · Runtime errors4006 ERR_NO_MEMORY_FOR_PARAM_STRINGNo memory for parameter string
YI GOLD suggestions

Reduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results.

MetaQuotes
MT4 · Runtime errors4007 ERR_NO_MEMORY_FOR_TEMP_STRINGNo memory for temp string
YI GOLD suggestions

Reduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results.

MetaQuotes
MT4 · Runtime errors4008 ERR_NOT_INITIALIZED_STRINGNot initialized string
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT4 · Runtime errors4009 ERR_NOT_INITIALIZED_ARRAYSTRINGNot initialized string in array
YI GOLD suggestions

Check length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access.

MetaQuotes
MT4 · Runtime errors4010 ERR_NO_MEMORY_FOR_ARRAYSTRINGNo memory for array string
YI GOLD suggestions

Check length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access.

MetaQuotes
MT4 · Runtime errors4011 ERR_TOO_LONG_STRINGToo long string
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT4 · Runtime errors4012 ERR_REMAINDER_FROM_ZERO_DIVIDERemainder from zero divide
YI GOLD suggestions

Check denominators before division, remainder and return calculations. Distinguish missing data from true zero and report an explicit invalid state.

MetaQuotes
MT4 · Runtime errors4013 ERR_ZERO_DIVIDEZero divide
YI GOLD suggestions

Check denominators before division, remainder and return calculations. Distinguish missing data from true zero and report an explicit invalid state.

MetaQuotes
MT4 · Runtime errors4014 ERR_UNKNOWN_COMMANDUnknown command
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT4 · Runtime errors4015 ERR_WRONG_JUMPWrong jump (never generated error)
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT4 · Runtime errors4016 ERR_NOT_INITIALIZED_ARRAYNot initialized array
YI GOLD suggestions

Check length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access.

MetaQuotes
MT4 · Runtime errors4017 ERR_DLL_CALLS_NOT_ALLOWEDDLL calls are not allowed
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT4 · Runtime errors4018 ERR_CANNOT_LOAD_LIBRARYCannot load library
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT4 · Runtime errors4019 ERR_CANNOT_CALL_FUNCTIONCannot call function
YI GOLD suggestions

Inspect 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.