I have also tested your code. In the EXITRUN log I have
Max open margin: 2539.021343
And in the trade log I have
Max open margin 283$
I'm using Zorro 1.50 . Do these results look good to you?