Perhaps get checked out by your GP.

I get a similar problem, going from the hip (the bony bit) to my knee but it can be painful just in the middle of the thigh, this is all along the outside of the thigh.

I have been diagnosed with Greater trochanteric pain syndrome. Check it out on the internet, see if it is similar to what you get.

Very painful at times.

Hope you get sorted out.