You had a miscarriage 3 weeks ago and took a pregnancy test that said positive is that your hormones from the old pregnancy?

yes that's exactly what it is. the pregnancy hormone stays in your body for several weeks after a miscarriage.