17 is a difficult age to go through for many...it was definitely one of the most challenging years of my life. Hormones and all that fun stuff definitely play a part, but you might consider getting your blood tested just to make sure everything is healthy physically. Sometimes mental health issues have a physical cause.
If you are physically healthy, then it may be time to speak to a therapist or psychiatrist about what is going on. Perhaps they can provide support and meds if required.