How to square off a position with a Cover Order

Suppose i have taken a short position and put a cover order buy stop limit

for Taking Profit if i am putting a buy limit order .. in place of squaring off the short position it is opening a new long position with the existing short position also active

pls suggest a solution how to square off positions

2 replies