Optimal Mean Reversion Trading with Transaction Costs and Stop-Loss Exit

Tim Leung, Xin Li

Introduction

It has been widely observed that many asset prices exhibit mean reversion, including commodities (see Schwartz (1997)), foreign exchange rates (see Engel and Hamilton (1989); Anthony and MacDonald (1998); Larsen and Sørensen (2007)), as well as US and global equities (see Poterba and Summers (1988); Malliaropulos and Priestley (1999); Balvers et al. (2000); Gropp (2004)). Mean-reverting processes are also used to model the dynamics of interest rate, volatility, and default risk. In industry, hedge fund managers and investors often attempt to construct mean-reverting prices by simultaneously taking positions in two highly correlated or co-moving assets. The advent of exchange-traded funds (ETFs) has further facilitated this pairs trading approach since some ETFs are designed to track identical or similar indexes and assets. For instance, Triantafyllopoulos and Montana (2011) investigate the mean-reverting spreads between commodity ETFs and design model for statistical arbitrage. Dunis et al. (2013) also examine the mean-reverting spread between physical gold and gold equity ETFs.

Given the price dynamics of some risky asset(s), one important problem commonly faced by individual and institutional investors is to determine when to open and close a position. While observing the prevailing market prices, a speculative investor can choose to enter the market immediately or wait for a future opportunity. After completing the first trade, the investor will need to decide when is best to close the position. This motivates the investigation of the optimal sequential timing of trades.

In this paper, we study the optimal timing of trades subject to transaction costs under the Ornstein-Uhlenbeck (OU) model. Specifically, our formulation leads to an optimal double stopping problem that gives the optimal entry and exit decision rules. We obtain analytic solutions for both the entry and exit problems. In addition, we incorporate a stop-loss constraint to our trading problem. We find that a higher stop-loss level induces the investor to voluntarily liquidate earlier at a lower take-profit level. Moreover, the entry region is characterized by a bounded price interval that lies strictly above stop-loss level. In other words, it is optimal to wait if the current price is too high or too close to the lower stop-loss level. This is intuitive since entering the market close to stop-loss implies a high chance of exiting at a loss afterwards. As a result, the delay region (complement of the entry region) is disconnected. Furthermore, we show that optimal liquidation level decreases with the stop-loss level until they coincide, in which case immediate liquidation is optimal at all price levels.

A typical solution approach for optimal stopping problems driven by diffusion involves the analytical and numerical studies of the associated free boundary problems or variational inequalities (VIs); see e.g. Bensoussan and Lions (1982), Øksendal (2003), and Sun (1992). For our double optimal stopping problem, this method would determine the value functions from a pair of VIs and require regularity conditions to guarantee that the solutions to the VIs indeed correspond to the optimal stopping problems. As noted by Dayanik (2008), “the variational methods become challenging when the form of the reward function and/or the dynamics of the diffusion obscure the shape of the optimal continuation region.” In our optimal entry timing problem, the reward function involves the value function from the exit timing problem, which is not monotone and can be positive and negative.

In contrast to the variational inequality approach, our proposed methodology starts with a characterization of the value functions as the smallest concave majorant of any given reward function. A key feature of this approach is that it allows us to directly construct the value function, without a priori finding a candidate value function or imposing conditions on the stopping and delay (continuation) regions, such as whether they are connected or not. In other words, our method will derive the structure of the stopping and delay regions as an output.

Our main results provide the analytic expressions for the value functions of the double stopping problems; see Theorems 4.2 and 4.5 (without stop-loss), and Theorems 5.1 and 5.5 (with stop-loss). In earlier studies, Dynkin and Yushkevich (1969) analyze the concave characterization of excessive functions for a standard Brownian motion, and Dayanik and Karatzas (2003) and Dayanik (2008) apply this idea to study the optimal single stopping of a one-dimensional diffusion. In this regard, we contribute to this line of work by solving a number of optimal double stopping problems with and without a stop-loss exit under the OU model.

Among other related studies, Ekstrom et al. (2011) analyze the optimal single liquidation timing under the OU model with zero long-run mean and no transaction cost. The current paper extends their model in a number of ways. First, we analyze the optimal entry timing as well as the optimal liquidation timing. Our model allows for a non-zero long-run mean and transaction costs, along with a stop-loss level. Song et al. (2009) propose a numerical stochastic approximation scheme to solve for the optimal buy-low-sell-high strategies over a finite horizon. Under a similar setting, Zhang and Zhang (2008) and Kong and Zhang (2010) also investigate the infinite sequential buying and selling/shorting problem under exponential OU price dynamics with slippage cost.

In the context of pairs trading, a number of studies have also considered market timing strategy with two price levels. For example, Gatev et al. (2006) study the historical returns from the buy-low-sell-high strategy where the entry/exit levels are set as ±\pm1 standard deviation from the long-run mean. Similarly, Avellaneda and Lee (2010) consider starting and ending a pairs trade based on the spread’s distance from its mean. In Elliott et al. (2005), the market entry timing is modeled by the first passage time of an OU process, followed by an exit at a fixed finite horizon. In comparison, rather than assigning ad hoc price levels or fixed trading times, our approach will generate the entry and exit thresholds as solutions of an optimal double stopping problem. Considering an exponential OU asset price with zero mean, Bertram (2010) numerically computes the optimal enter and exit levels that maximize the expected return per unit time. Gregory et al. (2010) also apply this approach to log-spread following the CIR and GARCH diffusion models. Other timing strategies adopted by practitioners have been discussed in Vidyamurthy (2004).

