We are running our EA on 27 simultanious pairs.
When it sees an opportunity, it opens a STOP order 10 pips from the current price.
We need a code that will limit the code to only opening one buystop and one sell stop at a time per pair.
Also, if any buystop or sellstop on any of the pairs opens up and becomes a live trade, we instantly need all stop orders deleted/closed.
example, 5 buystops are waiting for 5 diffirent pairs and 3 sellstops are waiting on 3 diffirent pairs.
If a buy goes live, all of the buy stops are deleted.
if a sell goes live, all of the sellstops are deleted.
you will not be allowed to see our code, we simply need you to code the above sequence and we will add it to our code.