How to Minimize Risks of Automated Trading Software