On the other hand, the related problem of constructing portfolios and hedging with mean reverting asset prices has been studied. For example, Benth and Karlsen (2005) study the utility maximization problem that involves dynamically trading an exponential OU underlying asset. Jurek and Yang (2007) analyze a finite-horizon portfolio optimization problem with an OU asset subject to the power utility and Epstein-Zin recursive utility. Chiu and Wong (2012) consider the dynamic trading of co-integrated assets with a mean-variance criterion. Tourin and Yan (2013) derive the dynamic trading strategy for two co-integrated stocks in order to maximize the expected terminal utility of wealth over a fixed horizon. They simplify the associated Hamilton-Jacobi-Bellman equation and obtain a closed-form solution. In the stochastic control approach, incorporating transaction costs and stop-loss exit can potentially limit model tractability and is not implemented in these studies.

The rest of the paper is structured as follows. We formulate the optimal trading problem in Section 2, followed by a discussion on our method of solution in Section 3. In Section 4, we analytically solve the optimal double stopping problem and examine the optimal entry and exit strategies. In Section 5, we study the trading problem with a stop-loss constraint. The proofs of all lemmas are provided in the Appendix.

Problem Overview

Let us discuss a pairs trading example where we model the value of the resulting position by an OU process. The primary objective is to motivate our trading problem, rather than proposing new estimation methodologies or empirical studies on pairs trading. For related studies and more details, we refer to the seminal paper by Engle and Granger (1987), the books Hamilton (1994); Tsay (2005), and references therein.

We construct a portfolio by holding α\alpha shares of a risky asset S(1)S^{(1)} and shorting β\beta shares of another risky asset S(2)S^{(2)}, yielding a portfolio value Xtα,β=αSt(1)−βSt(2)X^{\alpha,\beta}_{t}=\alpha S^{(1)}_{t}-\beta S^{(2)}_{t} at time t≥0t\geq 0. The pair of assets are selected to form a mean-reverting portfolio value. In addition, one can adjust the strategy (α,β)(\alpha,\beta) to enhance the level of mean reversion. For the purpose of testing mean reversion, only the ratio between α\alpha and β\beta matters, so we can keep α\alpha constant while varying β\beta without loss of generality. For every strategy (α,β)(\alpha,\beta), we observe the resulting portfolio values (xiα,β)i=0,1,…,n(x_{i}^{\alpha,\beta})_{i=0,1,\ldots,n} realized over an nn-day period. We then apply the method of maximum likelihood estimation (MLE) to fit the observed portfolio values to an OU process and determine the model parameters. Under the OU model, the conditional probability density of XtiX_{t_{i}} at time tit_{i} given xi−1x_{i-1} at ti−1t_{i-1} with time increment Δt=ti−ti−1\Delta t=t_{i}-t_{i-1} is given by

Using the observed values (xiα,β)i=0,1,…,n(x_{i}^{\alpha,\beta})_{i=0,1,\ldots,n}, we maximize the average log-likelihood defined by

In Figure 1, we illustrate an example based on two pairs of exchange-traded funds (ETFs), namely, the Market Vectors Gold Miners (GDX) and iShares Silver Trust (SLV) against the SPDR Gold Trust (GLD) respectively. These liquidly traded funds aim to track the price movements of the NYSE Arca Gold Miners Index (GDX), silver (SLV), and gold bullion (GLD) respectively. These ETF pairs are also used in Triantafyllopoulos and Montana (2011) and Dunis et al. (2013) for their statistical and empirical studies on ETF pairs trading.

2 Optimal Stopping Problem

Given that a price process or portfolio value evolves according to an OU process, our main objective is to study the optimal timing to open and subsequently close the position subject to transaction costs. This leads to the analysis of an optimal double stopping problem.

From the investor’s viewpoint, V(x)V(x) represents the expected liquidation value associated with XX. On the other hand, the current price plus the transaction cost constitute the total cost to enter the trade. The investor can always choose the optimal timing to start the trade, or not to enter at all. This leads us to analyze the entry timing inherent in the trading problem. Precisely, we solve

As extension, we can incorporate a stop-loss level of the pairs trade, that caps the maximum loss. In practice, the stop-loss level may be exogenously imposed by the manager of a trading desk. In effect, if the price XX ever reaches level LL prior to the investor’s voluntary liquidation time, then the position will be closed immediately. The stop-loss signal is given by the first passage time

Therefore, we determine the entry and liquidation timing from the constrained optimal stopping problem:

Due to the additional timing constraint, the investor may be forced to exit early at the stop-loss level for any given liquidation level. Hence, the stop-loss constraint reduces the value functions, and precisely we deduce that x−c≤VL(x)≤V(x)x-c\leq V_{L}(x)\leq V(x) and 0≤JL(x)≤J(x)0\leq J_{L}(x)\leq J(x). As we will show in Sections 4 and 5, the optimal timing strategies with and without stop-loss are quite different.

Method of Solution

In this section, we disucss our method of solution. First, we denote the infinitesimal generator of the OU process XX by

and recall the classical solutions of the differential equation

Direct differentiation yields that F′(x)>0F^{\prime}(x)>0, F′′(x)>0F^{\prime\prime}(x)>0, G′(x)<0G^{\prime}(x)<0 and G′′(x)>0G^{\prime\prime}(x)>0. Hence, we observe that both F(x)F(x) and G(x)G(x) are strictly positive and convex, and they are, respectively, strictly increasing and decreasing.

