Sorry to hear about your daughter.
The way i see it is that she has had a rather difficult childhood- She is still not fully well though that may not justify her behaviour in your eyes yet her experience of childhood has been one of greater pain as compared to that of other children. Maybe if you tried a completely different approach of encouraging the good things that she does, praising her for when ever she behaves well, treating her to good times and happy experiences & things that she likes whenever she behaves relatively better and always demonstrating your love for her irrespective of the way she is or the difficulties that she may be causing.