Celibacy and Depression

I whole heartedly believe I'm over my ex. It's been about 2.5 years since he's left. But it's also been 2.5 years since I've had sex and I can't shake the blues. I know I'm not releasing as much oxytocin. But can not having sex really reverse my whole disposition!?!