Define the first passage time of XX to some level κ\kappa by τκ=inf⁡{t≥0:Xt=κ}\tau_{\kappa}=\inf\{t\geq 0:X_{t}=\kappa\}. As is well known, FF and GG admit the probabilistic expressions (see Itō and McKean (1965) and Rogers and Williams (2000)):

A key step of our solution method involves the transformation

where ya=ψ(a)y_{a}=\psi(a), yb=ψ(b)y_{b}=\psi(b), and

The candidate optimal exit interval [a∗,b∗][a^{*},b^{*}] is determined by maximizing the expectation in (3.7). This is equivalent to maximizing (3.10) over yay_{a} and yby_{b} in the transformed problem. This leads to

This is the smallest concave majorant of HH. Applying the definition of WW to (3.10), we can express the maximal expected discounted reward as

If a=−∞a=-\infty, then we have τa=+∞\tau_{a}=+\infty and 11{τa<τb}=01{1}_{\{\tau_{a}<\tau_{b}\}}=0 a.s. In effect, this removes the lower exit level, and the corresponding expected discounted reward is

Consequently, by considering interval-type strategies, we also include the class of stopping strategies of reaching a single upper level bb (see Theorem 4.2 below).

Next, we prove the optimality of the proposed stopping strategy and provide an expression for the value function.

The value function V(x)V(x) defined in (2.3) is given by

where GG, ψ\psi and WW are defined in (3.4), (3.6) and (3.12), respectively.

The proof is provided in Appendix A.1. Let us emphasize that the optimal levels (a∗,b∗)(a^{*},b^{*}) may depend on the initial value xx, and can potentially coincide, or take values −∞-\infty and +∞+\infty. As such, the structure of the stopping and delay regions can potentially be characterized by multiple intervals, leading to disconnected delay regions (see Theorem 5.5 below).

We follow the procedure for Theorem 3.2 to derive the expression for the value function JJ in (2.4). First, we denote F^(x)=F(x;r^)\hat{F}(x)=F(x;\hat{r}) and G^(x)=G(x;r^)\hat{G}(x)=G(x;\hat{r}) (see (3.3)–(3.4)), with discount rate r^\hat{r}. In addition, we define the transformation

Using these functions, we consider the function analogous to HH:

Following the steps (3.7)–(3.12) with FF, GG, ψ\psi, and HH replaced by F^\hat{F}, G^\hat{G}, ψ^\hat{\psi}, and H^\hat{H}, respectively, we write down the smallest concave majorant W^\hat{W} of H^\hat{H}, namely,

From this, we seek to determine the candidate optimal entry interval (ya^∗,yb^∗)(y_{\hat{a}^{*}},y_{\hat{b}^{*}}) in the y=ψ^(x)y=\hat{\psi}(x) coordinate. Following the proof of Theorem 3.2 with the new functions F^\hat{F}, G^\hat{G}, ψ^\hat{\psi}, H^\hat{H}, and W^\hat{W}, the value function of the optimal entry timing problem admits the expression

An alternative way to solve for V(x)V(x) and J(x)J(x) is to look for the solutions to the pair of variational inequalities

Analytical Results

We will first study the optimal exit timing in Section 4.1, followed by the optimal entry timing problem in Section 4.2.

We now analyze the optimal exit timing problem (2.3). In preparation for the next result, we summarize the crucial properties of HH.

The function HH is continuous on [0,+∞)[0,+\infty), twice differentiable on (0,+∞)(0,+\infty) and possesses the following properties:

Let x∗x^{*} be the unique solution to G(x)−(x−c)G′(x)=0G(x)-(x-c)G^{\prime}(x)=0. Then, we have

Based on Lemma 4.1, we sketch HH in Figure 2. The properties of HH are essential in deriving the value function and optimal liquidation level, as we show next.

The optimal liquidation problem (2.3) admits the solution

where the optimal liquidation level b∗b^{*} is found from the equation

and is bounded below by L∗∨cL^{*}\vee c. The corresponding optimal liquidation time is given by

Proof. From Lemma 4.1 and the fact that H′(y)→0H^{\prime}(y)\to 0 as y→+∞y\to+\infty (see also Figure 2), we infer that there exists a unique number z>ψ(L∗)∨ψ(c)z>\psi(L^{*})\vee\psi(c) such that

In turn, the smallest concave majorant is given by

Substituting b∗=ψ−1(z)b^{*}=\psi^{-1}(z) into (4.5), we have the LHS

Equivalently, we can express condition (4.5) in terms of b∗b^{*}:

In turn, we obtain the value function V(x)V(x) by substituting (4.8) into (3.13).

Next, we examine the dependence of the investor’s optimal timing strategy on the transaction cost cc.

Since F′(x)>0F^{\prime}(x)>0, F′′(x)>0F^{\prime\prime}(x)>0 (see (3.3)), and b∗>cb^{*}>c according to Theorem 4.2, we conclude that b∗b^{*} is increasing in cc.

In other words, if the transaction cost is high, the investor would tend to liquidate at a higher level, in order to compensate the loss on transaction cost. For other parameters, such as μ\mu and σ\sigma, the dependence of b∗b^{*} is generally not monotone.

2 Optimal Entry Timing

Having solved for the optimal exit timing, we now turn to the optimal entry timing problem. In this case, the value function is

To solve for the optimal entry threshold(s), we will need several properties of H^\hat{H}, as we summarize below.

