Welcome to HCM.
Atleast 6 month gap should be there after miscarriage
Go for investigations to rule out the cause of miscarriage and irregular bleedind.
,TORCH test,VDRL test,Hormonal study.USG for uterus.
Treat any condition if it is present than plan for pregnancy
Consult your gynecologist for better guidance.