I was wondering if anyone can shed light on the following error:
Would appreciate suggestions on how to fix it.
There is plenty of margin available and the lot size I used is 0.03
I'm not sure what the relevant parts are and the EA is rather long.
Can I perhaps message you and attach the EA or would you rather I try paste some of the code here?
Just to add to my earlier message. Despite the error, the EA does fill the order later but it's normally a good 10 to 30 minutes later and obviously at the wrong price
You have either to use OrderLots() to close a full position or
to normalize your lot size this way :
Perhaps add the check
Thank you all for your contributions.