Chiming in here with another book recommendation that’s got some brilliant stuff on this. It’s called The Mental Game of Trading written by Jared Tendler.
Rather than parroting the stuff we all know about greed and fear blah blah he actually lists practical steps and measures you can take to stay disciplined. You can get it on Kindle.