Hi Andy,
You could use the new watchlist format available in v4.96 that allows you to store an unlimited amount of watchlists as .tls files - just convert your CSV files into one file per sector. Then you could write some simple AFL to figure out which watchlist(s) the security is a member of. Alternatively, you could reformat the CSV file and import it into AmiBroker in the form of: $NOQUOTES 1 $OVERWRITE 1 $AUTOADD 0 $SEPARATOR , $FORMAT Ticker,Industry Then each subsequent line has the ticker and industry ID on it. Lastly, you could consider using a data vendor that does all of this for you automagically within AmiBroker. Best regards, Richard Dale. Norgate Investor Services - Premium quality Stock, Futures and Foreign Exchange Data for markets in Australia, Asia, Canada, Europe, UK & USA - www.premiumdata.net <http://www.premiumdata.net/> From: foginthehills [mailto:[EMAIL PROTECTED] Sent: Thursday, 31 May 2007 7:16 AM To: [email protected] Subject: [amibroker] Re: Amibroker file format? Thanks very much. I am trying to figure out how to make industry sector available as a field against each stock in Amibroker. My data feed arrives in Metastock format which doesn't have such a field. (I have the industry sector information in Excel/CSV format). I want to be able to determine the sector of any stock from within AFL. Any ideas on how to do this? You mentioned the SQL interface, are there any relevant examples of this for sector or similar? Andy (aka Fog)
