You may probably have a Restless leg syndrome which is neurological disorder where you move your limbs and get relief on moving around, doing stretches,
massage etc which gives a temporary
relief and recurs again. More common in evening or night, can be seen among family members. There can be other diseases, which might trigger this. Most of lifestyle changes like avoiding alcohol, smoking, excessive caffeine; some drugs can be of help.