SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : Greenblatt's Little Book That Beats The Market -- Ignore unavailable to you. Want to Upgrade?


To: Irixmark who wrote (150)8/11/2007 6:03:21 PM
From: Stewart Whitman  Read Replies (2) | Respond to of 218
 
Mark,

I put all the source in a tar file on my website for you to use:

members.cox.net

The scanall.sh script is the main script that is run weekly. If runs a number of scans (mutual fund stock holdings, hedge fund purchases/holdings, index-based scans - piotroski, greenblatt, etc.).

Generally, the index scanners (e.g. scangreenblatt.pl) do the following:


Open an XML result file
For each index passed as an argument
call 'getindex.pl' to get a list of stocks in XML associated with the index
for each stock in the index
run the scan using a scanner (e.g. 'greenblatt.pl').
rank the stocks
output the index results to the XML result file
Close the XML result file


The rank stuff will be found in those index scanners. Other support files translate the xml result file to html files using a template.

I suspect what you want to do is to modify the getindex.pl perl script to get a list of stocks & names from a TSX web site (probably prefixed with .TO or something - something to key off of for the rest of the scripts).

Then in the scanning scripts (e.g. greenblatt.pl, etc.), you would modify the script to go to a particular web site if the '.TO' extension is seen.

Let me know if I can help.

Regards,
Stew