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

Re: [amibroker] Adding symbols, correct format?



PureBytes Links

Trading Reference Links

 
this can be modified to suit just adding fullname, like below
 
 

/* change this line according to your data file name */
var filename = "industry_data.txt";

var fso, f, r;
var ForReading = 1;
var AmiBroker;
var fields;
var stock;

/* Create AmiBroker app object */
AmiBroker = new ActiveXObject( "Broker.Application" );

/* ... and file system object */
fso = new ActiveXObject( "Scripting.FileSystemObject" );

/* open ASCII file */
f = fso.OpenTextFile( filename, ForReading);

/* read the file line by line */
while ( !f.AtEndOfStream )
{

r = f.ReadLine();

/* split the lines using comma as a separator */
fields = r.split(",");

/* add a ticker - this is safe operation, in case that */
/* ticker already exists, AmiBroker returns existing one */

stock = AmiBroker.Stocks.Add( fields[ 0 ] );

stock.FullName = fields[ 1 ];
/*stock.IndustryID = parseInt( fields[ 2 ] );*/

}

/* refresh ticker list and windows */
AmiBroker.RefreshAll();

 

--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm

 
On 3/13/06, Ed Cottrell <emc@xxxxxxxxxxxxxx> wrote:
Hi Graham,
 
Are you saying there is a script out there that will do this (add this info) for me? That would be great.
 
-Ed
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Graham
Sent: Sunday, March 12, 2006 5:44 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Adding symbols, correct format?

You need to use script from windows to add fullname and other nformation like industry/sector.
 
 
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm

 
On 3/12/06, Terry <MagicTH@xxxxxxxxxxx> wrote:

Try right-clicking on the Sym bol, choosing Information and entering the long name there. You can access it in code with FullName().

--

Terry

-----Original Message-----
From:
amib roker@xxxxxxxxxxxxxxx [mailto:amib roker@xxxxxxxxxxxxxxx ] On Behalf Of aajohah
Sent: Sunday, March 12, 2006 06:45
To:
amib roker@xxxxxxxxxxxxxxx
Su
bject: [amibroker] Adding sym bols, correct format?

 

I am adding indices to my data base via a watch list

Would like to put the symbol in and the name but can not get it to work.    Maybe my format is wrong?

 

Symbol   (name)

 

What is the correct way?

Thank you

 

 

 

 

 




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS








Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS







Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS