Be the first to rate this file! 11 Downloads (last 30 days) File Size: 33.11 KB File ID: #23514
image thumbnail

Order book simulation

by Dimitri Shvorob

 

01 Apr 2009

(a naive artificial stock market)

| Watch this File

File Information
Description

Submission presents a set of classes that can be used to simulate operation of an exchange order book allowing market and limit orders. My focus has been on overall design - as adapted to Matlab - and a few implementation details have been skipped; notably, limit orders are not crossed with one another.

Please see the included PDF and run OrderBookDemo.m to test the code. A ‘live’ price-volume chart will appear and run for one minute; once the simulation concludes, you can inspect order and trade histories by examining active objects. You will need to re-start Matlab to re-run the simulation.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Scrolling display, The Object of My Callback

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
order book exchange continuous double auction Dimitri Shvorob 01 Apr 2009 14:14:45

Contact us at files@mathworks.com