Thank you for your response.
This is a known item that has been reported to FOREX.com. Currently this is expected on their end as two orders cannot act on the same position at the same time. They have let our development team know they are looking into this to attempt to prevent this error.
In your case you would look into waiting for a position to exit first and then submit an entry when the exit fills. So instead of the Enter method to close the current position and open the new position consider using an Exit method with a specific signal name that you can check for as filled in OnExecutionUpdate() and then submit the entry for the new position.
Please let me know if you have any questions.
Comment