I suggest talking to a psychologist.
There are places that offer this kind of help for free,
so don't let money stop you from doing it.
I don't have a degree in human psych,
So I personally couldn't steer you in the right direction.
If you are bipolar, or battling with depression, then you pretty much have chemical imbalances in your brain,
and a shrink might be able to suggest a medication that will help you to balance this.
That's about all I got for ya man.
I can relate though either way. I'm a little older than you are but I've been in the same boat for a long time.
Unfortunately I never took my own advice, and continue to be pretty much null and void.