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 >
Text File  |  1993-01-08  |  8KB  |  174 lines

  1. GETQUOTE.DOC       Rev. 3  -  Dec. 22, 1992
  2.                               Clinton D. Huntemann
  3.                               CompuServe 71247,2065
  4.  
  5. This program assumes drive C: is where you have the AUTOSIG
  6. directory.  (AUTOSIG is available from IBMCOM forum LIB1)
  7.  
  8. Any comments or suggestions for improvement should be
  9. E-Mailed to the author via CompuServe.
  10.  
  11.  
  12. GETQUO.ZIP contains the following files:
  13.  
  14.     TICKER.LST is an example of the list file (you create)
  15.            of stocks for which you want AUTOSIG to get
  16.            BASICQUOTEs from CompuServe.  I would suggest
  17.            you sort TICKER.LST when you create it just to
  18.            keep it a little more organized.  Also, errors in
  19.            ticker symbols may screw up subsequent data files
  20.            so be careful you use real ones.  (Rev. 2 is an
  21.            attempt to avoid this.)
  22.  
  23.     TICKER.UPD is an example of the list file corrected by
  24.            STRIPPER to eliminate symbols not found on a 
  25.            previous run.
  26.  
  27.     PROGRAM.CTL is an example of the control file (you
  28.            create) used by MAKE_SCR.EXE and STRIPPER.EXE to
  29.            locate data and other resources of your system.
  30.            Don't include the comments on the right side of
  31.            the example file.
  32.  
  33.     GETQUOTE.BAT is an example of a batch file you could use
  34.            to start this whole mess.
  35.  
  36.     GETQUOTE.PIF and GETQUO.ICO are examples of a PIF file and
  37.            a nice Icon for thost who want to use windows.
  38.  
  39.     ATOSTART.BAT is an example of the batch start file 
  40.            produced by MAKE_SCR.EXE.
  41.  
  42.     DY920614.SCR is an example of the output of MAKE_SCR.EXE
  43.            for a run on June 14, 1992.
  44.  
  45.     DY920614.LOG is an example of the LOG file generated
  46.            when ATOSTART.BAT retrieves quotes from CompuServe.
  47.  
  48.     DY920614.DAT is an example of the DAT file generated by
  49.            STRIPPER from the LOG file.  Stock ticker symbols
  50.            are substituted for the Issue names (usually more
  51.            useful for further computations).
  52.  
  53.     DY920614.PRN is an example of the printer file generated
  54.            by STRIPPER from the LOG file.
  55.  
  56.     MAKE_SCR.EXE is a compiled Fortran program that creates
  57.            a set of AUTOSIG compatible files.  It reads a
  58.            file of stock symbols (TICKER.LST) and creates an
  59.            SCR file that is called by ATOSTART.BAT when it
  60.            starts AUTOSIG.  The names of the SCR and LOG
  61.            files are a derivative of the system date so they
  62.            can be saved in chronological order.
  63.               Since I use this routine in an unattended mode
  64.            where a timer turns on my system at 23:00 every
  65.            night, I needed a way to skip weekends.  This
  66.            latest change includes code to skip weekends and
  67.            days the market is closed.  It tests for the
  68.            current day being Sat, Sun, or in a list in file
  69.            NODAYS.DAT, and create a do-nothing script file if
  70.            it is.  If this is a problem, use DATE to
  71.            temporarily change the date so the program can run.
  72.            But, remember, all the files created will have the
  73.            phony date as part of their name.
  74.  
  75.     MAKE_SCR.FOR is the original source code written in UTAH
  76.            FORTRAN.  I included enough comments to show what
  77.            I was trying to do along the way.
  78.  
  79.     MAKE_SCR.LST is the listing produced by the UTAH
  80.            FORTRAN compiler.
  81.  
  82.     MAKE_SCR.OBJ is the object code produced by the UTAH
  83.            FORTRAN compiler.  Use this file if you want to
  84.            relink the program into another environment.
  85.  
  86.     NODAYS.DAT is a list of dates to skip processing (i.e.
  87.            dates the market is closed).
  88.  
  89.     STRIPPER.EXE is a compiled Fortran program that creates
  90.            a set of flat ASCII files from the AUTOSIG log
  91.            file DYyymmdd.LOG captured by ATOSTART.BAT and
  92.            MAKE_SCR.EXE.  It reads the LOG file of raw stock
  93.            data and communications junk and filters out all
  94.            but what you wanted in the first place.  It
  95.            creates a DAT file of just Symbols and data, a
  96.            PRN file with the names and header info for
  97.            printing, and separate symbol files for each
  98.            Issue in the LOG file.  The names of the DAT,
  99.            PRN, and LOG files are a derivative of the system
  100.            date so they can be saved in chronological order.
  101.            The symbol files are simply appended, so sorting
  102.            on the date (last field if run after the market 
  103.            is closed) should be done separately.
  104.  
  105.     STRIPPER.FOR is the original source code written in UTAH
  106.            FORTRAN.
  107.  
  108.     STRIPPER.LST is the listing produced by the UTAH
  109.            FORTRAN compiler.
  110.  
  111.     STRIPPER.OBJ is the object code produced by the UTAH
  112.            FORTRAN compiler.  Use this file if you want to
  113.            relink the program into another environment.
  114.  
  115.     CHART.BAT retrieves a history data file (%1), copies it to
  116.            INPUT.DAT, runs the plot routine, and resaves the
  117.            plot (OUTPUT.CRT) as %1.CRT.
  118.  
  119.     PLOT.EXE creates a simple, normalized, canclestick plot
  120.            file from INPUT.DAT (output history file created
  121.            by STRIPPER).  The file is read for max, min, and
  122.            volume and a plot is created to fit on an 80 collumn
  123.            ASCII printer.  The resulting file (OUTPUT.CRT) is
  124.            saved on the local disk.
  125.  
  126.     PLOT.FOR is the original source code written in UTAH
  127.            FORTRAN.
  128.  
  129.     PLOT.LST is the listing produced by the UTAH
  130.            FORTRAN compiler.
  131.  
  132.     PLOT.OBJ is the object code produced by the UTAH
  133.            FORTRAN compiler.  Use this file if you want to
  134.            relink the program into another environment.
  135.  
  136.     INPUT.DAT is an example of a history data file for General
  137.            Electric captured for several months by GETQUOTE.
  138.  
  139.     OUTPUT.CRT is an example of the output of PLOT.EXE for the
  140.            General Electric history data file.
  141.  
  142.  
  143. Comments about UTAH FORTRAN:
  144.  
  145.     I bought Ian D. Kettleborough's UTAH FORTRAN from Ellis
  146. Computing back in 1986 for about $40.  It has served me well
  147. since most of my programming is in the engineering field
  148. where FORmula TRANslation and mathematical computations are
  149. more important than pretty forms and bit manipulation.  The
  150. GETQUOTE package does not do many computations since the
  151. primary output from MAKE_SCR is an ASCII script file, and
  152. all that STRIPPER does is sort out trash and make uniform
  153. data files, both tasks for which UTAH FORTRAN is not well
  154. suited.  However, being a cheap SOB, I couldn't see buying a
  155. new language compiler just to do this rather trivial task of
  156. preparing data for the next real task of analysing the
  157. stocks.
  158.     There are some severe limitations though that UTAH
  159. FORTRAN makes us live with.  One is that you can't use
  160. subdirectories in the names of files you open.  This can be
  161. compensated for by using the DOS "SUBST" command before you
  162. run the program.  I use the file PROGRAM.CTL as a control
  163. file to allow you to customize your machine's configuration.
  164. Simply SUBST a virtual drive letter for the actual d:\path
  165. you want to use for your data and AUTOSIG files.  (ATOSTART
  166. dose it for you.)
  167.  
  168. Where to get a free copy of AUTOSIG:
  169.  
  170.     Look for ATO in the IBM Communications Forum 
  171. (GO IBMCOM), Library 1, "Autosig (ATO) [C]".  The program
  172. itself is in AUTOSIG.EXE, system requirements in ATOSIG.REQ,
  173. and a users guide in ATODOC.EXE.
  174.