The function H^\hat{H} is continuous on [0,+∞)[0,+\infty), differentiable on (0,+∞)(0,+\infty), and twice differentiable on (0,ψ^(b∗))∪(ψ^(b∗),+∞)(0,\hat{\psi}(b^{*}))\cup(\hat{\psi}(b^{*}),+\infty), and possesses the following properties:

H^(0)=0\hat{H}(0)=0. Let dˉ\bar{d} denote the unique solution to h^(x)=0\hat{h}(x)=0, then dˉ<b∗\bar{d}<b^{*} and

H^(y)\hat{H}(y) is strictly decreasing if y∈(ψ^(b∗),+∞)y\in(\hat{\psi}(b^{*}),+\infty).

Let b‾\underline{b} denote the unique solution to (L−r^)h^(x)=0({\mathcal{L}}-\hat{r})\hat{h}(x)=0, then b‾<L∗\underline{b}<L^{*} and

In Figure 3, we give a sketch of H^\hat{H} according to Lemma 4.4. This will be useful for deriving the optimal entry level.

The optimal entry timing problem (2.4) admits the solution

where the optimal entry level d∗d^{*} is found from the equation

Proof. We look for the value function of the form: J(x)=G^(x)W^(ψ^(x))J(x)=\hat{G}(x)\hat{W}(\hat{\psi}(x)), where W^\hat{W} is the the smallest concave majorant of H^\hat{H}. From Lemma 4.4 and Figure 3, we infer that there exists a unique number z^<ψ^(b∗)\hat{z}<\hat{\psi}(b^{*}) such that

Substituting d∗=ψ^−1(z^)d^{*}=\hat{\psi}^{-1}(\hat{z}) into (4.12), we have

which is equivalent to condition (4.11). Furthermore, using (3.14) and (3.15), we get

To conclude, we substitute H^(z^)\hat{H}(\hat{z}) of (4.14) and H^(y)\hat{H}(y) of (3.15) into W^\hat{W} of (4.13), which by (3.16) yields the value function J(x)J(x) in (4.10).

With the analytic solutions for VV and JJ, we can verify by direct substitution that V(x)V(x) in (4.2) and J(x)J(x) in (4.10) satisfy both (3.17) and (3.18).

Since the optimal entry timing problem is nested with another optimal stopping problem, the parameter dependence of the optimal entry level is complicated. Below, we illustrate the impact of transaction cost.

The optimal entry level d∗d^{*} of (2.4) is decreasing in the transaction cost c^\hat{c}.

Proof. Considering the optimal entry level d∗d^{*} as a function of c^\hat{c}, we differentiate (4.11) w.r.t. c^\hat{c} to get

Since G^(d∗)>0\hat{G}(d^{*})>0 and G^′(d∗)<0\hat{G}^{\prime}(d^{*})<0, the sign of d∗′ ⁣(c^)d^{*^{\prime}}\!(\hat{c}) is determined by V′′(d∗)−V(d∗)−d∗−c^G^(d∗)G^′′(d∗)V^{\prime\prime}(d^{*})-\frac{V(d^{*})-d^{*}-\hat{c}}{\hat{G}(d^{*})}\hat{G}^{\prime\prime}(d^{*}). Denote f^(x)=V(d∗)−d∗−c^G^(d∗)G^(x)\hat{f}(x)=\frac{V(d^{*})-d^{*}-\hat{c}}{\hat{G}(d^{*})}\hat{G}(x). Recall that h^(x)=V(x)−x−c^\hat{h}(x)=V(x)-x-\hat{c},

and f^(x)\hat{f}(x) smooth pastes h^(x)\hat{h}(x) at d∗d^{*}. Since both h^(x)\hat{h}(x) and f^(x)\hat{f}(x) are positive decreasing convex functions, it follows that h^′′(d∗)≤f^′′(d∗)\hat{h}^{\prime\prime}(d^{*})\leq\hat{f}^{\prime\prime}(d^{*}). Observing that h^′′(d∗)=V′′(d∗)\hat{h}^{\prime\prime}(d^{*})=V^{\prime\prime}(d^{*}) and f^′′(d∗)=V(d∗)−d∗−c^G^(d∗)G^′′(d∗)\hat{f}^{\prime\prime}(d^{*})=\frac{V(d^{*})-d^{*}-\hat{c}}{\hat{G}(d^{*})}\hat{G}^{\prime\prime}(d^{*}), we have V′′(d∗)−V(d∗)−d∗−c^G^(d∗)G^′′(d∗)≤0V^{\prime\prime}(d^{*})-\frac{V(d^{*})-d^{*}-\hat{c}}{\hat{G}(d^{*})}\hat{G}^{\prime\prime}(d^{*})\leq 0. Applying this to (4.15), we conclude that d∗′ ⁣(c^)≤0{d^{*}}^{\prime}\!(\hat{c})\leq 0.

We end this section with a special example in the OU model with no mean reversion.

If we set μ=0\mu=0 in (2.1), with rr and r^\hat{r} fixed, it follows that XX reduces to a Brownian motion: Xt=σBtX_{t}=\sigma B_{t}, t≥0t\geq 0. In this case, the optimal liquidation level b∗b^{*} for problem (2.3) is

and the optimal entry level d∗d^{*} for problem (2.4) is the root to the equation

Incorporating Stop-Loss Exit

Now we consider the optimal entry and exit problems with a stop-loss constraint. For convenience, we restate the value functions from (2.5) and (2.6):

