Re: I'm looking for programmer to fix EA functions that sometimes don't work
You'll see that a lot of orders failed just because of that.
Re: I'm looking for programmer to fix EA functions that sometimes don't work
And do not forget to check the minimum StopLevel of the broker. Sometimes the TP/SL is too close to the price and does not allow it.
Re: I'm looking for programmer to fix EA functions that sometimes don't work
Good observation. I'm operating with very volatile pairs, maybe I'm colliding with the minimum allowed.
Re: I'm looking for programmer to fix EA functions that sometimes don't work
The same thing happened to me with GBPJPY. I thought it was bug, and it was the blessed stop level.
Re: I'm looking for programmer to fix EA functions that sometimes don't work
Have you tried retrying the TP/SL setting? Sometimes it fails in the first attempt, but it goes in the second.
Re: I'm looking for programmer to fix EA functions that sometimes don't work
No, I don't have retries implemented. Is that done with a loop and sleep?
Re: I'm looking for programmer to fix EA functions that sometimes don't work
Exactly. You can do a three-pronged for with Sleep(1000)
Re: I'm looking for programmer to fix EA functions that sometimes don't work
In my EA, that simple retry saved me from a thousand headaches.
Re: I'm looking for programmer to fix EA functions that sometimes don't work
And what if instead of OrderSend(
Re: I'm looking for programmer to fix EA functions that sometimes don't work
The problem is that the EA is in MT4, and the broker I use does not offer MT5 yet.