Hi mate,
If im not mistaken....
Pin 17 is Black with a Red trace (TPS signal into ECU)
Pin 30 is Red (5 Volt feed into TPS from ECU)
Pin 11 is Brown with Green trace (Earth/Negative feed to TPS from ECU)
Note; Pin 11 also feeds the Air and Coolant temp sensors with an ECU earth supply as well as the TPS.