You need to have the proper error handling logic built into your code. I write trading bots for a living and 80% of my time goes in writing code for error handling.
And you aren't really explaining what the error was. Have you matched the executed …
I am mostly an option buyer. But I ran a few backtests with simple ironfly. I don't know what hedge based on ratios means, but I can code it if you can explain it.