After solving for the optimal timing strategies, we will also examine the dependence of the optimal liquidation threshold on the stop-loss level LL.

We first give an analytic solution to the optimal exit timing problem.

The optimal liquidation problem (5.2) with stop-loss level LL admits the solution

The optimal liquidation level bL∗b_{L}^{*} is found from the equation

Proof. Due to the stop-loss level LL, we consider the smallest concave majorant of H(y)H(y), denoted by WL(y)W_{L}(y), over the restricted domain [ψ(L),+∞)[\psi(L),+\infty) and set WL(y)=H(y)W_{L}(y)=H(y) for y∈[0,ψ(L)]y\in[0,\psi(L)].

In turn, the smallest concave majorant admits the form:

Substituting bL∗=ψ−1(zL)b_{L}^{*}=\psi^{-1}(z_{L}) into (5.6), we have from the LHS

Therefore, we can equivalently express (5.6) in terms of bL∗b_{L}^{*}:

which by rearrangement immediately simplifies to (5.5).

Furthermore, for x∈(L,bL∗)x\in(L,b_{L}^{*}), H′(zL)=CH^{\prime}(z_{L})=C implies that

Substituting this to VL(x)=G(x)WL(ψ(x))V_{L}(x)=G(x)W_{L}(\psi(x)), the value function becomes

which resembles (5.3) after the observation that

The direct effect of a stop-loss exit constraint is forced liquidation whenever the price process reaches LL before the upper liquidation level bL∗b^{*}_{L}. Interestingly, there is an additional indirect effect: a higher stop-loss level will induce the investor to voluntarily liquidate earlier at a lower take-profit level.

The optimal liquidation level bL∗b_{L}^{*} of (5.2) strictly decreases as the stop-loss level LL increases.

Figure 5 illustrates the optimal exit price level bL∗b_{L}^{*} as a function of the stop-loss levels LL, for different long-run means θ\theta. When bL∗b^{*}_{L} is strictly greater than LL (on the left of the straight line), the delay region is non-empty. As LL increases, bL∗b^{*}_{L} strictly decreases and the two meet at L∗L^{*} (on the straight line), and the delay region vanishes.

as long as θ1−θ2=c1−c2=L1−L2.\theta_{1}-\theta_{2}=c_{1}-c_{2}=L_{1}-L_{2}. These results (5.9) and (5.10) also hold in the case without stop-loss.

2 Optimal Entry Timing

and look for non-trivial optimal timing strategies.

Associated with reward function h^L(x):=VL(x)−x−c^\hat{h}_{L}(x):=V_{L}(x)-x-\hat{c} from entering the market, we define the function H^L\hat{H}_{L} as in (3.11) whose properties are summarized in the following lemma.

The function H^L\hat{H}_{L} is continuous on [0,+∞)[0,+\infty), differentiable on (0,ψ^(L))∪(ψ^(L),+∞)(0,\hat{\psi}(L))\cup(\hat{\psi}(L),+\infty), twice differentiable on (0,ψ^(L))∪(ψ^(L),ψ^(bL∗))∪(ψ^(bL∗),+∞)(0,\hat{\psi}(L))\cup(\hat{\psi}(L),\hat{\psi}(b^{*}_{L}))\cup(\hat{\psi}(b^{*}_{L}),+\infty), and possesses the following properties:

H^L(0)=0\hat{H}_{L}(0)=0. H^L(y)<0\hat{H}_{L}(y)<0 for y∈(0,ψ^(L)]∪[ψ^(bL∗),+∞)y\in(0,\hat{\psi}(L)]\cup[\hat{\psi}(b_{L}^{*}),+\infty).

H^L(y)\hat{H}_{L}(y) is strictly decreasing for y∈(0,ψ^(L))∪(ψ^(bL∗),+∞)y\in(0,\hat{\psi}(L))\cup(\hat{\psi}(b_{L}^{*}),+\infty).

There exists some constant dˉL∈(L,bL∗)\bar{d}_{L}\in(L,b_{L}^{*}) such that (L−r^)h^L(dˉL)=0({\mathcal{L}}-\hat{r})\hat{h}_{L}(\bar{d}_{L})=0, and

In addition, z^1∈(ψ^(L),ψ^(dˉL))\hat{z}_{1}\in(\hat{\psi}(L),\hat{\psi}(\bar{d}_{L})), where z^1:=arg max⁡y∈[0,+∞)H^L(y)\hat{z}_{1}:=\operatorname*{arg\,max}_{y\in[0,+\infty)}\hat{H}_{L}(y).

The optimal entry timing problem (5.1) admits the solution

where the critical levels aL∗a_{L}^{*} and dL∗d_{L}^{*} satisfy, respectively,

Proof. We look for the value function of the form: JL(x)=G^(x)W^L(ψ^(x)),J_{L}(x)=\hat{G}(x)\hat{W}_{L}(\hat{\psi}(x)), where W^L\hat{W}_{L} is the smallest non-negative concave majorant of H^L\hat{H}_{L}. From Lemma 5.4 and the sketch of H^L\hat{H}_{L} in Figure 6, the maximizer of H^L\hat{H}_{L}, z^1\hat{z}_{1}, satisfies

Also there exists a unique number z^0∈(ψ^(L),z^1)\hat{z}_{0}\in(\hat{\psi}(L),\hat{z}_{1}) such that

In turn, the smallest non-negative concave majorant admits the form:

Substituting aL∗=ψ^−1(z^0)a_{L}^{*}=\hat{\psi}^{-1}(\hat{z}_{0}) into (5.18), we have

