JLM Simulator Documentation


Home
Overview
Input File
Daily Reports
Estimates
Order Impact
Parameters
Trace File
WhoDoesWhat
Release Notes
Case Studies
License

JLMSim: Daily Reports Output Description
 

One of the output files produced by the run with input to be found now in

JLMSimInput for Case M23a NrS16NrIT8_1000_50_200NL -1.txt

is

Daily Reports for Case M23a NrS16NrIT8_1000_50_200NL -1.xls

This is the .xls, slightly reformatted, version of a .csv output file.

When the case was run, the input file was named JLMSimInput.txt and was located in the same file as the JLMSim program. JLMSim produced a "carbon copy" of this input file, naming the copy as above with the case description. (See  Input File Documentation.) It is recommended that the researcher use Excel facilities to format the Case…csv file and graph output of particular interest before presenting the results to general audiences. An example of such a reformatted file is presented in the xls file named above.

The present file describes the columns of the Daily Reports for Case…csv file and some recommended formatting to transform it to a more easily read .xls file. Alternatively, you may want to use the Output GUI program that is available in the JLMSimulator Program Group to create price and volume charts and to generate the .xls file automatically. Output GUI provides a quick and easy way to view the general results of a simulation and creates price and volume charts for individual securities as well as the market index. More detailed documentation can be found here: Output GUI Documentation

Let NrS here represent the number of securities in the case. The first NrS + 1 columns of the Case…xls file contain day numbers and security prices, thus: 

Daily Prices and Volumes              
   Day Price[0] Price[1] Price[2] Price[3] Price[4] Price[5] Price[6] Price[7] Price[8] Price[9]
1 200.00 208.12 200.00 208.90 200.00 200.00 200.00 187.39 200.00 207.60
2 194.06 209.92 194.06 208.90 194.06 208.20 194.06 206.17 194.06 208.77
3 188.76 211.18 188.60 210.95 188.96 208.99 188.30 206.17 188.59 210.12
4 187.76 212.55 187.58 212.30 187.97 209.99 186.98 208.34 187.58 211.56
5 186.70 213.95 186.51 213.68 186.89 211.29 185.96 209.52 186.47 213.12
6 185.49 215.62 185.31 215.27 185.72 212.63 184.77 210.78 185.23 214.79
7 184.19 217.36 184.05 217.00 184.43 214.17 183.55 212.13 183.96 216.54
8 182.76 219.27 182.67 218.93 183.01 215.80 182.20 213.71 182.57 218.44
9 181.24 221.35 181.14 220.98 181.46 217.74 180.73 215.46 181.08 220.51
10 179.57 223.58 179.46 223.32 179.74 219.87 179.07 217.32 179.40 222.75

...

For working with this file, it is recommended that the window be frozen (click Window|Freeze Panes) with the cursor at the Day 1/Price[0] cell. This will keep day numbers and headings visible as you move around the file. It is also recommended that NrS columns of price data be formatted to two decimal places as shown above (click Format|Cells select the Number tab, then click Number and OK).

Day number 1 in the printout is the first simulated day, referred to as day 0 within the simulation. The prices shown are end-of-day prices. Thus Price[1] is 208.12 at the end of the day, though it was 200.00 at the start of the day.

You will probably want a plot of prices. To obtain one, "select" the entire price table including column headings by doing the following: Click the heading Price[0]; now hold down the shift key and click the last data entry for the last price. The entire table including its column headings should turn blue, indicating that it is selected. Now click Insert|Chart. Under Chart Type select Line. Click Next, and you will see a preview of your chart. Click Next again and you will be provided with the opportunity to label the horizontal and vertical axes and supply one line of chart title. Supply these and click Next. You will be offered the opportunity to have the chart created as an object or on a worksheet of its own. Select the latter and supply a name for the worksheet. Then click Finish. To add lines to the chart title, click on the chart title in the actual chart. A rectangle will appear around the title, and you can edit the chart title. Here is a link to a sample plot of Daily Prices:




The next two columns of output present equal-weighted (EW) and capitalization-weighted (CW) indices of security prices; e.g.,

 

 EW Mkt CW Mkt
200.96 201.17
200.59 200.84
198.80 199.35
198.98 199.67
199.12 199.97
199.28 200.31
199.45 200.69
199.62 201.13
199.85 201.67
200.06 202.27

Instructions for formatting these two columns, as above, and for obtaining a plot of them, are the same as for the individual price series.

The next NrS columns of output show volumes for each day. The following column displays total daily volume. After reformatting they appear in the Daily Reports for Case...xls file thus:

