When do you tell your child/ children that you are pregnant

Crystal • I'm a mother to a 6yr old girl .. That's the love of my life .. I could not Imagine my life without her ..
I do not know when I should  tell my 6 yr old daughter that I'm pregnant .. Because I had miscarriages in the past n she still brings up about the first one .. Please help me ?