Question 1:
As far as I know, this function only gets called when there was a transaction. It is meant to process the result.
Question 2:
Every deal, order and position get their own ticket number. Only Position ID is unique and let's you connect a position with orders and deals. This ID gets carried over. Ticket numbers do not get carried over.
Thank you Dominik : )
Was able to test this and it matched your feedback.
Kind regards,
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have two questions in below code I found in MQL5 forum.
Question 1 (Highlight in red): Why this needed? When "trans.type" is TRADE_TRANSACTION_ORDER_ADD, there should be no deal yet.
Question 2 (Highlight in green): When there are partial fills, order ID on 2nd deal will be automatically generated by the trading server side? In other word, the original order ID will not be carried over?