Hello,
Ihave the following code in an EA
From time to time, I did not count it, but around 10-20% I receive error 4753
Does anyone met this situation ?
What is the problem and how could be resolve ?
Thank in advance !
A little bit more information:
Code is:
trade.PositionOpen(_Symbol,signal,TradeSizeOptimized(), SymbolInfoDouble(_Symbol,signal==ORDER_TYPE_SELL ? SYMBOL_BID:SYMBOL_ASK), MyStopLoss,MyTakeProfit); if(PositionSelect(_Symbol)==true) ....... else Print(GetLastError());
And BTW, the topic you mentioned above ends with your comment:
"I don't think so. A synchronous trading request have to be synchronous in all the aspects. It's as simple as that.
Here the request is synchronous but then you have to manage asynchronous stuff. And nothing is documented about that."
So, to understand there is no conclusion to the problem, yet ?
Really ? I guess I have to explain that
The link I post is fully related to your issue. The symptom isn't the same, the underlying problem is the same.
There can sometimes exist a delay for the Terminal to be informed that a new position is open (or close, doesn't matter). So when PositionSelect(...) is reached your "else" is executed. There are several workaround explained in the topic I gave you the link.
The link I post is fully related to your issue. The symptom isn't the same, the underlying problem is the same.
There can sometimes exist a delay for the Terminal to be informed that a new position is open (or close, doesn't matter). So when PositionSelect(...) is reached your "else" is executed. There are several workaround explained in the topic I gave you the link.
Thanks for clarifications. But the question remain: how can be avoid this kind of problem?
I mean: how to code to avoid this situation.
Thanks for clarifications. But the question remain: how can be avoid this kind of problem?
I mean: how to code to avoid this situation.
Please, some efforts, I already wrote you that :
There are several workaround explained in the topic I gave you the link.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
Ihave the following code in an EA
From time to time, I did not count it, but around 10-20% I receive error 4753
Does anyone met this situation ?
What is the problem and how could be resolve ?
Thank in advance !