The code is in WL4 format, so it's not going to work in WL6: someone has to translate it to C# first. You could try the free WealthScript Translator tool (see FAQ: Will Wealth-Lab Developer 6.x recognize my chartscripts?) but I'm afraid that it will stumble on Watchlist* methods: they probably are not supported by WSTL. So, with high certainty it's a manual translation i.e. coding from scratch.

It's been a while since I've been on this site. I like the enhancements! I currently don't have Wealth-Lab but am debating getting it again. I've not read the book, but this is my take on Pairs Trading (from 2009). I'm posting as I'm thinking about what I want to do next (on a full time basis) and want to see if this generates any interest -- the code won't run as several required libraries are missing, but it may spur some ideas on how to proceed.

We sent an Verification
Code to your email address. If you don't receive this code within the next 5 minutes.
Please click here to
request a new code.
New Verification Code sent. Please check your Inbox.Please enter your Email to receive a new Verification Code