Hi Lisa, How are you doing? Hope you are feeling better. Migraine headaches are commonly triggered with so many factors like foods, habits, environmental factors - change in temperature, light, sound, drugs and stress etc. It could be worse and abrupt sometimes making life miserable. You have been prescribed Sertraline for mood swings and also it is working well for you, your correlation of using Sertraline and getting migraines might be ok, but it is always better to discuss with the doctor who prescribed the drug about its possible side effects and a substitute thereon. You might consult a migraine specialist also to get an evaluation and update on drug use. Try relaxation techniques to decrease stress. Keep posting your views. Take care.
I would talk to your prescriber about it. After 1.5 years on it you should be adapted to it by now, so if that's what 's causing it I doubt it'll go away at this point. There are lots of SSRI's out there and it often takes trial and error to find just the right one to treat symptoms without difficult side effects. Your doctor can guide you about trying another.