Equivalently, we can express condition (5.18) in terms of aL∗a_{L}^{*}:

Simplifying this shows that aL∗a_{L}^{*} solves (5.15). Also, we can express H^L′(z^0)\hat{H}_{L}^{\prime}(\hat{z}_{0}) in terms of aL∗a_{L}^{*}:

In addition, substituting dL∗=ψ^−1(z^1)d_{L}^{*}=\hat{\psi}^{-1}(\hat{z}_{1}) into (5.17), we have

which, after a straightforward simplification, is identical to (5.16). Also, H^L(z^1)\hat{H}_{L}(\hat{z}_{1}) can be written as

Substituting these to JL(x)=G^(x)W^L(ψ^(x))J_{L}(x)=\hat{G}(x)\hat{W}_{L}(\hat{\psi}(x)), we arrive at (5.12).

Theorem 5.5 reveals that the optimal entry region is characterized by a price interval [aL∗,dL∗][a^{*}_{L},d^{*}_{L}] strictly above the stop-loss level LL and strictly below the optimal exit level bL∗b^{*}_{L}. In particular, if the current asset price is between LL and aL∗a_{L}^{*}, then it is optimal for the investor to wait even though the price is low. This is intuitive because if the entry price is too close to LL, then the investor is very likely to be forced to exit at a loss afterwards. As a consequence, the investor’s delay region, where she would wait to enter the market, is disconnected.

Figure 7 illustrates two simulated paths and the associated exercise times. We have chosen LL to be 2 standard deviations below the long-run mean θ\theta, with other parameters from our pairs trading example. By Theorem 5.5, the investor will enter the market at νaL∗,dL∗\nu_{a_{L}^{*},d_{L}^{*}} (see (5.14)). Since both paths start with X0>dL∗X_{0}>d_{L}^{*}, the investor waits to enter until the OU path reaches dL∗d_{L}^{*} from above, as indicated by νd∗\nu^{*}_{d} in panels (a) and (b). After entry, Figure 7 describes the scenario where the investor exits voluntarily at the optimal level bL∗b^{*}_{L}, whereas in Figure 7 the investor is forced to exit at the stop-loss level LL. These optimal levels are calculated from Theorem 5.5 and Theorem 5.1 based on the given estimated parameters.

We remark that the optimal levels aL∗a_{L}^{*}, dL∗d_{L}^{*} and bL∗b_{L}^{*} are outputs of the models, depending on the parameters (μ,θ,σ)(\mu,\theta,\sigma) and the choice of stop-loss level LL. Recall that our model parameters are estimated based on the likelihood maximizing portfolio discussed in Section 2.1. Other estimation methodologies and price data can be used, and may lead to different portfolio strategies (α,β)(\alpha,\beta) and estimated parameters values (μ,θ,σ)(\mu,\theta,\sigma). In turn, the resulting optimal entry and exit thresholds may also change accordingly.

3 Relative Stop-Loss Exit

4 Concluding Remarks

Other extensions include adapting our double optimal stopping problem to the exponential OU, Cox-Ingorsoll-Ross (CIR), or other underlying dynamics, and to countable number of trades (Zervos et al., 2013; Zhang and Zhang, 2008). Alternatively, one can model asset prices by specifying the dynamics of the dividend stream. For instance, Scheinkman and Xiong (2003) study the optimal timing to trade between two speculative traders with different beliefs on the mean-reverting (OU) dividend dynamics. Other than trading of risky assets, it is also useful to study the timing to buy/sell derivatives written on a mean-reverting underlying (see e.g. Leung and Liu (2012) and Leung and Shirai (2013)). For all these applications, it is natural to examine the optimal stopping problems over a finite horizon although explicit solutions are less available.

Appendix A Appendix

A.1 Proof of Theorem 3.2 (Optimality of VV).

where \eqref1\eqref{1} follows from the martingale property of (e−rtF(Xt))t≥0(e^{-rt}F(X_{t}))_{t\geq 0} and (e−rtG(Xt))t≥0(e^{-rt}G(X_{t}))_{t\geq 0}.

By (A.2) and the fact that WW majorizes HH, it follows that

Maximizing (A.3) over all τ∈T\tau\in{\mathcal{T}} and t≥0t\geq 0 yields that G(x)W(ψ(x))≥V(x)G(x)W(\psi(x))\geq V(x). ■\scriptstyle{\blacksquare}

A.2 Proof of Lemma 4.1 (Properties of HH). The continuity and twice differentiability of HH on (0,+∞)(0,+\infty) follow directly from those of hh, GG and ψ\psi. To show the continuity of HH at , since H(0)=lim⁡x→−∞(x−c)+G(x)=0H(0)=\lim_{x\to-\infty}\frac{(x-c)^{+}}{G(x)}=0, we only need to show that lim⁡y→0H(y)=0\lim_{y\rightarrow 0}H(y)=0. Note that y=ψ(x)→0y=\psi(x)\rightarrow 0, as x→−∞x\to-\infty. Therefore,

We conclude that HH is also continuous at .

Since both ψ′(x)\psi^{\prime}(x) and G2(x)G^{2}(x) are positive, we only need to determine the sign of h′(x)G(x)−h(x)G′(x)=G(x)−(x−c)G′(x)h^{\prime}(x)G(x)-h(x)G^{\prime}(x)=G(x)-(x-c)G^{\prime}(x).

