Message 1121
Code | Severity | Message | Description |
---|---|---|---|
1121 | Error | Order close failed at bid <Bid> for #<TicketNo> <TicketType> cmnt:<TicketComment> (<AttemptNo>, <TicketCount>/ <TotalTicketCount>, <Latency>ms) | Attempt to close an open trade returned with error. More... |
Attempt to Close an Open Trade Failed
Issue
The EA requested to close an open trade but it returned back with error. The operation may or may not have closed out the open trade.
Possible root cause
- The trade got closed off in the meantime by the broker server due to reaching its take profit or stop loss limits.
- The trade got closed off by another EA.
- The trade got closed off manually.
- The price quote changed slipping the close order outside of allowed range.
- The MT5 terminal lost its connection to the broker server.
Resolution
Typically this issue is temporary and the EA recovers from this issue automatically over the subsequent incoming data feed ticks. When this issue is reported only a few times there is no need for further attention. In order to double check that the trade got eventually closed off follow these steps:
- Take a note of the ticket number reported by the message something like as #12345678.
- Go to the History tab of the Toolbox window (press Ctrl+T).
- Search for the ticket number noted above, in the column Order.
If the ticket is found in the History tab then it got closed off subsequently with success, and no further action is needed.
In the case of connection problems, refer to the Knowledgebase topic No Updates to Chart for resolution.