First of all you need to have a healthy balanced diet and exercise. may be progesterone deficiency
is the cause of your miscarriages, your doctor advising for progesterone shot.it will help to retain your pregnancy
but no significant role in getting pregnant.you need to reduce your mental stress
and have positive mind also help you. You need to ask your gynaecologist regarding when you can stop the medicine.