Decide where you want to get out when you are getting in. Make a plan and stick to it. If you don’t have a plan, don’t open the trade.
Actually, the only time I close positions manually, off the plan for each, is when something dramatic happens globally (rarely) and all positions move quickly and significantly up or down - at that point I have tended to close everything and wait for the dust to settle.