Put your mouse in a drawer or something - that way you have to actually retrieve it, rather than just hover over it the whole time.
Or, set an alarm to go off every 20 mins or so, then stop trading for 10.
Personally, when I had the same problem, I started writing out my trades in detail...