I have a question regarding multiple Exit commands executing at the same time. In the strategy I’m currently developing, I have an array of Exits that sometimes may overlap, causing multiple “ExitLong”, etc. commands to execute at the same time for closing a single position. The issue is that these multiple commands all send their own orders to broker, causing errors or erroneous entries in the other direction.
I’m struggling to come up with a solution for this - how can I go about putting in a restriction that limits to one the actual Exit order sent to broker?
Comment