Alon D :
Calling positionClose from the CTrade class doesn't trigger the onTradeTransaction event.
Is there a different way I should close a position?
There are two reasons: 1. The position was not closed (for example, a requote was received) 2. You do not know how to handle OnTradeTransaction.

TradeTransaction Class
- www.mql5.com
When performing some definite actions on a trade account, its state changes. Such actions include: Sending a trade request from any MQL5 application in the client terminal using OrderSend and OrderSendAsync functions and its further execution; Sending a trade request via the terminal graphical interface and its further execution; activation of...
It would be great if you had a short tutorial on how to implement this for those who dont know

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
Calling positionClose from the CTrade class doesn't trigger the onTradeTransaction event.
Is there a different way I should close a position?