Define u(x):=(x−c)−G(x)G′(x)u(x):=(x-c)-\frac{G(x)}{G^{\prime}(x)}. u(x)+cu(x)+c is the intersecting point at xx axis of the tangent line of G(x)G(x). Since G(⋅)G(\cdot) is a positive, strictly decreasing and convex function, u(x)u(x) is strictly increasing and u(x)<0u(x)<0 as x→−∞x\to-\infty. Also, note that

Therefore, there exists a unique root x∗x^{*} that solves u(x)=0u(x)=0, and x∗<c∧L∗x^{*}<c\wedge L^{*}, such that

Thus H(y)H(y) is strictly decreasing if y∈(0,ψ(x∗))y\in(0,\psi(x^{*})), and increasing otherwise.

Since σ2,G(x)\sigma^{2},G(x) and (ψ′(x))2(\psi^{\prime}(x))^{2} are all positive, we only need to determine the sign of (L−r)h(x)({\mathcal{L}}-r)h(x):

Therefore, H(y)H(y) is convex if y∈(0,ψ(L∗)]y\in(0,\psi(L^{*})], and concave otherwise. ■\scriptstyle{\blacksquare}

A.3 Proof of Lemma 4.4 (Properties of H^\hat{H}). We first show that V(x)V(x) and h^(x)\hat{h}(x) are twice differentiable everywhere, except for x=b∗x=b^{*}. Recall that

which implies that V′(b∗−)=1=V′(b∗+).V^{\prime}(b^{*}-)=1=V^{\prime}(b^{*}+). Therefore, V(x)V(x) is differentiable everywhere and so is h^\hat{h}. However, V(x)V(x) is not twice differentiable since

and V′′(b∗−)≠V′′(b∗+)V^{\prime\prime}(b^{*}-)\neq V^{\prime\prime}(b^{*}+). Consequently, h^(x)=V(x)−x−c^\hat{h}(x)=V(x)-x-\hat{c} is not twice differentiable at b∗b^{*}.

The twice differentiability of G^\hat{G} and ψ^\hat{\psi} are straightforward. The continuity and differentiability of H^\hat{H} on (0,+∞)(0,+\infty) and twice differentiability on (0,ψ^(b∗))∪(ψ^(b∗),+∞)(0,\hat{\psi}(b^{*}))\cup(\hat{\psi}(b^{*}),+\infty) follow directly. Observing that h^(x)>0\hat{h}(x)>0 as x→−∞x\to-\infty, H^\hat{H} is also continuous at by definition. We now establish the properties of H^\hat{H}.

(i) First we prove the value of H^\hat{H} at :

(ii) With y=ψ^(x)y=\hat{\psi}(x), for x>b∗x>b^{*},

since ψ^′(x)>0\hat{\psi}^{\prime}(x)>0, G^′(x)<0\hat{G}^{\prime}(x)<0, and G^2(x)>0\hat{G}^{2}(x)>0. Therefore, H^(y)\hat{H}(y) is strictly decreasing for y>ψ^(b∗)y>\hat{\psi}(b^{*}).

Since σ2\sigma^{2}, G^(x)\hat{G}(x) and (ψ^′(x))2(\hat{\psi}^{\prime}(x))^{2} are all positive, we only need to determine the sign of (L−r^)h^(x)({\mathcal{L}}-\hat{r})\hat{h}(x):

To determine the sign of (L−r^)h^(x)({\mathcal{L}}-\hat{r})\hat{h}(x) in (−∞,b∗)(-\infty,b^{*}), first note that [(L−r^)h^](x)[({\mathcal{L}}-\hat{r})\hat{h}](x) is a strictly increasing function in (−∞,b∗)(-\infty,b^{*}), since V(x)V(x) is a strictly increasing function and r≥r^r\geq\hat{r} by assumption. Next note that for x∈[L∗,b∗)x\in[L^{*},b^{*}),

Also, note that (L−r^)h^(x) ⁣→ ⁣−∞({\mathcal{L}}-\hat{r})\hat{h}(x)\!\to\!-\infty as x ⁣→ ⁣−∞x\!\to\!-\infty. Therefore, (L−r^)h^(x)<0({\mathcal{L}}-\hat{r})\hat{h}(x)<0 if x∈(−∞,b‾)x\in(-\infty,\underline{b}) and (L−r^)h^(x)>0({\mathcal{L}}-\hat{r})\hat{h}(x)>0 if x∈(b‾,+∞)x\in(\underline{b},+\infty) with b‾<L∗\underline{b}<L^{*} being the break-even point. From this, we conclude property (iii). ■\scriptstyle{\blacksquare}

A.4 Proof of Lemma 5.4 (Properties of H^L\hat{H}_{L}). (i) The continuity of H^L(y)\hat{H}_{L}(y) on (0,+∞)(0,+\infty) is implied by the continuities of h^L\hat{h}_{L}, G^\hat{G} and ψ^\hat{\psi}. The continuity of H^L(y)\hat{H}_{L}(y) at follows from

where we have used that y=ψ^(x)→0y=\hat{\psi}(x)\rightarrow 0 as x→−∞x\to-\infty.

Furthermore, for x∈(−∞,L]∪[bL∗,+∞)x\in(-\infty,L]\cup[b_{L}^{*},+\infty), we have VL(x)=x−cV_{L}(x)=x-c, and thus, h^L(x)=−(c+c^)\hat{h}_{L}(x)=-(c+\hat{c}). Also, with the facts that ψ^(x)\hat{\psi}(x) is a strictly increasing function and G^(x)>0\hat{G}(x)>0, property (i) follows.

