[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Sector ID



PureBytes Links

Trading Reference Links

Try creating a sector for the mutual funds

 

-----Original Message-----
From: Ara Kaloustian [mailto:ara1@xxxxxxxxxx]
Sent: Tuesday, December 14, 2004 11:34 AM
To: AB-Main
Subject: [amibroker] Sector ID

 

Trying to determine the sector ID of an issue ....

 

Using:

 

Sector_ID   = writeif(sectorID(0) <=63 ,SectorID(1),"None");

 

This works fine for stocks that do have a sector ID defined, but when I look at a mutual fund that does not have a sector definition (QP database), that program crashes.

 

How can I prevent a crash and use proper error trapping?

 

Thanks

 

Ara



Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html






Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Yahoo! Groups Sponsor

Get unlimited calls to

U.S./Canada



Yahoo! Groups Links