Library/Economics and finance
Price formation and market dynamics
The model simulates a simple limit-order market.
Category: Economics and Finance Status: Illustrative and uncalibrated. This is a teaching model, not a scientifically validated result.
Mechanism
The model simulates a simple limit-order market:
1. Buyers (green turtles) each have a valuation — the maximum price they are willing to pay. 2. Sellers (red turtles) each have a cost — the minimum price they are willing to accept. 3. Each tick, the best bid (highest valuation) is matched against the best ask (lowest cost). If the bid meets or exceeds the ask, a trade occurs at the midpoint, and both agents leave the market. 4. A fraction of the order book is refreshed each tick (turnover), and all valuations slowly mean-revert toward a fixed fundamental value of 100.
This produces realistic price dynamics: prices fluctuate around the fundamental, with the magnitude of fluctuations controlled by the valuation spread and the speed of reversion.
Controls
| Widget | Meaning | Units | |---|---|---| | n-buyers | Initial number of buyers | agents | | n-sellers | Initial number of sellers | agents | | valuation-spread | Standard deviation of valuations around the fundamental | price units | | turnover-rate | Fraction of the book replaced each tick | fraction/tick | | reversion | Speed at which valuations drift back to the fundamental | fraction/tick | | patience-range | Maximum ticks an order stays in the book before being pulled | ticks |
Monitors and Plots
- Last price — the most recent transaction price.
- Fundamental — the true value (fixed at 100).
- Trades so far — cumulative number of completed trades.
- Buyers / Sellers in book — current order-book depth.
- Price vs fundamental plot — tracks the last price and the fundamental over time.
Assumptions and Limitations
- The fundamental value is fixed and known to the model (not to the agents).
- Agents are risk-neutral and trade only when a profitable match exists.
- There is no strategic behaviour, no information asymmetry, and no market maker.
- The world is small (33×33 patches) and the population is bounded (≤100 agents per side).
- All parameters are arbitrary; the model is not calibrated to any real market.
- Field
- Economics and finance
- Model file
Price-formation-and-market-dynamics-ce70d129df00.nlogox· 41 KB- Controls
n-buyers,n-sellers,valuation-spread,turnover-rate,reversion,patience-range- Reporters
- none recorded
- Procedures
setup,go- Experiment
- none pinned in this file
- Documentation
- 5/7 · 327 words in the Info tab