I have script that does various calculations on each stock in a database but it 
needs to know the beginning and end of the database symbol list. Right now I 
have to explicitly tell the script which is the first and last stock in the 
particular database by using:

If (Name() == "^AORD") { .... }
If (Name() == "ZZ") { .... } 

How can I automatically detect which is the first and last stock symbol in a 
given database?   this would be equivalent to the first and last symbol in the 
"All" category (stocks are sorted alphabetically).

Reply via email to