Vol[0] Vol[1] Vol[2] Vol[3] Vol[4] Vol[5] Vol[6] Vol[7] Vol[8] Vol[9] ... Tot Vol
0 287 0 702 0 0 0 5,724 0 702 23,372
0 11,038 0 67,336 0 30,693 0 34,533 0 796 236,658
0 497 0 8,980 0 175 0 19,180 0 864 31,706
0 346 0 1,958 0 0 0 28,301 0 913 33,966
0 269 0 977 0 0 0 28,919 0 788 34,287
0 284 0 799 0 0 0 19,693 0 799 24,761
0 2,074 0 2,555 0 0 0 19,347 0 2,555 34,849
0 255 0 728 0 0 0 14,207 0 728 18,931
0 247 0 952 0 0 0 13,808 0 708 18,857
0 243 0 719 0 0 0 14,877 0 710 19,926


The Daily Reports for Case…csv file does not include commas in its numbers. We recommend reformatting the spreadsheet to include commas. To do this, select the numbers in question by clicking on the upper left-most number, holding down the shift key and clicking on the lower right-most number. Click on Format|Cells. On the Number tab, under Category select Custom, then under Type select #,##0. Click OK.

The zero volumes shown above, at the beginning of the run, for securities numbered 0, 2, 4, … reflect the fact that their initial prices are out of line. The "anchoring rules" used in the simulator (as described in the documentation of the input file) prevent prices from moving instantly to equilibrium levels. Substantial trading in these even-numbered securities has started by about day 15. 

You can create a plot of Daily Volume in a similar fashion as described above for Daily Prices. Here is a sample Daily Volume chart:



The next (3 times NrS) columns describe the Buy Book, i.e. outstanding purchase limit orders; the following (3 times NrS) columns describe the Sell Book, thus:

Buy Book                
Size[0] Low[0] Hi[0] Size[1] Low[1] Hi[1] Size[2] Low[2] Hi[2]
0 0.00 0.00 1,547 199.94 208.12 0 0.00 0.00
0 0.00 0.00 1,046 205.72 209.92 0 0.00 0.00
0 0.00 0.00 1,207 206.96 211.18 0 0.00 0.00
0 0.00 0.00 1,463 208.30 212.55 0 0.00 0.00
0 0.00 0.00 1,480 208.80 213.95 0 0.00 0.00
0 0.00 0.00 1,521 208.80 215.62 0 0.00 0.00
0 0.00 0.00 1,471 208.80 217.36 0 0.00 0.00
0 0.00 0.00 1,472 209.92 219.27 0 0.00 0.00
0 0.00 0.00 1,518 211.18 221.35 0 0.00 0.00
0 0.00 0.00 1,543 212.55 223.58 0 0.00 0.00
               
                 
Sell Book                
Size[0] Low[0] Hi[0] Size[1] Low[1] Hi[1] Size[2] Low[2] Hi[2]
1,323 194.06 204.00 0 0.00 0.00 1,323 194.06 204.00
1,356 188.76 197.94 0    -1.#J     1.#J 1,356 188.60 197.94
1,464 187.76 192.54 0    -1.#J     1.#J 1,464 187.58 192.37
1,528 186.70 191.52 0    -1.#J     1.#J 1,528 186.51 191.33
1,588 185.49 190.43 0    -1.#J     1.#J 1,588 185.31 190.24
1,649 184.19 189.26 0    -1.#J     1.#J 1,649 184.05 189.08
1,651 182.76 189.26 0    -1.#J     1.#J 1,651 182.67 189.08
1,657 181.24 188.76 0    -1.#J     1.#J 1,657 181.14 188.60
1,672 179.57 187.76 0    -1.#J     1.#J 1,672 179.46 187.58
1,666 177.70 186.70 0    -1.#J     1.#J 1,666 177.59 186.51


