Legacy scan script not working - non-whitespace error?
Author: kephin
Creation Date: 9/20/2015 10:30 PM
profile picture

kephin

#1
Hi, I have some old scans that worked before and I tried to put them into the WL strategy but am getting an error I don't understand. This is probable trivial but I'm a novice programmer so v difficult for me. I have tried to attach a screen grab with my code and the error message is at the bottom, but there's no option on the board above. Error 'Preprocessor directives must appear as the first non-whitespace character on a line'.

totally confused. Code below..

Thanks guys

CODE:
Please log in to see this code.


profile picture

KEVINP

#2
My guess is that old code like this does not work in the new version of WL Pro 6.8. You might have to convert the code to C#.
profile picture

Eugene

#3
kephin,

Please see the FAQ > Migration from previous versions. It's a good habit to start by reading the FAQ since it's at your service since 2008.

For your record, we stopped supporting translation of legacy code many years ago. Each fruit has its own season.
profile picture

kephin

#4
OK thanks. I found a C# porgrammer - hopefully he can help. Should I ask him to translate/re write the scanscript code above into C#? Will he understand what that means? He asked me what platform is used and I said Wealthlab and sent him a link to your site. Is there any link ( I have looked at the one above and for general info) that would spell out exactly how he needs to write the C#?
I don't understand programming - which should be obvious - so help in explaining to him what to do would be very useful,
profile picture

kephin

#5
Does this translator tool still work (highlighted in your FAQ section)?
profile picture

Eugene

#6
Try it and you shall find out. Sorry, no support is being provided for WSTL and translation of legacy scripts.
profile picture

Eugene

#7
The preferred way is to rewrite old code, if possible. Make sure you've read the WealthScript Programming Guide > Techniques > Creating a Screener. Here's something to start with for you and your programmer:

CODE:
Please log in to see this code.
profile picture

kephin

#8
Thanks Eugene. I appreciate that you can't personally answer every question but you are always helpful in pointing the way. I have tried to find someone to help me and the first barrier is them ramping up on what WL is etc. So again, this is helpful. Thanks