Leg pain which recedes when moving

Hello. I have a worsening pain around upper ankle. After resting/sleeping the pain will be severe. However, after ½ hour of moving around it almost disappears. A consultant thought it was a strained ligament, I think by default as nothing showed on X-ray. He gave me an exercise and advised me to obtain an ankle brace. He did say that arthritis might be influencing it. He advised to keep moving but, contrary to what I thought is usual tendon damage treatment, he did not advise RICE.

So I’m unsure how to treat this and where to go from here. Any advice appreciated.