Depression which comes and goes and is affected by external stressors (not things which one would normally grieve over but become stressed about) is due to and caused by (causes?) qi stagnation.
Do you exercise much?
Yoga, or light cardio such as walking or bicycling?
These things may help to free the stuck energy which is blocking your libido from reaching it's target (your sexual organs).