home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / BF / BF023A.ZIP / SMPRUPD2.HLP < prev    next >
Text File  |  1989-02-15  |  7KB  |  129 lines

  1. SPECIFICATION OF ASCII FILE FORMAT - RELEASE 2.54                   PAGE 1 OF 6
  2.  
  3. The data to be "imported" must be in ASCII (say "askee") format, because this
  4. is a universal format which can be understood by most communications, spread-
  5. sheet and database programs.  ASCII is a standard which describes the bit pat-
  6. terns used for computer storage of individual letters, digits, puncutation and
  7. other special characters.  For example the capital letter "A" has the bit pat-
  8. tern 01000001.  Most personal computers can recognize ASCII.  Textual informa-
  9. tion, such as what you are reading now, is usually stored in ASCII format.
  10.  
  11. Numbers must be in a binary format before they can be used in calculations by a
  12. computer.  The Stock Charting System stores volume, prices, dates and other in-
  13. formation in a binary format.  Therefore, numbers in ASCII must be "translated"
  14. to binary before they are useful for calculations.
  15.  
  16. On the ASCII input file, the lines can be in any order.  The program looks for
  17. and processes only those individual lines which contain valid data. Lines which
  18. contain column headings, explanatory information, advertising, communications
  19. protocol and other things are ignored.
  20.  
  21.  
  22.  
  23.  
  24. SPECIFICATION OF ASCII FILE FORMAT FOR UPDATING CURRENT PRICES      PAGE 2 OF 6
  25.  
  26. The first data item the program looks for on each line is a valid stock symbol.
  27. If this symbol does not exist in the index file, or if there is no correspon-
  28. ding price history file, the line is ignored.  Otherwise the program scans that
  29. same individual line from left to right and looks for valid data items.  If the
  30. required data items are found, they are converted to binary format.  The number
  31. values are checked for "reasonableness" and for proper relationship, for exam-
  32. ple high or ask >= closing price >= low or bid.  ( >= means "greater than or
  33. equal to".)  Any error will cause that line to be discarded.
  34.  
  35. Data items must be separated by blank spaces or other non-numeric characters.
  36. Either fractional or decimal values are acceptable. Fractions must be separated
  37. from their corresponding whole numbers by one and only one blank space.
  38.  
  39. The program will ignore characters such as * to indicate ex-dividend.  It will
  40. also ignore any quote marks or commas that may be used to separate data items.
  41. Thus, it will accept data in the CSV, or comma-separated value, format which is
  42. used by some database programs.  It is the responsibility of the user, in the
  43. process of using the external communications or other program of his or her
  44. choice, to make sure the required data items are available.
  45.  
  46.  
  47. SPECIFICATION OF ASCII FILE FORMAT FOR UPDATING CURRENT PRICES      PAGE 3 OF 6
  48.  
  49. Here are some examples of acceptable data, in order by stock symbol, high, low,
  50. close and volume:
  51.  
  52.          IBM   *120        109 3/4    110 1/2   110375   (* is ignored)
  53.          "SGAT",15.25,14,14.875,56259   (CSV format)
  54.          fg   31.125 29 30.5 4075   (lowercase stock symbol is OK)
  55.  
  56. The prompt you were responding to before the Help screens is necessary to
  57. specify the sequence in which data items appear in the file you are "importing"
  58. into the Stock Charting System.  This sequence may vary, depending on what
  59. source the data comes from.  The required data items must be in the same
  60. sequence on each line on which they appear.
  61.  
  62. Each required data item is identified by a letter of the alphabet, such as A
  63. for ask or high, B for bid or low, etc.  The sequence in which data items
  64. appear in the input is specified by typing those letters in a corresponding
  65. sequence, for example ABCV for high-low-close-volume.  If you don't know the
  66. sequence, you can find out from the documentation for the program that created
  67. the file, or by visual inspection after displaying the file on the screen or
  68. printer.  Usually the program that created the file can also display it.
  69.  
  70. SPECIFICATION OF ASCII FILE FORMAT FOR UPDATING CURRENT PRICES      PAGE 4 OF 6
  71.  
  72. To skip over a data item you don't want to use, type the letter "R" if it is a
  73. stock price (ask/bid/last/open/etc.); otherwise type the letter "S". In general
  74. you can use "S" to skip any data item, UNLESS it may contain a number with a
  75. fractional value such as 2 11/16.  "S" skips anything delimited by spaces or
  76. double quotes, so it won't work on fractions.  That's why you have to use "R"
  77. to consistently skip over numeric values that may contain fractions.  Either
  78. "R" or "S" will work with whole numbers and decimal values.
  79.  
  80. For example when receiving current quotes from Dow Jones Information Services,
  81. the data items are in order by symbol, bid/close, ask/open, high, low, last,
  82. volume. The "bid/close" is the previous day's closing price and "ask/open" is
  83. today's opening price, which the program does not use.  The current day's clos-
  84. ing price is in the column labelled "last".  Therefore, you type the letters
  85. PRABCV to specify the data item sequence.  Remember, the program assumes the
  86. stock symbol is the first data item on each line - you don't specify that.
  87.  
  88. Use S instead of R to skip a field such as the time of day.
  89.  
  90. Use V for volume in hundreds (the normal case).  Otherwise use U.  Which one
  91. to use can only be determined by inspecting the data.
  92.  
  93. SPECIFICATION OF ASCII FILE FORMAT FOR UPDATING CURRENT PRICES      PAGE 5 OF 6
  94.  
  95. Not all of the aforementioned data items must be present.  The program can use
  96. the ticker symbol, the current volume, high, low and close, and the previous
  97. close.  However the only items that absolutely must be available on each line
  98. are the ticker symbol and either the current closing price (or net asset value)
  99. or the ask and bid prices.  If the ask and bid prices are present, but not the
  100. closing price, the closing price is set to the bid price.  If only the closing
  101. price is present, the high and low are set equal to the close.
  102.  
  103. Data items that appear in the input data after the last item you want do not
  104. have to be specified.  For example, assume you want to pick up only the current
  105. closing price, and that each input line contains ticker symbol, previous close,
  106. current high-low-close and volume.  In this case you would specify RRRC.  The
  107. volume would be ignored.  Remember the program always looks for the ticker
  108. symbol first, regardless of what numeric data items you specify.
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116. SPECIFICATION OF ASCII FILE FORMAT FOR UPDATING CURRENT PRICES      PAGE 6 OF 6
  117.  
  118. After the "translation" process is finished, the data is shown on the screen
  119. and you can "browse" through it.  If you didn't get any data at all, or you got
  120. only one or two lines, the most likely cause is the data items are not in the
  121. same order you specified.  You should visually inspect both the incoming ASCII
  122. data and the resulting Stock Charting System data to make sure everything is
  123. reasonable and hopefully correct.  Glitches on the telephone line (when re-
  124. ceiving data through a modem), or garbage in the data, could cause information
  125. to be lost in the translation process.  If you have persistent problems, there
  126. is a slight possibility that you might have to use a word processor or text
  127. editor to edit the ASCII data file to get rid of garbage, before "importing" it
  128. into the Stock Charting System.
  129.