Code to know when a position reached takeprofit in mq5?

Code to know when a position reached takeprofit in mq5?