Weight loss and period

sarah

I'm 5 ft 4 and 190lbs I'm trying to get to 150 .... To hopefully have another baby .. But my periods are bad like I never know when it will show up it could be 3 weeks to 6 months.... And I never know how long it will stay... I could have one for a week or 4 months... I think this may be because of my weight gain... When I was 160 roughly my period was off ..but more trackable..like id have a period every other month and it would last about a month... Better but not great but that is also when I got pregnant with my now 5 year old... Thoughts opinions ideas? HEEELLPP