I know what you mean.....there is very little by way of reading material on the internal mechanisms of a broker. I have learnt most of these things the hard way.
In my case I had a run-in with MB Trading. One morning I woke up to find a bunch of trades running on my account that did not come from my side. I did the obvious thing and closed them......and that is where the proverbial poo hit the fan.
It turns out they were 'ghost' trades that had been created by a corrupt file at one of their liquidity providers. The problem was the trades did not exist and by closing the ghost trades, I had now created real trades but in the opposite direction.
There is a lot of good reading material at forex factory in the MB Trading thread on how these brokers work. After thinking about it, I have come to realise that it is kind of obvious that they must open an opposite trade. You have bought AUD using EUR. You cannot profit until you sell those AUD that you are holding. You can't just give it back.......
The electronic terminal tends to mask the fact that there is still a real market place in which we operate.
Presumably you have dissected the Quick_Close script and noticed that it is a bit more complex to use than the normal Close_All script. Your challenge is going to be to match trades of equal volume into opposing tickets and then load that into an array.
Wealth Creation Through Technology