Rough translation of buyer/seller algorithm for ZIP traders. Missing delta rule.