2nd trimester loss

I miscarried in January at 10 weeks, then was able to conceive again in March. I had all of the testing done, and found out that I was expecting a healthy baby boy. Unfortunately when I went for my 16 week checkup the doctor couldn't find the heartbeat. After a very long week, I had a d&e. I  would have been due November 27.  This month has been very hard.  Have any of you had a 2nd trimester miscarriage and still managed to have a rainbow baby? I'm so scared to try again.