If the pane was frozen as recommended previously, day numbers would appear on the left as you examine these Buy Book and Sell Book numbers. The first row of numbers under the Buy Book heading summarizes the state of outstanding purchase limit orders for each security at the end of the first day. Three items of information are given for each security. The first is the number of purchase limit orders outstanding as of the end of the day. This item is labeled "Size." This refers to the "size" of (number of orders in) the set of purchase orders. It is not the sum of the sizes of the orders therein. The second and third items provided for each security are the values of the lowest and highest bid outstanding. If the set of outstanding limit orders is empty, Low and Hi bid appear either as 0.00 or as some meaningless combination of characters (1.#J or -1.#J).

Similar information is supplied concerning the Sell Book for each security. We see above, for example, that as of the end of the first trading day there were 1,323 offers to sell Security 0, ranging in offer price from $194.06 to $204.00. There were no bids to buy Security 0. Similarly, as of the end of the first day, there were bids but no offers for Security[1], and offers but no bids for Security[2]. Later in the simulation it is common to have both bids and offers for the same security on the books.

The numbers shown above have been reformatted from the way they appeared in the Daily Reports for Daily Reports for Case...csv file. Perhaps the easiest way to reformat all these cells is to first select all of them and format them all as having two decimal places; then select all of the Size columns and format them as Custom #,##0. (To select an entire table of numbers, click on the upper left entry, then hold down the shift key and click on the lower right entry. To select a column of numbers, click on the letter at the top of the column that identifies the column. To select several columns hold the Control key down as you select each in turn. With all the Size columns selected, click on Format|Cells. On the Number tab, under Category select Custom, then under Type select #,##0. Click OK.

The next ten columns present macro information about the end-of-day status of the simulated system.

Total
Stock Value
Total
Lending
Total
Borrowing
Total
Bad Debt
  WDrawals
Due
6,672,064,024 13,723,206 17,393,012 0 120  
6,659,551,647 36,300,296 36,546,264 0 257  
6,600,330,548 51,909,229 39,412,778 0 405  
6,606,099,106 63,340,570 40,709,232 0 417  
6,610,996,156 66,328,989 41,420,370 0 481  
6,616,245,959 74,901,803 41,099,513 0 550  
6,621,744,765 83,475,501 48,562,553 0 772  
6,627,575,574 84,683,211 55,804,868 0 768  
6,634,921,148 93,366,186 62,779,159 0 891  
6,642,183,721 98,177,269 87,003,476 0 851  
         
         
Lend
 
Rate
Borrow
Rate
 Acc Int
Rcvd
Acc Int 
Paid
Rebates 
Rcvd
0.03 0.06 0 0 0
0.03 0.06 1,715 4,348 0
0.03 0.06 6,253 13,485 0
0.03 0.06 12,742 23,338 0
0.03 0.06 20,659 33,515 0
0.03 0.06 28,950 43,870 0
0.03 0.06 38,313 54,145 0
0.03 0.06 48,747 66,286 0
0.03 0.06 59,333 80,237 0
0.03 0.06 71,004 95,932 0


Except for the Lend Rate and Borrow Rate, if these columns are to be viewed or displayed for the particular run they should be put into #,##0 format. See formatting instructions for volume statistics above.

The current model (M23a) starts all investors fully and equally invested in all securities, except that security holdings are rounded to integral numbers of shares, possibly resulting in small cash holdings or amounts borrowed, if security holdings don't add up to the randomly drawn initial wealth. Cash may be lent to or borrowed from "the broker" at the current borrow and lend rates. These may change over time, as described in  Input File Documentation. As of the end of day one of the current run, the value of all securities exceeded 6.6 billion dollars; cash lent to and borrowed from the broker equaled approximately 13.7 and 17.4 million dollars, respectively; during the first ten days of simulation there was no bad debt and less than $1,000 of withdrawals due (requested but not paid); the lend rate and borrow rate were 3 and 6 percent, respectively. The accumulated interest received from the broker and paid to the broker since the start of the simulation reach about $71,000 and $96,000 by day ten. Accumulated short rebates received were negligible. As explained in the Input File Documentation, the daily interest rate is the "annual" interest rate divided by the number of trading days in the year. In the current model, M23a, there are twenty trading days in each of the twelve months of the year.

The final columns of the Case…csv file present account status information concerning investors of each of the Investor Templates.

Status Summary for Investors of Template 0        
Total[0]  OK[0]  Active[0]  Poor[0]  MC[0]  Defunct Avg   WT/W0[0] SD  WT/W0[0] Max WT/W0[0]
1000 1000 992 8 0 0 .992 .008 1.020
1000 1000 989 11 0 0 .990 .012 1.024
1000 1000 986 14 0 0 .993 .015 1.040
1000 1000 987 13 0 0 .994 .016 1.048
1000 1000 984 16 0 0 .995 .019 1.051
1000 1000 985 15 0 0 .995 .020 1.056
1000 1000 981 19 0 0 .996 .022 1.062
1000 1000 980 20 0 0 .997 .023 1.073
1000 1000 981 19 0 0 .998 .025 1.073
1000 1000 980 20 0 0 .999 .026 1.085

The first of these columns shows, for each Investor Template, the total number of investors of that template; the second shows how many of these are currently OK, as of the end of the day; that is, how many are not defunct nor subject to a margin call. The next two columns break down the OK investors into those that are "Active" versus those that are "Poor," namely, those whose wealth is at least equal to the following input parameter, versus those whose wealth is less:
 
Small Purchase Slack  : 1000.0

The next column shows how many investors of the template are currently subject to a margin call; the next, how many are defunct. The last three columns for this template show the average, the standard deviation and the maximum of current wealth divided by initial wealth among investors of this template. In this calculation, investors with negative wealth, as well as those who are defunct, are counted as having zero wealth.

Back to Top


© 2009 Jacobs Levy Equity Management. All rights reserved.
For problems or questions regarding this website contact JLM_Sim@jacobslevy.com.
Last updated: June 30, 2005