I searched online and here is a link to the TS code (download link is at the end):

http://www.traderslaboratory.com/for...ock-curve.html