Sex on period

I had sex the day after my period ended(5 day cycle), sometimes my cycle stops for a day and continues the next day and then stops. On the day it seemed it stopped I and sex. It’s been 4 days after and I am still bleeding. No pain just a 9 day cycle with heavy flow. Just curious if anyone can help me know why or tips to stop it