if(HistoryDealSelect(mresult.deal)) { datetime dealOpenTime=(datetime)HistoryDealGetInteger(mresult.deal,DEAL_TIME); }
angevoyageur:
Ok, thanks a lot, what I hadn't understood from the documentation was that the deal ticket described in mqltraderesult documentation is exactly the ticket number required by historydealgetinteger
hardhu:
Ok, thanks a lot, what I hadn't understood from the documentation was that the deal ticket described in mqltraderesult documentation is exactly the ticket number required by historydealgetinteger
You are welcome.
Ok, thanks a lot, what I hadn't understood from the documentation was that the deal ticket described in mqltraderesult documentation is exactly the ticket number required by historydealgetinteger
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
Hello everybody,
I need help to understand which is the simplest way to get informations abut the time execution of an order.
In my EA, order is placed, and results are collected using this code:
Where mresult is a MqlTradeResult structure. From the documentation I know that in mresult.deal is stored the deal ticket of the operation executed, but then it is not clear to me how to use the deal ticket to get the information about the time when the order has been executed.
Any help would be greatly appreciated.