FYI: I understand this may seem counter-intuitive, but you only need one account to execute your method.
When a trader has two accounts and one is net-long while the other is net-short, that trader is net-flat. Hedged, flat... however you wish to describe it, that is the cash value of all...