For example, you have opened a Sell position and set a Take Profit order.
Please note, that as we sell a trading instrument, we open a Sell position at a Bid price (charts in the trading terminals are built according to the Bid price).
The closure of short positions means the opening of a Buy position, i.e. each Sell position may be closed only with an opposite Buy position.
The opening of a Buy position is performed at an Ask price (a Spread higher than the Bid price).
A Take Profit order in your case means Buy, i.e. it is performed at an Ask price. In your case, the Bid price on the chart had reached the level of the Take Profit order, and the Ask price was still above that level.