Modeling Order Flow to Produce Random Walks in Trade Prices
Summary
The document discusses how to simulate trade prices that behave like a random walk. One answer recommends modeling the bid-ask spread and using Poisson or Hawkes point processes for order arrivals and cancellations. A price move can occur when the queue at the best bid or ask is depleted. The cited research is presented as guidance for modeling order-book dynamics at different time scales and relating volatility to spread and order flow.
A second answer suggests that market orders should arrive randomly and in roughly balanced buy and sell directions, with variable sizes, while limit orders are smaller on average and also have variable sizes. It argues that best-quote queues must sometimes be exhausted for prices to move. These are modeling suggestions rather than a demonstrated algorithm or proof that a particular setup yields a random walk; behavior depends on order-flow assumptions and may emerge only over a longer simulation.
Key ideas
- Model order arrivals and cancellations with point processes such as Poisson or Hawkes processes.
- Track best-bid and best-ask queue depletion as a trigger for price changes.
- Represent the spread and order-flow dynamics explicitly in an order-book simulation.
- Random, balanced market-order flow and variable order sizes may allow quote queues to be exhausted.
- The proposed approaches are guidance, not a guarantee of random-walk behavior.
Tags
Full text
# What sort of order submission strategy would result in a random walk of trade prices? # What sort of order submission strategy would result in a random walk of trade prices? I have written a simulation that matches buy and sell orders, keeps track of an order book and simulates trades. My first pass at order submission was to generate random orders around the bid/ask spread. This does not produce a random walk in trade prices. What happens is the orders are distributed evenly but around the bid/ask spread they get traded out but beyond this they start clumping together thereby forming 'price resistance'for want of a better word. Is there an algorithm I can use that will result in a random walk for trade prices? ## Answer by lehalle (score 4) https://quant.stackexchange.com/a/3710 You have intense academic research on orderbook dynamics simulations, just cite: - High Frequency Simulations of an Order Book: a Two-Scales Approach by: Charles-Albert Lehalle, Olivier Guéant, Julien Razafinimanana, In Econophysics of Order-Driven Markets (2010) edited by: F. Abergel, B. K. Chakrabarti, A. Chakraborti, M. Mitra - The Price Impact of Order Book Events, by Rama Cont, Arseniy Kukanov, Sasha Stoikov (Arxiv 2011) (1) is a generic survey, (2) provides you a way to build consistent simulations and different scales (i.e. controlling the volatility, the bid-ask spread and their relation along the whole day), (3) is more local but allow to simulate a consistent way the order flow dynamics and the price one. One simple way to improve you simulations is to: - have a model for the bid-ask spread - choose Point processes (Poisson or better: Hawkes) to model the input and output in the queues - use Rama's model to generate a price: when a queue (Bid or Ask) equals zero, move the price (down or up) If you want to have proofs that the diffusive limit of a point process will be a Brownian motion, you can read for example: - Price Dynamics in a Markovian Limit Order Market, by Cont, Larrard - using order flow model - Modeling microstructure noise with mutually exciting point processes, by E. Bacry, S. Delattre, M. Hoffmann, J.F. Muzy - for Hawkes processes use ## Answer by TanXiaojun (score 0) https://quant.stackexchange.com/a/3686 Analyzing this question theoretically, I think the following strategy will result in a random walk. - the average size of limit orders is much smaller than the average size of market orders; - the size of market order is random, and subjects to a kind of distribution; - market buy orders and market sell orders arrive at random but evenly; - the size of limit order subjects to a kind of distribution. I do not know your strategy by detail, so I am not sure if your have considered the above items already. But by guess, it may be the first requirement that bothers you. Too many limit orders on the best-bid / best-ask seems tend to prevent market prices from change. In fact, as long as limit orders at best-bid / best-ask have the opportunity to be exhausted, the simulation strategy will generate a random walk, you just need a longer time to watch the price to walk away. Any way, it can still be called a "random walk".
Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.