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

RE: [amibroker] Adding symbols, correct format?



PureBytes Links

Trading Reference Links

What I do not understand is why one can not do the following in AB?

 

Have symbol and name in a text file and then import it into a watch list and then have my E-signal feed get the data for the symbol it will not work properly?

If I am wrong then worry but can not get this to work and to me it sounds as if it would be simple.  However I can take out the name and import the symbol into the watch list and I can get the data from E-signal.

 

I found the below from the 2000 newsletter and would think there could be a better simpler way of doing this after 6 years of updates to AB

 

 

Mark

 

 

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Graham
Sent: Sunday, March 12, 2006 7:37 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Adding symbols, correct format?

 

 

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