home *** CD-ROM | disk | FTP | other *** search
/ CD Shareware Magazine 1996 December / CD_shareware_12-96.iso / DOS / Comunic / STOCK16.ZIP / STOCK.DOC < prev    next >
Encoding:
Text File  |  1996-08-05  |  23.0 KB  |  547 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.                             THE STOCK EXCHANGE - v1.6
  23.  
  24.              A Stock Market program that uses the Wildcat user record.
  25.  
  26.  
  27.                    (C) Copyright 1995, 96 Sapphire Software  
  28.  
  29.                           Released on August 5, 1996
  30.  
  31.  
  32.                 Written by Scott J. Bradbury of The Coral Reef BBS
  33.                         "A Unique Underwater BBS Experience"
  34.  
  35.                      BBS Support:  (517) 894-0729  Multi-Line
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                      For use with Wildcat! v4.12+ BBS Software
  62.  
  63.  
  64.  
  65.      ■  WHAT IS THE STOCK EXCHANGE?
  66.  
  67.         The Stock Exchange is similar to other stock market type door games
  68.         with one exception.  This program is designed to use fields within
  69.         your Wildcat! BBS user record.  The big advantage to this is that
  70.         you can create custom display files to show your users their stock
  71.         portfolio from anywhere on your system.  The Stock Exchange makes
  72.         use of the @-Codes to display this information.
  73.  
  74.         The original concept of this program came from the System Operator
  75.         of The Chocolate Malt BBS (517-686-6974).  The Sysop set up a
  76.         stock market to help his users earn more "Malt Money".  Malt Money
  77.         is the form of currency on his board and allows users to purchase
  78.         homes, stocks, participate in auctions, lottery, and many other
  79.         contests.  When I set up the city of Atlantis and a form of currency
  80.         I call "Sea-Shells" I decided to write a program to automate the
  81.         purchasing and selling of stocks.  Until this time, all work had been
  82.         done manually by the Sysop.
  83.  
  84.         If you would like to see more of how we have these cities and ideas
  85.         set up you can call my BBS or The Chocolate Malt.  Phone numbers are
  86.         listed under the "Technical Support" section of this documentation.
  87.  
  88.  
  89.      ■  TECHNICAL SUPPORT
  90.  
  91.         Should you have any questions, suggestions, or run into problems
  92.         with this or any Sapphire Software product, you can contact me by
  93.         one of the following methods.  Many of the ideas incorporated into
  94.         our programs are the result of suggestions by users.
  95.  
  96.  
  97.         THE CORAL REEF - My Personal BBS
  98.  
  99.                   The Coral Reef - Node 1  (517) 894-0729   (300-14,400)
  100.                   The Coral Reef - Node 2  (517) 894-5052   (300-14,400)
  101.                   The Coral Reef - Node 3  (517) 894-0413   (300-14,400)
  102.  
  103.         For the most part, I answer my mail on a daily basis so you will
  104.         get a fast reply.
  105.  
  106.         * Note - Calling Node 1 will automatically "trunk hunt" over to
  107.                  the other nodes if it is busy so there is no need to try
  108.                  each number.  They are listed only for reference.
  109.  
  110.  
  111.         FIDONET
  112.  
  113.         Our fidonet address is 1:239/600 and you can FREQ the magic name of
  114.         SAPPHIRE to get a short document listing all our products, cost,
  115.         magic names, etc.
  116.  
  117.  
  118.         MUSTANG SOFTWARE SUPPORT BBS
  119.  
  120.         You can also reach me on the Mustang Software Support BBS.  I
  121.         frequent their system a few times a week so you will get a reply
  122.         but not as fast as if you call my system.
  123.  
  124.  
  125.         INTERNET MAILING
  126.  
  127.         My internet address is "BRADBURY@CRIS.COM" and use this service a 
  128.         few times a week also.
  129.  
  130.  
  131.         MAILING ADDRESS
  132.  
  133.         Last but not least, you can reach me via the postal system.
  134.  
  135.                 Address:
  136.                           Sapphire Software
  137.                           C/O - Scott Bradbury
  138.                           1808 N. Golfview Drive  Apt. #6
  139.                           Essexville, Michigan  48732
  140.  
  141.  
  142.  
  143.      ■  FILES INCLUDED
  144.  
  145.         Your copy of THE STOCK EXCHANGE is distributed in a single compressed
  146.         file.  This one file contains all the files necessary to run this
  147.         program.  If any of the following files are absent from the archive
  148.         you can call The Coral Reef (517) 894-0729 for a complete copy and
  149.         the most current version.
  150.  
  151.         Program and Configuration Files:
  152.  
  153.                 *  STOCK.WCX    - The Stock Exchange
  154.                 *  GENERATE.WCX - Program to Generate Daily Indexes
  155.                 *  STOCK.DOC    - This Documentation
  156.                 *  STOCK.CFG    - Configuration File
  157.                 *  VIEWRPT.WCX  - Program to View Daily Report at Login
  158.  
  159.         Display Files:
  160.  
  161.                 *  HELPMENU.BBS   - Help Menu
  162.                 *  HELP1.BBS      - Help on Purchasing Stocks
  163.                 *  HELP2.BBS      - Help on Selling Stocks
  164.                 *  HELP3.BBS      - Help on the Stock Portfolio
  165.                 *  HELP4.BBS      - Help on Reporting Features
  166.                 *  INFOMENU.BBS   - Information Menu
  167.                 *  INFO1.BBS      - Stats on Stock #1
  168.                 *  INFO2.BBS      - Stats on Stock #2
  169.                 *  INFO3.BBS      - Stats on Stock #3
  170.                 *  STOCKRPT.BBS   - Daily Stock Report Display File
  171.                 *  PROFILE.BBS    - Main Portfolio Display
  172.                 *  BUYMENU.BBS    - Purchasing Menu
  173.                 *  SELLMENU.BBS   - Sell Menu
  174.                 *  BYE.BBS        - "Ending" or "Goodbye" Message
  175.                 *  VOLMENU.BBS    - Title screen for Volume Report
  176.  
  177.         Miscellaneous Files:
  178.  
  179.               *  FILE_ID.DIZ   - File Information
  180.               *  DESC.SDI      - Short Description File
  181.               *  HISTORY.DOC   - History on The Stock Exchange
  182.               *  PRODUCTS.DOC  - Other Products Available by Sapphire Software
  183.               *  WHATSNEW.DOC  - List of New Features in this Version
  184.               *  UPGRADE.DOC   - Upgrade Instructions
  185.  
  186.         There are also many data files and logs that the program will create.
  187.  
  188.  
  189.      ■  EVALUATION POLICY
  190.  
  191.         There are no special "keys" required to make this program work.
  192.         The program will not stop working at any time.  If you do intend to
  193.         use the program, you are encouraged to register it with us.  This
  194.         will unlock all features and remove timed delays.
  195.  
  196.  
  197.      ■  THE CONFIGURATION FILE
  198.  
  199.         00000                   - Registration Number
  200.         Local Telecom, Inc.     - Name of Stock Company #1
  201.         LTI                     - Abbreviation for Company #1
  202.         15                      - Max. Change in Daily Index for Stock #1
  203.         400                     - Max. Value of Stock #1
  204.         1                       - Comment Field Number to use in User Record
  205.         Gano Downs Inc.         - Name of Stock Company #2
  206.         GDI                     - Abbreviation for Stock Company #2
  207.         100                     - Max. Change in Daily Index for Stock #2
  208.         600                     - Max Value of Stock #2
  209.         2                       - Comment Field Number to use in User Record
  210.         Great White Industries  - Name of Stock Company #3
  211.         GWI                     - Abbreviation for Company #3
  212.         20                      - Max. Change in Daily Index for Stock #3
  213.         500                     - Max. Value of Stock #3
  214.         3                       - Comment Field Number to use in User Record
  215.         10                      - Percentage to use for Calculating Bonus
  216.         Y                       - Y = Broker Fee "On" / N = Broker Fee "Off"
  217.         25                      - Amount of Broker's Fee
  218.         S                       - S uses Subscript. Bal and N uses Netmail Bal
  219.         
  220.         Note - Stock #1 is safe and sure.  Stock #2 is risky and fluctuates.
  221.                Stock #3 is moderate between the two previous.
  222.         All lines must be accounted for in the configuration file.  The file
  223.         also has descriptive comments at the end for reference.  These lines
  224.         are ignored by the program and can be left as is.
  225.  
  226.         Line 1:
  227.                  This is your registration number.  Until you register this
  228.                  software there will be a few delays.  Leave this as "00000".
  229.  
  230.         Lines 2, 7, and 12:
  231.                  This is the name of your stock companies 1, 2 and 3
  232.                  respectively.  Each name must be 25 characters or less.
  233.  
  234.         Lines 3, 8, and 13:
  235.                  This is the abbreviation of each stock company.
  236.                  Each abbreviation must be 5 characters or less.
  237.  
  238.         Lines 4, 9, and 14:
  239.                  This line instructs the program as to what the maximum
  240.                  value is for each stock company.  If you enter 100 that
  241.                  will let the program make a stock jump +100 points or
  242.                  fall -100 points.
  243.  
  244.         Lines 5, 10, and 15:
  245.                  This sets the maximum value a stock may attain.  When the
  246.                  value gets this high the program will no longer add points
  247.                  to the index.  It will, however, subtract points if the
  248.                  index is negative for the day.
  249.  
  250.                  You as the Sysop will have to change this value in the
  251.                  VALUE.IDX file.  More on this is referenced later in this
  252.                  documentation.
  253.  
  254.         Line 6, 11, and 16:
  255.                  Enter a number from 1 to 5 on these lines.  This will let
  256.                  The Stock Exchange know where to store the amount of stock
  257.                  shares purchased in each company.  Use 1 for Comment 1,
  258.                  use 2 for Comment 2 and so on.
  259.  
  260.         Line 17:
  261.                  This is the percentage amount for calculating a bonus.  The
  262.                  amount of shares purchased in each company are recorded
  263.                  daily.  The company with the highest amount of purchases
  264.                  will receive a bonus.  This bonus is calculated as the amount
  265.                  of shares purchased times this number.  This value will be
  266.                  added on to the daily index ONLY IF THE INDEX RISES.  If the
  267.                  index is negative or remains even for the day there will be
  268.                  no bonus at all for any company.
  269.  
  270.         Line 18:
  271.                  Inserting a "Y" on this line will turn the Broker's Fee
  272.                  option on.  This will charge the amount indicated on line 19
  273.                  ONCE PER DOOR ENTRY if they make a purchase or sell stock.
  274.                  If a user enters The Stock Exchange to view information,
  275.                  etc., then no fee will be charged.  It's important to note
  276.                  that the program will subtract the amount on line 19 from
  277.                  the user's subscription balance upon entry.  This is to
  278.                  ensure your "broker" gets paid.  The amount will be added
  279.                  to the user's subscription balance if the exit with no
  280.                  purchases or sells being made.
  281.  
  282.         Line 19:
  283.                  This is the amount to charge for the broker's fee mentioned
  284.                  in line 18.  Do NOT include any decimal numbers.
  285.  
  286.         Line 20: S will use the subscription balance and N will use netmail bal.
  287.  
  288.    
  289.    ■  UN-ZIPPING THE ARCHIVE
  290.  
  291.       The first step you need to do is make a directory called STOCK on
  292.       your hard disk.  The program can run any drive.  (Drive C, D, etc.) Unzip
  293.       the archive containing the Stock Exchange files into this newly created
  294.       directory.
  295.  
  296.  
  297.    ■  SETTING UP THE MAIN STOCK.WCX MODULE
  298.  
  299.       Setting up The Stock Exchange is very simple!  You will need to use
  300.       the MAKEMENU program supplied my Mustang Software.  Use this program
  301.       to add a new menu item for the Stock Exchange.  You can add this item
  302.       to any menu you wish.
  303.  
  304.       Once you have chosen a menu to which to add this program you will have to
  305.       select a letter to call the program.  Enter your text on the description
  306.       line for this item.  Choose "RUN WC-CODE PROGRAM" as the "type" of menu
  307.       function you are adding.  Enter the following as the path and filename for
  308.       the parameters:
  309.                         C:\STOCK\STOCK.WCX
  310.  
  311.       This is assuming that you use drive C for your hard disk.  You can replace
  312.       this with any drive.  However, all files must be located in the \STOCK
  313.       directory.  The program will not work properly if located in other areas
  314.       on your hard disk.
  315.  
  316.  
  317.    ■  SETTING UP THE VIEWRPT.WCX MODULE
  318.  
  319.       This is an optional program and does not have to be used.  VIEWRPT will
  320.       simply display the current days stock report to your users.  I use this
  321.       program in my logon sequence so callers can see the report without
  322.       having to enter The Stock Exchange itself.  To do this I just copied
  323.       the VIEWRPT.WCX file to the \WILDCAT directory and renamed it either
  324.       LOGON1.WCX or LOGON2.WCX.  Wildcat will run either of these programs if
  325.       it finds the file in the directory.  You could also set this program up
  326.       as an option on a menu.  The choice is yours.
  327.  
  328.  
  329.    ■  SETTING UP THE GENERATE.WCX MODULE
  330.  
  331.       Set up the GENERATE.WCX module as an event similar to the TREND.WCX
  332.       module.  The Generate program will create your next daily index, figure
  333.       any bonuses for the stock companies, write the new stock report to disk
  334.       and perform a few other functions necessary for the main program to
  335.       operate.
  336.  
  337.  
  338.    ■  DISPLAY FILES
  339.  
  340.       The Stock Exchange was written with customization by the Sysop in
  341.       mind.  To this end, I want to mention that just about all the display
  342.       files can be customized to your personal taste.  The information that
  343.       follows will help explain what some of these files are and where they
  344.       are used in the program.
  345.  
  346.       PROFILE.BBS  - Used on the main menu to display above the caller's
  347.                      stock portfolio.  This file can only be 5 lines long or
  348.       it will force text past the 23 line page length.  A caller will then
  349.       have to press a key at the "[C]ontinue [S]top [P]revious" prompt.
  350.  
  351.       INFOMENU.BBS - This is your information menu.  You can change any of
  352.                      the options listed on this menu.  This way you can put
  353.       any kind of information you want in these bulletins.  Just keep in
  354.       mind that option 1 will call the "INFO1.BBS" file, option 2 will call
  355.       the "INFO2.BBS" file and so on.
  356.  
  357.       HELPMENU.BBS - This is your help menu.  Very similar to the information
  358.                      menu only it's purpose is to give help on the use of the
  359.       program itself.  However, you can change it to your liking.  This menu
  360.       will call the "HELPx.BBS" files where "x" is a number.
  361.  
  362.       STOCKRPT.BBS - This file cannot be changed.  It is created automatically
  363.                      each night when maintenance runs.  You could change it
  364.       but your changes would be overwritten the next time maintenance runs.
  365.  
  366.  
  367.    ■  PROGRAM INFORMATION AND SPECIAL FEATURES
  368.  
  369.       
  370.       COMPINFO.DAT - This file needs to have the symbol for the stock company,
  371.                      the maximum number of shares and the number currently
  372.       owned.  After that, the program maintains the file stats.  A default is
  373.       already in the directory that you should edit the company symbols.  You
  374.       can leave the values as is or change them.
  375.  
  376.  
  377.       DATETIME.DAT - Do not delete this file!  This file contains a number in
  378.                      it which informs the stock program when to run it's
  379.       maintenance routines.  Deleting the file will cause maintenance to run
  380.       more often than necessary.
  381.  
  382.  
  383.       SPLIT.DAT - This file contains three numbers in it.  The first number
  384.                   represents a split value for the stock in company #1, the
  385.       second number for the second company and so on.  When the value of the
  386.       stock in the VALUE.IDX for a company matches it's corresponding value
  387.       in the SPLIT.DAT file a stock split will occur.  A split will cut the
  388.       value in half but double the amount of shares of everyone that has
  389.       invested in the company.
  390.  
  391.       Example:
  392.  
  393.         SPLIT.DAT             VALUE.IDX
  394.         200                     245
  395.         425                     157
  396.         155                     155     
  397.  
  398.       All the people that have invested in company #3 will have their stock
  399.       doubled because the daily index in VALUE.IDX is 155 and we have 155
  400.       setup in the SPLIT.DAT file to be the point when the stock should split.
  401.       Essentially, on the day of the split, they have the same amount in net 
  402.       worth.  But if and when the stock goes up they will be richer because 
  403.       they now own double the shares.
  404.  
  405.       If you do not want to have the stock split you could set the value in
  406.       SPLIT.DAT higher than the maximum values you have set up for each 
  407.       company in the STOCK.CFG.
  408.  
  409.  
  410.       BROKER'S FEE - The broker's fee is an optional choice for the Sysop to
  411.                      use.  This will charge the caller IF they make a
  412.       purchase or sell stocks.  The caller will get charged EVERY TIME they
  413.       enter the door but will only get charged one transaction fee for as
  414.       long as they are in the door.  To ensure the caller does not spend all
  415.       their credits on stocks, the fee (definable by the Sysop) will be
  416.       deducted upon entering the door.  If a purchase or sale is made the fee
  417.       is then used.  If no purchase or sale is made then the amount of the
  418.       fee is added to the caller's subscription balance upon exiting.
  419.  
  420.       This feature is not available until registered.
  421.  
  422.  
  423.       BONUS - Every time a transaction is made the number of shares purchased
  424.               or sold are tallied in a file.  When maintenance runs this file
  425.       is checked to see which stock company had the most sales.  If the index
  426.       for this stock is "UP" then a bonus amount is added to the index and
  427.       the value of the stock will go up even more.  If the index is "DOWN"
  428.       then no bonus is given.  This feature does not check for the next
  429.       highest amount of stocks purchased.  It takes the highest of all three
  430.       stocks and ONLY if the highest is UP will it perform this feature.
  431.       If the index is DOWN it will not check the other companies for a
  432.       bonus.
  433.  
  434.  
  435.       COMMENT AND SUBSCRIPTION BALANCE FIELDS
  436.  
  437.       This program makes use of 3 out of 5 comment fields plus the
  438.       subscription balance field.  You can use comment field 1 - 5 to keep
  439.       track of the amount of stocks each user owns.  The subscription
  440.       balance field is where the program adds and subtracts credits when a
  441.       purchase or sale is made.  Make sure that you use the comment fields
  442.       that do NOT have any existing information in them.  This program will
  443.       overwrite what is currently stored there.  If you use the subscription
  444.       balance for other features you may not be able to use this program.
  445.  
  446.  
  447.    ■  HOW DO I SETUP CREDITS IN THE SUBSCRIPTION BALANCE FIELD?
  448.  
  449.       On my system, I run a lot of contests in which I give out "Sea-Shells"
  450.       for credits.  When callers win contests I put this amount in the
  451.       winning caller's subscription balance.  They can then use this "money"
  452.       to buy a home in our imaginary city of Atlantis, participate in
  453.       auctions, buy stocks, buy cards in our cardshop and many other places.
  454.       If you would like to see how some of these features are set up then I
  455.       suggest you to call my system.
  456.  
  457.       Suggestions for Contests:
  458.  
  459.       - Hold a contest to see who can achieve the highest score in a game or
  460.         several games.  You can determine how many credits to give out per
  461.         contest.  I generally give between 1000 - 4000.
  462.  
  463.       - Post trivia or riddles in a HELLOx.BBS screen and see who can get
  464.         them correct.  Give all correct answers an amount.
  465.  
  466.       - Pick a letter in the alphabet.  All callers who's last name begin
  467.         with this letter and calls on a specified day will receive credits.
  468.  
  469.       - Finally, you could just throw a lump sum into their account and let
  470.         them spend it.  If they run out then that is their mistake.  You
  471.         could see who could earn the most credits by playing the stock market
  472.         in a set amount of time.
  473.  
  474.  
  475.    ■  WARRANTY INFORMATION
  476.  
  477.       THE STOCK EXCHANGE IS DISTRIBUTED AS SHAREWARE.  THE PROGRAM WILL
  478.       WORK WITH THE EXCEPTION OF A FEW FEATURES UNTIL YOU OBTAIN YOUR
  479.       REGISTRATION CODE.
  480.  
  481.       THIS PROGRAM IS GUARANTEED TO DO ABSOLUTELY NOTHING EXCEPT TAKE UP
  482.       DISK SPACE.  USE IT AT YOUR OWN RISK.  NEITHER SAPPHIRE SOFTWARE NOR ANY
  483.       OTHER PERSON INVOLVED IN ITS DISTRIBUTION IS RESPONSIBLE IN ANY WAY,
  484.       FOR ANY DAMAGES RESULTING FROM ITS USE OR MISUSE, DIRECTLY OR
  485.       INDIRECTLY.
  486.  
  487.       THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE STOCK EXCHANGE
  488.       IS ENTIRELY WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME
  489.       THE COST OF ALL NECESSARY SERVICING, REPAIR OR OTHER DAMAGES TO YOUR
  490.       EQUIPMENT, SOFTWARE, OR OTHER PROPERTY.
  491.  
  492.       SAPPHIRE SOFTWARE IS NOT RESPONSIBLE TO YOU FOR DAMAGES, INCLUDING BUT
  493.       NOT LIMITED TO, ANY LOST PROFITS, LOST MONIES, OR OTHER SPECIAL,
  494.       GENERAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE
  495.       OR INABILITY TO USE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR
  496.       DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY THIRD PARTIES
  497.       OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS) OR
  498.       ANY OTHER LOSS EVEN IF YOU HAVE BEEN ADVISED OF THE POSSIBILITY OF
  499.       SUCH DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY.
  500.  
  501.       REGISTRATION WILL REMOVE DELAYS AND ENABLE SOME FEATURES THAT ARE 
  502.       OTHERWISE RESTRICTED.
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.    ■  REGISTRATION INFORMATION
  510.  
  511.       Registration of this program will do two things.
  512.  
  513.                       1.  Remove all delays.
  514.                       2.  Enable the broker's fee option.
  515.                       3.  Encourage me to add more features.  :)
  516.  
  517.       Print out the file REGISTER.DOC and send it to me with a check or money
  518.       order.  NO CASH PLEASE!  Upon receipt of your payment we will setup a
  519.       personal registration number for you to use.  This number is to be
  520.       inserted in the configuration file on line 1.  There are a number of
  521.       ways to obtain your registration number.  Information is provided on
  522.       the registration form itself.
  523.  
  524.  
  525.    ■  ACKNOWLEDGMENTS
  526.  
  527.       I would like to thank the following people for their support and
  528.       help in testing this product and in all my efforts.
  529.       (During both the good and bad times).
  530.  
  531.  
  532.              Tammy Bradbury     - My wife, Co-Sysop, and best friend!
  533.  
  534.              Brian Gano         - Sysop of The Chocolate Malt BBS
  535.                                   (517) 686-6974    Beta Testing Site
  536.  
  537.              Bobbi Gorden       - Coral Reef "Beach Bum" Staff and Support
  538.                                   Beta Tester
  539.  
  540.              Gordon MacQueen    - Coral Reef "Beach Bum" Staff and Support
  541.                                   Beta Tester
  542.  
  543.  
  544.         There are several dozen callers on my BBS that helped by using the
  545.         program and giving me their comments and suggestions.  My thanks to
  546.         all of them as well in the development of The Stock Exchange.
  547.