Installing a listener to receive notifications if trade closes by S/L or limit order

Hi,

I am totally new in MT5 Python API and I hope, my question is quite trivial - I couldn't find anything:

How to install a MT5 listener so the Python script gets notified, once a trade was closed by a S/L or limit order?

Is there a sample somewhere? Which functions to use?


Thx