I miscarried twice, but only realised after the second one, that I had had another a few months earlier - if that makes sense. I had thought I was pregnant, but didn't do a test so I never knew. The second time, we'd been trying, so it was expected and I did a test early on. When I miscarried, it was awful, but it made me certain that it had happened before. I went on to have two boys, no pregnancy problems at all.
So many people at work shared their stories with me at that time - I had no idea prior to that because noone really talks about it. There was one which may help you - our sales director came down from Head Office, bless him, just to tell me that his wife had miscarried four times, and then had four girls, one after another, with no more problems. Their doctor had toyed with the theory that they maybe couldn't have boys, as the odds of repeating what happened to her would have been so high. A theory though, nothing scientific, but an educated theory!
Don't give up, and don't get stressed either, but I know that's not easy! I want to wish you a healthy, happy full-term pregnancy, because it will happen, I'm sure. Lots of love,
Jo xxx