Abstract
In this paper, we study the optimal execution problem by considering the trading signal and the transaction risk simultaneously. We propose an optimal execution problem by taking into account the trading signal and the execution risk with the associated decay kernel function and the transient price impact function being of generalized forms. In particular, we solve the stochastic optimal control problems under the assumptions that the decay kernel function is the Dirac function and the transient price function is a linear function. We give the optimal executing strategies in state-feedback form and the Hamilton‐Jacobi‐Bellman equations that the corresponding value functions satisfy in the cases of a constant execution risk and a linear execution risk. We also demonstrate that our results can recover previous results when the process of the trading signal degenerates.
1. Introduction
It is known that when traders execute a large order in a short time, it will cause severe effect on the stock price in the stock market. This effect is called the price impact or the market impact in academia. The price impact is often adverse for traders because they liquidate or build a large position in a short time with worse average price compared to the initial price. Hence, traders or financial institutions often bear an extra cost due to the price impact except for some fixed cost charged by exchange. Consequently, the topic on how to reduce the cost caused by the price impact has received much attention.
The problem about reducing the cost caused by the price impact is always expressed as an optimal execution problem in the literature, i.e., looking for an optimal executing strategy to minimize the expected cost due to the price impact. Plenty of works have been done on this topic. Bertsimas and Lo [1] studied a discrete time model of price impact with linear impact function and derived dynamic optimal trading strategies to minimize the expected cost. Almgren and Chriss [2] considered the continuous time case of Bertsimas and Lo [1]. They choose the trade-off between the expectation and the variance of the impact cost as the optimization objective and then gave the explicit solution by the variation method. In addition, they proposed the concept of L-VaR. Almgren [3] further considered nonlinear impact functions and added risk terms in the temporary impact process on the basis of Almgren and Chriss [2]. Obizhaeva and Wang [4] (an early work published later) studied the optimal executing strategy given the dynamic structure of the demand and supply of the equity. Alfonsi et al. [5] extended the model of Obizhaeva and Wang [4] by allowing for a time-dependent resilience rate with more generalized equilibrium dynamics for bid and ask price. Alfonsi et al. [6] considered more general shape of the LOB on the basis of Obizhaeva and Wang [4] and gave the explicit form of optimal executing strategies. They also illustrated the robustness of the optimal strategies with respect to the shape function and resilience type. Gatheral and Schied [7] assumed the asset price followed a geometric Brownian motion and gave the explicit optimal executing strategy with risk aversion. Almgren [8] assumed the market liquidity and volatility were stochastic and time varying, then proposed the HJB equation of the optimal execution problem, and tried to solve it numerically. Gatheral et al. [9] studied the optimal execution problem in the frame of transient price impact model. Under the assumption of linear impact function, they characterized the optimal executing strategy as the solution of a generalized Fredholm integral equation of the first kind. They also studied the existence problem. Cheridito and Sepin [10] studied the discrete time case of the price impact model with stochastic volatility and stochastic market liquidity. Schoneborn [11] discussed three approaches that remedied the flaw of the optimal executing strategy under the mean-variance framework that big order and small order have the same executing pattern. Cartea and Jaimungal [12] studied the optimal execution problem by taking into account the order flow of all other agents and gave the explicit solution with linear impact function. Cheng et al. [13] considered the execution risk under the framework of Almgren and Chriss and solved the optimal execution problem with different risk aversions. Jin [14] studied the optimal execution problem with an optimization objective of loss probability and talked about the liquidity adjusted VaR. Curato et al. [15] studied the transient impact model with nonlinear impact function and solved the optimal executing problem numerically.
The previous works on the optimal execution problem are mainly based on the framework of Almgren and Chriss [2] or Gatheral et al. [9]. In the framework of Almgren and Chriss [2], the price impact has two kinds of definitions, i.e., the permanent impact and the temporary impact. Orders to be executed are thought to contain some fundamental information about the stock. This information is absorbed into the stock price in the trading and leads to a permanent impact on the intrinsic price of the stock. This is described by a permanent impact function of trading rate in the intrinsic price process of the stock. In addition, the price that we can observe in the market is affected by the trading at the moment and is described by the intrinsic price plus a temporary impact function of trading rate. In the framework of Gatheral et al. [9], the intrinsic stock price is set to be a martingale, i.e., the orders executed have no impact on the intrinsic price. Besides, the observed price is not only affected by instant trading but also affected by historical trading through a decay kernel function and a transient impact function of trading rate. In this paper, we combine the frameworks of Almgren and Chriss [2] and Gatheral et al. [9]. More specifically, we suppose trading gives rise to a permanent impact on the intrinsic price of the stock, and the observed price is affected by historical trading through a decay kernel function and a price impact function of trading rate.
In the view of some practitioners in trading, the market may not always be so efficient. There exsit signals in the stock market with which the traders can predict the future return of the stock to some extent. Indeed, some hedge funds make profit with trading signals founded by technical analysis or other ways. Cartea and Jaimungal [12] studied the optimal executing strategy by incorporating order flow. In this work, the trading rate of all other traders can be treated as a signal of the intrinsic stock return. Motivated by these, we propose a trading signal term in the intrinsic price process. In addition, the experiences from practitioners indicate that a trading signal usually has the properties of stationarity and mean reversion. Therefore, we assume that the trading signal follows an Ornstein–Uhlenbeck process. Besides, Cheng et al. [13] suggested that the order delivered by traders may not be filled fully, i.e., the traders can face the execution risk; therefore, we investigate the optimal execution problem by taking into account the trading signal and the execution risk simultaneously. More specifically, we propose an optimal execution problem with a generalized kernel function and a generalized transient impact function. To solve this optimal execution problem, we set the kernel function to be the Dirac function, which is compatible with the framework suggested in Almgren and Chriss [2], and the transient impact function to be a linear function. In this setting, we give analytical solutions to the optimal execution problems with a constant execution risk and a linear execution risk, respectively. Moreover, we prove that our results can recover the results in Cheng et al. [13] if the trading signal process degenerates, i.e., the mean reversion speed of the trading signal degenerates to 0. Our results can provide some insights for the hedge funds that possess some trading signals to design their trading scheme.
The rest of this paper is organized as follows. In Section 2, we describe our model. In Section 3, we propose our optimal execution problem. In Section 4, we solve the optimal execution problem with a constant execution risk and a linear execution risk, respectively, and discuss the solutions. In Section 5, we conclude this paper and point out some directions for further work.
2. Model Settings
Suppose that we have a scheme of liquidating X shares of stock in time interval , and . At time , the amount of stock remaining to be liquidated is denoted as , and thus .
We suppose the intrinsic stock price, which cannot be observed directly in the market, follows the stochastic process below:where is trading signal and is defined in (4), is a standard Brownian motion, and , , and are constant parameters with , .
In the setting of (1), we suppose that trading has a permanent impact on the intrinsic stock price, and the permanent impact function is set to be a linear function. This setting follows the existing works based on the framework of Almgren and Chriss [2], such as Gatheral and Schied [7], Cartea and Jaimungal [12], Cheng et al. [13], Jin [14], and so on. Besides, we further suppose that the intrinsic price of the stock is also affected by other factors, such as trading signals and the trading rate of other traders.
In addition, we suppose the observed price of the stock can be expressed aswhere is the decay kernel function, is the transient impact function, and is the trading rate.
In the setting of (2), we follow the framework of Gatheral et al. [9]. The form of (2) indicates that the trading before time has a decayed effect on the observed price at time . We note that when the decay kernel function is set to be the Dirac function , this model of observed price degenerates to the framework of Almgren and Chriss [2]. Indeed, we havewhich is just the form in Almgren and Chriss [2].
The experiences from practitioners indicate that a trading signal usually has the properties of stationarity and mean reversion. Motivated by this, we propose a signal process in (1) and suppose follows an Ornstein–Uhlenbeck process as below:where is the speed of mean reversion such that and is a standard Brownian motion.
In practice, an order may not be executed fully due to the shortage of liquidity in the market or some other technical reasons. So, traders may face an execution risk. Some previous works have talked about this topic, and we follow the setting in Cheng et al. [13].
We suppose the executing process follows the stochastic process below:where is the amount of stock that remains to be liquidated, is the trading rate, is a function that affects the diffusion of this process, and is a standard Brownian motion.
For mathematical tractability, we suppose the standard Brownian motions , , and are independent.
3. Optimal Execution Problem
With the setting in previous parts, we propose our optimal execution problem in this section.
Following the setting in Cheng et al. [13], we define our PnL as the difference between the realized value by trading and the initial intrinsic value of our position. Indeed, a selling order always pushes the stock price down, so we obtain lower price than the initial price, and thus the PnL is always negative. Naturally, we wish the PnL to be larger. Specifically, we define
So, at time , the PnL is
Note that at time , we may have due to the execution risk. In this case, we need to liquidate the remaining shares immediately, so we put a punishment on the remaining shares. We denote the punishment as . In the setting of Cheng et al. [13], the punishment function is quadratic, i.e., with , which is compatible with the results of Almgren and Chriss [2]. In our work, we also follow this treatment. Hence, we define the adjusted PnL as
With all the settings above, we can get the specific form of the adjusted PnL, which is illustrated in Proposition 1.
Proposition 1. With the settings of (1), (2), (4), (5), (7), and (8) and the assumption that the Brownian motions , , and are independent, the adjusted PnL defined in (8) has the following expression:
Proof. Applying Itô’s formula and with (1) and (5), we haveBy integrating, we getOn the other hand, with (2), we haveCombining (7), (8), (11), and (12), we getApplying Itô’s formula to (5), we haveBy integrating, we getSubstituting (1), (5), and (15) into (13), we get expression (9).
The expression in (9) indicates that the randomness of the adjusted PnL comes from three stochastic sources, i.e., Brownian motions , , and . In addition, it is worth noting that the last two terms of (9) are Itô integrations and thus are martingales. Hence, the expectation of the adjusted PnL can be expressed as
Note that represents in here and the other parts of the following context.
With the specific form of the adjusted PnL, it is natural for us to propose an optimal execution problem. More specifically, we look for an optimal trading rate process to maximize the expected utility of the adjusted PnL with a utility function. Here we choose the identity utility function and formulate our optimal execution problem as follows:where satisfies (16).
So far, we have proposed our optimal execution problem described in (17). In this optimal execution problem, we assume the decay kernel function and the transient price impact function are of generalized forms. The topic about the form of these two functions has been widely discussed in the literature, such as Gatheral [16]. We note that the choices of this two functions may lead to different types of optimal execution problems, thus requiring different techniques to solve the corresponding optimal execution problems. In the next section, we choose some special decay kernel functions and transient price impact functions so that the optimal execution problem becomes a standard stochastic optimal control problem, and we solve it under different cases of execution risk.
4. Optimal Executing Strategy
In this section, we appropriately choose the decay kernel function and the transient price impact function to solve the optimal execution problem (17).
To make the problem more tractable, we choose the Dirac function as the kernel decay function. As mentioned in Section 2, this case conforms to the setting of Almgren and Chriss [2]. In addition, we set price transient impact function as a linear function; more specifically,where is a constant and . Besides, we follow the treatment about the punishment function in Cheng et al. [13], i.e., with . Hence, the expectation of the adjusted PnL in (16) becomes
Note that under the conditions above, the optimal execution problem (17) has become a standard stochastic optimal control problem. We define the value function as
According to (5) and (15), we have
Substituting (21) into (20), we finally get
So far, the only undefined term in our optimal execution problem is the function . Note that the form of determines the execution risk, and we follow the setting of Cheng et al. [13]. More specifically, we solve the optimal execution problem (17) with a constant execution risk and a linear execution risk, respectively.
4.1. Constant Execution Risk
Note that for the constant execution risk, the function in (5) is a constant, i.e.,where .
Under this circumstance, the value function (22) becomes
Under the conditions above, we solve the optimal execution problem (17) and get the following result in Theorem 1.
Theorem 1. Let , , , , and , , . The optimal execution problem (17) has a unique solution with state-feedback form:where and .
In addition, the value function (24) satisfies the following HJB equation:with terminal condition .
Moreover, can be expressed aswhere , , and are defined as (38), (43), and (41).
Remark 1. We remark that we assume to make sure .
Proof. Instead of taking the standard method to solve the stochastic control problem (17), we use the method of completing the square.
Suppose , , , , and are bounded differentiable functions with , , , , and .
Applying Itô’s formula, we haveWith equation (5), we haveTaking similar procedures, we haveFor convenience, we define asand henceNote that , , , , and ; then, we haveWith the conclusions above, we haveTo use the method of completing square, we compare the first integration term above withwhere , are functions of s.
Matching coefficients, we can get the following ODE system:with terminal conditions , , , , and .
To solve , we eliminate in the first row of (36) and get the ODE below:Solving this special Riccati equation with the terminal condition, we havewhere . Consequently, we haveTo solve , we eliminate in the third row of (36) and get the ODE below:Substituting (39) into this linear ODE, we solve it to haveConsequently, we haveSubstituting (42) into the ODE in the second row of (36), we solve the ODE to getIn addition, it is obvious that and from (36).
With the results above, we haveThe inequality above indicates that is the unique solution to maximize and thus the unique solution to the optimal execution problem (17). As a consequence, the value function has the following expression:Taking the partial derivatives of , we haveThen, it is straightforward to verify that satisfies the HJB equation below:
This theorem indicates that the optimal executing strategy is a linear combination of the remaining position and the trading signal and thus a dynamic executing strategy. Note that when and letting , we have , which is an adaptive VWAP strategy. Furthermore, we denote the weight of in (20) as , i.e.,and provide the following results of Corollary 1.
Corollary 1. With the assumptions in Theorem 1, the weight of the trading signal in the expression of the optimal executing strategy (25) is monotonic increasing with respect to the mean reversion speed of the trading signal for . In addition, when limiting to 0, the limitation of exists and can be expressed as
Proof. We prove the monotonicity first. For convenience, we define asand hence .
Taking the derivative of , we haveFurther, we define asand hence and .
Taking the derivative of , we havewith .
Again, taking the derivative of , we haveSo, it is straightforward to verify that for with , , and . Since , we conclude that for . Furthermore, with , we conclude that for , and thus for . Finally, the definition of indicates that for , which means is monotonic increasing with respect to for .
In addition, given the Taylor expansion of aswe then haveSubstituting this to (48) and taking the limit, we get (49).
We remark that the corollary above indicates our result can recover the result of Cheng et al. [13] with the mean reversion speed of the trading signal degenerating to 0.
4.2. Linear Execution Risk
For the linear execution risk, the function in (5) is a linear function, i.e.,where .
In this case, the execution risk is related to the trading rate. Specifically, the faster we trade, the bigger the probability that our orders cannot be fully filled. This is in line with our intuition and reality in the market. Indeed, the liquidity of market is limited. If we trade very fast, our orders may merely be filled partially.
Now the value function (22) is of the following form:
Then, we solve the optimal execution problem (17) and get the following theorem.
Theorem 2. Let , , , , and , , . In addition, we assume and the inequality below holds:Then, the optimal execution problem (17) has a unique solution with state-feedback form:where and is defined aswhere , .
In addition, the value function defined as (58) satisfies the HJB equation below:with terminal condition .
Moreover, can be expressed as follows:where and are defined as (79) and (77).
Remark 2. We remark that the condition makes sure that and are well defined. Condition (59) guarantees that the optimal solution makes the optimal problem achieve the maximum.
Proof. We use the method of completing the square to solve the optimal execution problem again.
Suppose , , , and are bounded differentiable functions with , , , , and .
Applying Itô’s formula and with (5), we haveAgain, we define asNote that , , , , and , and we haveWith the conclusions above, we haveWe define . Note that under the assumptions in the theorem we have , which will be verified later. We compare the first integration term above withwhere and are deterministic functions of .
Matching coefficients, we get the ODE system as follows:with terminal conditions , , , , and .
To solve , we eliminate in the first row of (69), and then we havewith .
Solving this ODE, we haveWe denote and , , and then we haveHence, we define asThus,Now we verify that . Note that is equivalent to according to (74). When , is monotonic decreasing on , and its value domain on is . According to the definition of , we conclude that , and thus . When , is monotonic decreasing on and monotonic increasing on . Besides, the value domain of on interval and interval is . So if for any in , according to the definition of , we conclude that . Note that is monotonic increasing on . So, it suffices to make hold, which is just guaranteed by assumption (59). So, we conclude that .
With and according to (69), we haveTo solve , we eliminate in the third row of (69) to getSolving this ODE with (75), we haveConsequently,Moreover, solving the ODE of in the second row of (69) with , we haveIn addition, it is obvious that and from (69).
With the results above, we haveThe inequality above indicates is the unique solution to maximize and thus the unique solution to the optimal execution problem (60). Therefore, the value function (58) can be expressed asTo calculate the partial derivatives on , we haveThen, it is straightforward to verify that satisfies the HJB equation below:
Note that the optimal strategy (60) is also a linear combination of the remaining position and the trading signal . This means that the trading signal can affect the optimal execution strategy. In addition, the weights of these two terms are affected by the parameter of the execution risk, and thus the optimal executing strategy is also affected by the execution risk.
We remark that in the case of linear execution risk, the optimal executing strategy (60) can also recover the result in Cheng et al. [13] with mean reversion speed degenerating to 0. To illustrate this conclusion, we note that definition (73) implies is bounded for and the verification process of in the proof of Theorem 2 implies that the value domain of for does not include 0. Hence, the function is bounded for . With , we have
ODE (70) indicates
By integration, we have
Finally, we havewhich is just the form in Cheng et al. [13].
5. Conclusion
In this paper, we study the optimal execution problem by taking into account the trading signal and the execution risk simultaneously. More specifically, we combine the frameworks of Almgren and Chriss [2] and Gatheral et al. [9] and propose a trading signal term, which follows an Ornstein–Uhlenbeck process, in the intrinsic price process of the stock. In addition, the execution process is affected by execution risk. Under these settings, we propose an optimal executing problem with the decay kernel function and transient impact function being of generalized form. Then, we solve the optimal execution problem with the decay kernel being the Dirac function and the transient impact function being a linear function in the cases of the constant execution risk and the linear execution risk, respectively. We give analytical solutions to the optimal execution problems and prove that our result can recover previous work when the mean reversion speed of the trading signal process degenerates to 0.
Further work can try other types of decay kernel functions and nonlinear transient impact functions. Besides, other utility functions of the adjusted PnL can be taken into account. Empirical work can also be conducted to validate and calibrate the theoretical model.
Data Availability
No data were used to support this study.
Conflicts of Interest
The authors declare that they have no conflicts of interest.