Download MetaTrader 5

OnTradeTransaction

To add comments, please log in or register
Learning MQL5? Start with documentation!
mr_stoploss
10
mr_stoploss 2014.07.25 19:14 
How can I use this to check the profits of a position that is about to be closed by tp, in case the broker widens his spread?
Alain Verleyen
Moderator
30737
Alain Verleyen 2014.07.27 17:49  
mr_stoploss:
How can I use this to check the profits of a position that is about to be closed by tp, in case the broker widens his spread?
If the position is "about to be closed", it's not closed, so there is no transaction. You probably can't use this event handler for what you are trying to do.
To add comments, please log in or register