You have not specified any group number on any buy/sell pending block. They must match. For example, blocks 5 and 6 must be specified the same group (only block 5 is specified for group 1). Same for pairs 7-9, 10-15 and 16-19.