How to get last state of a position?
I've written this piece of code on OnTradeTransaction event handler to know whether it is finished or not, but I don't get suitable result.
Your question is vague.
"to know whether it is finished or not" : What do you want to know exactly ?
"I don't get suitable result" : Of course, your code do nothing. What result are you expecting ?
Your question is vague.
"to know whether it is finished or not" : What do you want to know exactly ?
"I don't get suitable result" : Of course, your code do nothing. What result are you expecting ?
I want to know if it is moved from current orders to history list
- www.mql5.com
And another question :D
How can I delete a file contents?
And another question :D
How can I delete a file contents?
yes, pending orders
- www.mql5.com
Ok, so you want to detect when your pending orders are triggered and became buy/sell deals.
I've written this piece of code on OnTradeTransaction event handler to know whether it is finished or not, but I don't get suitable result.