Recurrent miscarriages can be caused by a lot of factors. One cause that doctors consider is thrombophilia disorders (tendency for blood to clot). In thrombophilia disorders, researchers believe that tiny clots get stuck in the developing placenta, blocking flow of nutrients to the baby and eventually causing miscarriage.
For
women with diagnosed thrombophilia conditions and recurrent miscarriages, a common treatment is heparin -- often alongside low-dose "baby" aspirin. Heparin works by thinning the blood and decreasing the tendency to form clots.
Take note the above underlined term, since heparin is only recommended for women with history of pregnancy problems and a confirmed thrombophilia diagnosis.
Now as for spotting after your heparin shot, I came across this site from a patient who's had recurrent miscarriages and had heparin shots. She had the same problem & her doctor reassured her that spotting can happen from heparin. Anyway, the patient is now a mother to a baby girl. You can see the entire article at
Tristine's Triumph -- Entry Ten | Pregnancy.org
Good luck!