Please do not self medicate. Magnesium
, calcium and Potassium can be even lethal, if their levels in the blood increase above certain level. They do have some irreversible side effects as well.
Whatever the country you are in, there will be many alternate medicine practitioners who are better suited to do this than you doing it on your own and playing with your life, if you are not interested in antidepressants or other medication.