I do not know what all your symptoms are but find this sentence rather interesting...
"Have been trying the alkalizing thing and am just confused as ever. Calcium and potassium help me sleep but also give me leg aches."
Magnesium deficiencies can and do mimic deficiencies of calcium and potassium in addition, magnesium deficiencies can lead to leg aches (muscle aches in general) and cramps.
In addition, our best sources of magnesium are green leafy vegetables and grasses. How do you respond to Epsom Salt baths?