A positive pregnancy test followed by a negative pregnancy test a week or two later can indicate you've had a miscarriage. This often happens if you test positive very early and then have a chemical pregnancy, which is a miscarriage in the first five weeks of gestation. Pregnancy tests may pick up residual hCG (human chorionic gonadotrophin), the hormone which your body produces when you conceive and stops making when you miscarry.