The great and terrible MT4 forever (or how to strategise a transition) - page 31

 
fxsaber #:

It is not easy to explain as there are so many pitfalls. Wrote a solution that allows users to work without any problems. But parsing the internal implementation is for special connoisseurs.

Can I have a link, please.

 
Vasiliy Pushkaryov #:

Although the PositionClose(Symbol) method in SB assigns transaction type TRADE_ACTION_DEAL.

It turns out there should be a transaction ticket, but often there isn't.

A successful OrderSend for ACTION_DEAL is to increase OrdersTotal by one. Anything that happens next (redirection or full/partial execution of market order with trades appearing) has nothing to do with OrderSend.

 
Vasiliy Pushkaryov #:

Can I have a link please.

https://www.mql5.com/ru/blogs/post/745331

Проверка на наличие дублей ордеров/позиций в MT5
Проверка на наличие дублей ордеров/позиций в MT5
  • www.mql5.com
Появление дублей ордеров/позиций в MT5 - архитектурная особенность платформы, с которой многие сталкиваются. Данная неприятность вызывает серьезные перекосы в торговых рисках, ломает логику, усложняет
 
fxsaber #:

A successful OrderSend for ACTION_DEAL is to increase OrdersTotal by one. Anything that happens next (redirection or full/partial execution of a market order with trades appearing) is no longer relevant to OrderSend.

Cynic. I'm asleep.