I am very pleased to advise that the Nicolas fix worked and the System executed 3 trades overnight.
Thank you Nicolas!
JASSParticipant
Junior
(sorry for delayed answers from my side, I have been busy working the last couple of days).
That is very good news, thanks to both of you! I will incorporate the piece of code right away in my code and test it.
No problemo Jass, get yourself rested, no worries! 🙂
JASSParticipant
Junior
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 🙂
How can I have a Buy Minimum Distance Reject (see attached) when the Buy entry is at Market??
if c05 and c10 and c11 and c12 and c13 = 1 and c14 then
buy PositionSize contract at market
endif
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.