i developed a idea to make a gross arbitrage EA to scan all possible outcomes for arbitrage trades.
The thing is i don't really understansd the following.

When i find a triangular arbitrage the idea is to for example
buy dollars for 1000 euro
then buying pounds with dollars
then selling the pounds for euros.

but when i do that. i have 3 open trades instead of really doing it the way as described above.
van anyone explain how to solve this?