REJECTED with error "CONCURRENT_MODIFICATION"
REJECTED with error "CONCURRENT_MODIFICATION"
03 Jan 2020, 06:55
My cBot encountered an error as above SUBJECT and the SL and TSL of that position are disappeared. My questions are:
1.What is the REJECTED with error "CONCURRENT_MODIFICATION"?
2.Why it happened?
3.How do I prevent it?
4.Why are the SL and TSL of that position disappeared? If the request to amend order is REJECTED, SL and TSL should not be changed by the server.
My cBot works well all the time. But on 01/01/2020, it got a REJECTED with error "CONCURRENT_MODIFICATION" as following journal.
01/01/2020 10:15:24.822 | cBot "MycBot" was started successfully for USDJPY, h1.
01/01/2020 10:15:24.838 | Stop order to Buy $ 1m USDJPY (Price: 108.674, SL: 0.5, TP: 100) is sent to server
01/01/2020 10:15:24.884 | → Stop order OID124111018 to Buy $ 1m USDJPY (Price: 108.674, SL: 0.5, TP: 100) is ACCEPTED (01/01/2020 10:15:24.868 UTC+0)
01/01/2020 10:15:24.994 | Stop order to Sell $ 1m USDJPY (Price: 108.574, SL: 0.5, TP: 100) is sent to server
01/01/2020 10:15:25.088 | → Stop order OID124111019 to Sell $ 1m USDJPY (Price: 108.574, SL: 0.5, TP: 100) is ACCEPTED (01/01/2020 10:15:25.020 UTC+0)
01/01/2020 22:01:00.487 | Request to amend order OID124111018 (Price: 108.804) is sent to server
==>01/01/2020 22:01:01.331 | → Request to amend order OID124111018 (Price: 108.804) is REJECTED with error "CONCURRENT_MODIFICATION"
01/01/2020 22:01:01.347 | Request to amend order OID124111019 (Price: 108.704) is sent to server
01/01/2020 22:01:01.487 | → Stop order to BUY $ 1m USDJPY OID124111018 is FILLED at 108.780, position PID69059049 (01/01/2020 22:01:00.650 UTC+0)
01/01/2020 22:01:02.034 | → Request to amend order OID124111019 (Price: 108.704) is ACCEPTED (01/01/2020 22:01:01.310 UTC+0)
01/01/2020 22:01:02.144 | Request to CANCEL order OID124111019 is sent to server
01/01/2020 22:01:02.190 | → Stop order to SELL $ 1m USDJPY OID124111019 is CANCELLED (01/01/2020 22:01:02.128 UTC+0)
Replies
3rrr168
07 Jan 2020, 09:25
Hi Panagiotis,
In the log, I do not see any changes of SL and TSL either.
However, when above error was shown, I watched at the details of that existing position. The SL became null. The TSL became FALSE.
My cBot does place orders with SL=0.5-pips and TSL=TRUE. I also confirmed that the above error is nothing to do with slippages.
I wonder that when error "CONCURRENT_MODIFICATION" happened, the SL and TSL would not be kept. It is a dangerous situation for traders.
Thanks for your response.
@3rrr168
PanagiotisCharalampous
07 Jan 2020, 08:56
Hi Jack,
This can happen if you are sending multiple requests to amend the order at the same time. Based on the attached log I do not see where the SL and TSL being changed.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous