You're right. This was in fact a bug of the Z4 script: It added the trade risk to the margin, which resulted in a too anxious trade behavior, and fewer trades.

We've replaced the script. You can download it separately here:

http://server.conitec.net/down/z4.x