home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1997 #3
/
amigamamagazinepolishissue03-1
/
polski_aminet
/
tomasz_janeczko
/
amibroker200pl
/
rexx
/
telestock
/
telestock.doc
< prev
next >
Wrap
Text File
|
1996-04-13
|
3KB
|
85 lines
Amibroker-telestock-reader
(C) 4'96 by M.Baumeister
This Arexx-program is very useful for all user of Amibroker which are getting
their quotes from Telestock (http://www.telestock.co.uk).
It has two advantages in comparison to the ASCII-Import Function of Amibroker
a) You don't have to add the $FORMAT lines to every file you want to insert
b) You can enter quotes for many stocks within one file
Installation
1) Put the 'telestock.rexx' script somewhere in your path
2) Build a file named 'names' (see below) somewhere in your hd (or even
floppy). This file contains the translation table from ticker symbols
to stock names for your stocks.
If you call telestock.rexx, 'names' must be in the current directory
(unless you change the open statement near the beginning)
3) An example 'names' and an example quotings file (ak.ts) are supplied.
Of course they will only work, if you have the same stocks in your
database as me.
Usage
1) Get a file with qoutings from telestock.
This file may not contain any
HTML markup. Use "Save as .... Text" in the netscape browser.
This has been tested only with netscape 2.x and 1.x browsers on a Sun
workstation. Other browsers _may_ format the ASCII-representation of
HTML-pages different, which _may_ lead to an incorrent parsing.
telestock.rexx will probably not work, if this happens.
2) Call rx telestock.rexx <name of your file>
The file 'names' must be in the current directory, the quotings file <name
of your file> needn't to be.
3) If the script complains on an unknown stock "-----------", everything
is okay, it just reached the end of the file (the test routines
don't work)
Other error messages may be:
* Unkown stock -> Check your 'names' file
* Arithmetic error -> The quotings file contained an '-' as closing price.
This happened on a very few quotings and days and I didn't circumvent it
(the parsing is difficult enough)
Solution: replace the '-' in the approprate line by some closing price
(e.g. the low price)
The format of the names File
This file contains the translation table from ticker symbols
to stock names for your stocks. It holds one line per stock consisting of the
Amibroker name of the stock and the telestock symbol. Best look at the
following example:
-----------snip---------
BASF BAS.f
Bayer BAY.f
Deut.Bank DBK.f
---------snip----------
Please consider the following:
- no Tabulators between name and symbol. Just whitespace.
- no spaces _within_ the stock name (of course also none within the symbol)
That were the hottest news from the Amibroker-telestock-clash. I'm Markus
Baumeister (baumeister@informatik.rwth-aachen.de) for ABPU International
News.