How can you treat cramps in your right leg that are so bad you can't sleep and cold compresses don't help?

You might need more potassium in your diet. Eat more bananas. Also, go see a doctor to make sure that it is not something more serious.