can a minor refuse treatment?

I'm a teenager and am being forced to take medication basically against my will. I hate the idea of taking medication (fine for others, I personally hate taking it myself) for depression and anxiety. I have been to an inpatient hospital before. Am I allowed to refuse it? I am completely certain I don't want to take it, I hate hate hate the feeling I have while I'm on it. Thanks.