Probability of Stop-Limit Order Execution
Ziyi Zhu / March 14, 2024
3 min read • ––– views
This article explores the dynamics underlying a stop-limit order and attempts to calculate its probablity of execution under a geometric Brownian motion.
Stops vs limits
A stop order is an instruction to trade when the price of a market hits a specific level that is less favourable than the current price. On the other hand, a limit order is an instruction to trade if the market price reaches a specified level more favourable than the current price.
There is no reason to only use one or the other type of order – both are extremely useful tools for a trader. In fact, some platforms go so far as to combine both orders into a single ‘stop-limit order’. This would enable traders to predefine their conditions for trading, entering a trend at a certain price level and exiting the trade once they’ve taken a certain amount of profit. Therefore, if we can understand the probability of a stop order getting triggered as opposed to a limit order, we can then estimate the expected return of a single stop-limit order.
Brownian motion with two absorbing boundaries
A geometric Brownian motion (GBM) is a continuous-time stochastic process in which the logarithm of the randomly varying quantity follows a Brownian motion (also called a Wiener process) with drift. The stock price is said to follow a GBM if it satisfies the following stochastic differential equation (SDE):
is a Wiener process or Brownian motion, and the expected return and the standard deviation of returns (volatility) are constants. For an arbitrary initial value the above SDE has the analytic solution:
Suppose that and are absorbing boundaries and , we would like to know the probability that will be absorbed at the boundary, i.e. the probability that hits without ever hitting .
Optional stopping theorem
In probability theory, the optional stopping theorem says that a martingale stopped at a stopping time is a martingale, i.e. the expected value of a martingale at a stopping time is equal to its initial expected value. Therefore, we can take advantage of the exponential martingale:
Applying a change of variables to the analytical solution for :
where . Substituting with into the exponential martingale:
To remove the terms including time , we can set :
Let be the probability that the Brownian motion hits before . Since by optional stopping theorem, we have
where , and . Hence, we can simply the equation to get