There are only two ways you can exit a trade that is : stop loss or take profit.
Stop losses are orders you place with your broker to sell/buy stocks automatically at a certain price. Once this price is achieved the stop loss is converted into market order. The purpose is to limit the loss on an open position.
Take profit is an order to the broker informing them to close your position when price reaches a specified price level in profits.
While planning an exit strategy, keep in mind how long you are planning to trade, how much risk you can undertake and what do you want to achieve with the trades you make.