The track from a linear potentiometer ( commonly called a 'fader' when used for audio ) may do what you need. Various lengths and resistance values are available.
Conductive plastic ones are very good, but more expensive than carbon.
Use a length of thin strong wire eg nicr - (perhaps > 40swg) pressed against it as the pickup - it's resistivity doesn't matter much
Allan