home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
g
/
getquo30.zip
/
GETQUOTE.DOC
< prev
next >
Wrap
Text File
|
1993-01-08
|
8KB
|
174 lines
GETQUOTE.DOC Rev. 3 - Dec. 22, 1992
Clinton D. Huntemann
CompuServe 71247,2065
This program assumes drive C: is where you have the AUTOSIG
directory. (AUTOSIG is available from IBMCOM forum LIB1)
Any comments or suggestions for improvement should be
E-Mailed to the author via CompuServe.
GETQUO.ZIP contains the following files:
TICKER.LST is an example of the list file (you create)
of stocks for which you want AUTOSIG to get
BASICQUOTEs from CompuServe. I would suggest
you sort TICKER.LST when you create it just to
keep it a little more organized. Also, errors in
ticker symbols may screw up subsequent data files
so be careful you use real ones. (Rev. 2 is an
attempt to avoid this.)
TICKER.UPD is an example of the list file corrected by
STRIPPER to eliminate symbols not found on a
previous run.
PROGRAM.CTL is an example of the control file (you
create) used by MAKE_SCR.EXE and STRIPPER.EXE to
locate data and other resources of your system.
Don't include the comments on the right side of
the example file.
GETQUOTE.BAT is an example of a batch file you could use
to start this whole mess.
GETQUOTE.PIF and GETQUO.ICO are examples of a PIF file and
a nice Icon for thost who want to use windows.
ATOSTART.BAT is an example of the batch start file
produced by MAKE_SCR.EXE.
DY920614.SCR is an example of the output of MAKE_SCR.EXE
for a run on June 14, 1992.
DY920614.LOG is an example of the LOG file generated
when ATOSTART.BAT retrieves quotes from CompuServe.
DY920614.DAT is an example of the DAT file generated by
STRIPPER from the LOG file. Stock ticker symbols
are substituted for the Issue names (usually more
useful for further computations).
DY920614.PRN is an example of the printer file generated
by STRIPPER from the LOG file.
MAKE_SCR.EXE is a compiled Fortran program that creates
a set of AUTOSIG compatible files. It reads a
file of stock symbols (TICKER.LST) and creates an
SCR file that is called by ATOSTART.BAT when it
starts AUTOSIG. The names of the SCR and LOG
files are a derivative of the system date so they
can be saved in chronological order.
Since I use this routine in an unattended mode
where a timer turns on my system at 23:00 every
night, I needed a way to skip weekends. This
latest change includes code to skip weekends and
days the market is closed. It tests for the
current day being Sat, Sun, or in a list in file
NODAYS.DAT, and create a do-nothing script file if
it is. If this is a problem, use DATE to
temporarily change the date so the program can run.
But, remember, all the files created will have the
phony date as part of their name.
MAKE_SCR.FOR is the original source code written in UTAH
FORTRAN. I included enough comments to show what
I was trying to do along the way.
MAKE_SCR.LST is the listing produced by the UTAH
FORTRAN compiler.
MAKE_SCR.OBJ is the object code produced by the UTAH
FORTRAN compiler. Use this file if you want to
relink the program into another environment.
NODAYS.DAT is a list of dates to skip processing (i.e.
dates the market is closed).
STRIPPER.EXE is a compiled Fortran program that creates
a set of flat ASCII files from the AUTOSIG log
file DYyymmdd.LOG captured by ATOSTART.BAT and
MAKE_SCR.EXE. It reads the LOG file of raw stock
data and communications junk and filters out all
but what you wanted in the first place. It
creates a DAT file of just Symbols and data, a
PRN file with the names and header info for
printing, and separate symbol files for each
Issue in the LOG file. The names of the DAT,
PRN, and LOG files are a derivative of the system
date so they can be saved in chronological order.
The symbol files are simply appended, so sorting
on the date (last field if run after the market
is closed) should be done separately.
STRIPPER.FOR is the original source code written in UTAH
FORTRAN.
STRIPPER.LST is the listing produced by the UTAH
FORTRAN compiler.
STRIPPER.OBJ is the object code produced by the UTAH
FORTRAN compiler. Use this file if you want to
relink the program into another environment.
CHART.BAT retrieves a history data file (%1), copies it to
INPUT.DAT, runs the plot routine, and resaves the
plot (OUTPUT.CRT) as %1.CRT.
PLOT.EXE creates a simple, normalized, canclestick plot
file from INPUT.DAT (output history file created
by STRIPPER). The file is read for max, min, and
volume and a plot is created to fit on an 80 collumn
ASCII printer. The resulting file (OUTPUT.CRT) is
saved on the local disk.
PLOT.FOR is the original source code written in UTAH
FORTRAN.
PLOT.LST is the listing produced by the UTAH
FORTRAN compiler.
PLOT.OBJ is the object code produced by the UTAH
FORTRAN compiler. Use this file if you want to
relink the program into another environment.
INPUT.DAT is an example of a history data file for General
Electric captured for several months by GETQUOTE.
OUTPUT.CRT is an example of the output of PLOT.EXE for the
General Electric history data file.
Comments about UTAH FORTRAN:
I bought Ian D. Kettleborough's UTAH FORTRAN from Ellis
Computing back in 1986 for about $40. It has served me well
since most of my programming is in the engineering field
where FORmula TRANslation and mathematical computations are
more important than pretty forms and bit manipulation. The
GETQUOTE package does not do many computations since the
primary output from MAKE_SCR is an ASCII script file, and
all that STRIPPER does is sort out trash and make uniform
data files, both tasks for which UTAH FORTRAN is not well
suited. However, being a cheap SOB, I couldn't see buying a
new language compiler just to do this rather trivial task of
preparing data for the next real task of analysing the
stocks.
There are some severe limitations though that UTAH
FORTRAN makes us live with. One is that you can't use
subdirectories in the names of files you open. This can be
compensated for by using the DOS "SUBST" command before you
run the program. I use the file PROGRAM.CTL as a control
file to allow you to customize your machine's configuration.
Simply SUBST a virtual drive letter for the actual d:\path
you want to use for your data and AUTOSIG files. (ATOSTART
dose it for you.)
Where to get a free copy of AUTOSIG:
Look for ATO in the IBM Communications Forum
(GO IBMCOM), Library 1, "Autosig (ATO) [C]". The program
itself is in AUTOSIG.EXE, system requirements in ATOSIG.REQ,
and a users guide in ATODOC.EXE.