Amibroker badly needs to move to a transparent broker interface....
When I used AmiBroker and InteractiveBrokers, I wrote my own broker interface in Java (and Ruby), because I just didn't trust the one provided by AmiBroker.
You both guys are tools. The interface is open source!
http://www.amibroker.com/devlog/2013/06/03/ibcontroller-1-3-8-source-codes-released/