The codes for the TPS could cause the funny shifting. However if you installed a new one and are still getting the codes for the TPS, something is either wrong with the adjustment or the wiring harness for the TPS. There might be codes stored in the transmission control module that the code reader can't access.
P1120 FORD - Throttle Position Sensor Out of Range
Read more: http://kvjournal.ru/p1120_ford.html