If I'm understanding right, you weigh 317, are 5'9, eat no more than 1700 calories a day with exercise 5x a week (-500 calories) and have been gaining and losing the same 10 lbs for 2 years??
If that's right, That sounds frustrating and something must be really off. If you're sure that's all the calories you're getting in and you're weighing your food, I'd head in to your dr for some blood tests.That's a huge deficit and as I'm sure you know every 3500 calorie deficit, or so, you should drop a pound.
Would you feel comfortable or would you find it helpful to share an average day in your diet? Maybe that could provide some clues
Congrats on your 103 pounds lost so far! That's awesome!