(ii) By the definition of H^L\hat{H}_{L}, since G^\hat{G} and ψ^\hat{\psi} are differentiable everywhere, we only need to show the differentiability of VL(x)V_{L}(x). To this end, VL(x)V_{L}(x) is differentiable at bL∗b_{L}^{*} by (5.3)-(5.5), but not at LL. Therefore, H^L\hat{H}_{L} is differentiable for y∈(0,ψ^(L))∪(ψ^(L),+∞)y\in(0,\hat{\psi}(L))\cup(\hat{\psi}(L),+\infty).

In view of the facts that G^′(x)<0\hat{G}^{\prime}(x)<0, ψ^′(x)>0\hat{\psi}^{\prime}(x)>0, and G^2(x)>0\hat{G}^{2}(x)>0, we have for x∈(−∞,L)∪[bL∗,+∞)x\in(-\infty,L)\cup[b_{L}^{*},+\infty),

Therefore, H^L(y)\hat{H}_{L}(y) is strictly decreasing for y∈(0,ψ^(L))∪[ψ^(bL∗),+∞)y\in(0,\hat{\psi}(L))\cup[\hat{\psi}(b_{L}^{*}),+\infty).

(iii) Both G^\hat{G} and ψ^\hat{\psi} are twice differentiable everywhere, while VL(x)V_{L}(x) is twice differentiable everywhere except at x=Lx=L and b∗b^{*}, and so is h^L(x)\hat{h}_{L}(x). Therefore, H^L(y)\hat{H}_{L}(y) is twice differentiable on (0,ψ^(L))∪(ψ^(L),ψ^(b∗))∪(ψ^(b∗),+∞)(0,\hat{\psi}(L))\cup(\hat{\psi}(L),\hat{\psi}(b^{*}))\cup(\hat{\psi}(b^{*}),+\infty).

To determine the convexity/concavity of H^L\hat{H}_{L}, we look at the second order derivative:

This implies that H^L\hat{H}_{L} is convex for y∈(0,ψ^(L))∪(ψ^(bL∗),+∞)y\in(0,\hat{\psi}(L))\cup(\hat{\psi}(b_{L}^{*}),+\infty).

Furthermore, if VL(x)V_{L}(x) is strictly increasing on (L,bL∗)(L,b_{L}^{*}), then (L−r^)h^L(x)({\mathcal{L}}-\hat{r})\hat{h}_{L}(x) is also strictly increasing. To prove this, we first recall from Lemma 4.1 that H(y)H(y) is strictly increasing and concave on (ψ(L∗),+∞)(\psi(L^{*}),+\infty). By Proposition 5.3, we have bL∗<b∗b_{L}^{*}<b^{*}, which implies zL<zz_{L}<z, and thus, H′(zL)>H′(z)H^{\prime}(z_{L})>H^{\prime}(z).

Then, it follows from (4.5), (4.6) and (5.7) that WL′(y)=H′(zL)>H′(z)=W′(y)W_{L}^{\prime}(y)=H^{\prime}(z_{L})>H^{\prime}(z)=W^{\prime}(y) for y∈(ψ(L),zL)y\in(\psi(L),z_{L}). Next, since WL(y)=VLG∘ψ−1(y)W_{L}(y)=\frac{V_{L}}{G}\circ\psi^{-1}(y), we have

The same holds for W′(y)W^{\prime}(y) with V(x)V(x) replacing VL(x)V_{L}(x). As both ψ′(x)\psi^{\prime}(x) and G2(x)G^{2}(x) are positive, WL′(y)>W′(y)W_{L}^{\prime}(y)>W^{\prime}(y) is equivalent to VL′(x)G(x)−VL(x)G′(x)>V′(x)G(x)−V(x)G′(x)V_{L}^{\prime}(x)G(x)-V_{L}(x)G^{\prime}(x)>V^{\prime}(x)G(x)-V(x)G^{\prime}(x). This implies that

since G(x)>0G(x)>0, G′(x)<0G^{\prime}(x)<0, and V(x)>VL(x)V(x)>V_{L}(x). Recalling that V′(x)>0V^{\prime}(x)>0, we have established that VL(x)V_{L}(x) is a strictly increasing function, and so is (L−r^)h^L(x)({\mathcal{L}}-\hat{r})\hat{h}_{L}(x). As we have shown the existence of an interval (ψ^(a‾L),ψ^(dˉL))⊆(ψ^(L),ψ^(bL∗))(\hat{\psi}(\underline{a}_{L}),\hat{\psi}(\bar{d}_{L}))\subseteq(\hat{\psi}(L),\hat{\psi}(b_{L}^{*})) over which H^(y)\hat{H}(y) is concave, or equivalently (L−r^)h^L(x)<0({\mathcal{L}}-\hat{r})\hat{h}_{L}(x)<0 with x=ψ^−1(y)x=\hat{\psi}^{-1}(y). Then by the strictly increasing property of (L−r^)h^L(x)({\mathcal{L}}-\hat{r})\hat{h}_{L}(x), we conclude a‾L=L\underline{a}_{L}=L and dˉL∈(L,bL∗)\bar{d}_{L}\in(L,b_{L}^{*}) is the unique solution to (L−r^)h^L(x)=0({\mathcal{L}}-\hat{r})\hat{h}_{L}(x)=0, and

Hence, we conclude the convexity and concavity of the function H^L\hat{H}_{L}. ■\scriptstyle{\blacksquare}

References