View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Order book simulation

3.0 | 2 ratings Rate this file 14 Downloads (last 30 days) File Size: 33.1 KB File ID: #23514 Version: 1.0
image thumbnail

Order book simulation



01 Apr 2009 (Updated )

(a naive artificial stock market)

| Watch this File

File Information

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.


Scrolling Display and The Object Of My Callback inspired this file.

MATLAB release MATLAB 7.7 (R2008b)
MATLAB Search Path
/Order Book
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
24 Jun 2016 ben

ben (view profile)


When I tried to run OrderBookDemo.m I encountered the following error message:

The class Settings has no Constant property or Static method named 'TraderPeriod'.

Does anyone can help on this problem?

Comment only
10 Sep 2015 Wang Shiran

20 May 2013 Mirko

Mirko (view profile)

my virusscanner alarmed me about a possible Virus in the pdf document and in a temp file creaded from the pdf.

Please check the pdf before you open it.

Comment only
04 Apr 2016 1.0


Contact us