It has been running for over 50 hours now, without being stopped. Fair to say that problem is solved, thank you very much to both of you! Besides a working strategy, I learned about the “division by zero” problem 🙂
Your image shows a stop order rejection. The strategy sends a buy at market order and at the same time a stop order as the code has SET STOP instruction in it. The stop order was too close (less than 40 pips) so the orders were rejected.