I have a service that buys and sells (with TP and SP, and I don't need to attached it to a chart), but I am not able to check how the position was closed.
It should have the same behaviour OnTradeTransaction() has in EAs (even if it is attached to one chart it monitors all other charts events).
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi, is it possible to have OnTradeTransaction() in Service?
I have a service that buys and sells (with TP and SP, and I don't need to attached it to a chart), but I am not able to check how the position was closed.
It should have the same behaviour OnTradeTransaction() has in EAs (even if it is attached to one chart it monitors all other charts events).
Thank you.