My experience (thankfully not paid for with real money, but fake trading) has shown me I am not good at market timing, particularly knowing when to get back in, so I don't bother trying.
It doesn't really take restraint so much as an acceptance that I will likely not do better than buy & hold. I don't enjoy seeing my balance go down, but I am not close to retirement, so I accept that I need to wait it out to catch market rallies because I am not paying super close attention to markets.