shagi is right if you're trading do different contracts technically these are not offsetting securities... I didn't think this was what he was doing though.
uh lol, if I was to post the strategy you would understand Maybe if you expand your mind to maybe understand why someone would want to hold something that is flat and be accounted to actually holding that you might actually figure something out. anyways, I'll let you continue to think you've got the world figured out, and be on my way.
I'm just trying to get a straight answer regarding TWS
Thanks to the person that explained sub accounts, i'll work on getting one.
In short, the answer to your question is: NO. TWS will not let you do this with one account.
People have achieved what you want by using different accounts as you know.
Not sure if this addresses your problem but you may also consider the following solution:
Virtual Account
-------------------
You could model a virtual account in your ATS that DOES have the ability to have both a long and short positions in a single instrument.
The NET position would actually be transmitted to TWS from the virtual account. If both the long and short positions in your virtual account were equal, then obviously no trades would be transmitted to TWS.
The virtual account approach has the added side effect of reducing commissions as it only trades the net differences.
This can important if you have multiple strategies trading the same instrument in one IB account.