Your ex may be a great person, but she is most certainly not the right person for you. She is flawed, and deeply absorbed in her own self-loathing and depression. It is impossible to be in a healthy, stable relationship with someone who doesn't love herself to begin with.
She is in no place to be in a relationship. And no matter what, you should not seek to wander down that path with someone so unprepared to love you.
You got dumped because this person doesn't want to be with you. She told you to stop. That's about as clear as it gets. Do not treat this as a cry for help! I know it sucks to want someone when they don't want you back. It's absolute agony. But the only thing worse than that feeling is continuing along in a relationship that isn't equal; with you doing all the legwork and all the loving while she doesn't reciprocate or contribute to the relationship. It might be hard to believe now, but you will move on. People get their hearts trampled every day. And eventually, the tough ones among us pick up the pieces and soldier on.