YI GOLD
MT5 · Trade return codes

MT5 10042 · The request is rejected, because the " Only long positions are allowed " rule is set for the symbol ( POSITION_TYPE_BUY ) | YI GOLD

TRADE_RETCODE_LONG_ONLY

Official meaning

The request is rejected, because the " Only long positions are allowed " rule is set for the symbol ( POSITION_TYPE_BUY )

Possible causes · YI GOLD suggestions

Determine the cause from the official meaning, the triggering function and terminal logs.

Troubleshooting · YI GOLD suggestions

Check permissions, sessions, symbol specifications, quotes and request parameters. Reproduce in a demo account. Do not retry rejected requests indefinitely.