Greetings, sorry for the pain you are undergoing.
Going by your description it is the problem related to muscle imbalances, not to worry. Doctor's cannot be of any help with your problem.
Next Steps
get to see a physiotherapist who is specialised in trigger point therapy and continue physio program for 3-4 months, you will see reduction in pain and swelling in legs.
see a dietitian and get your diet changed based on your lifestyle
Health Tips
if you could not solve your problem for various reasons you can contact me, will assist you to get this solved.