When is the best time to try for a baby?

I've gone to doctor's and they said five days before my ovulating period is a good time to try but I'm very small and have had a miscarriage before so I'm kinda scared.. Does anyone have any tips? Or has anyone been in my situation?