Pain in calf for 4 months that quits fir a week or so then comes back. Can a misplaced hip cause calf pain?

Pinched Nerve. Sounds like you have a pinched nerve in your back. I would suggest seeing a pain/spine specialist to evaluate you further to evaluate what level and what can be done to treat you. There are interventional treatments besides medications and surgeries that might reduce or eliminate the pain altogether.