I am working through the black book and have arrived at the money managemetn section

This is an old topic so maybe it has been addressed. Oanda has been doing system maintenance on their platform and two of the times in the past month I've had to restart the algo in order to re-authenticate zorro with the Oanda server.

Will profit closed reset to zero in z12 system each time I restart?

Since z12 is a compiled file, I can't edit it as above.
Is there a workaround that can help prevent me losing everything due to a margin call!?

I know the simplest solution is to write my own algo so I can customize everything but I haven't coded one that can beat z12 yet laugh