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.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue