bleeding a week before period???

I'm currently trying to conceive I have pcos and have been trying for two and a half years I'm on 2000mg of metformin daily, I found out I was pregnant on 8th of July and I miscarried on the 13th.. I went to the doctors on the 25th of July with pains in my side and she said I was ovulating. I am now cycle day 22 and having a bit of clear cm with some pink blood in it only the tinyest amount tho it has been this way the past two days and today only a few dots my period isn't due till the 13th of August so what is this bleeding from???