Hello to everybody,
I have a little problem, because of my little knowledge of MQL5 language... Once I open an order, using OrderOpen() of Ctrade class, now I want to know to check its status at every tick; i.e. I want to know if it is still opened or instead closed because of TakeProfit or StopLoss level is reached.
How to do ?
Pls., help me !!!Davide
PositionSelect() will tell you if a position is still open.
Look at the OnTradeTransaction() event.
Thanks for your reply... but PositionSelect returns only true or false.
I do not know how manage opened oreder or check.