One technique that has really helped me improve my trading psychology and consequently my trading results is to carefully examine where my head is at BEFORE I close a trade. I do that by incorporating a "closing trade checklist" into my process.
CLOSING TRADE CHECKLIST - Why do I want to close the trade?
Knowledge is real power. Creating the checklist and really working it will be very revealing to you. It will give you the information necessary to begin the process to effect change and move toward a place of more robust decision making that will improve your trading performance.
Happy Hunting and Good Trading!