Skip to main content
Log in

Optimal filter rules for selling stocks in the emerging stock markets

  • Original Research
  • Published:
Annals of Operations Research Aims and scope Submit manuscript

Abstract

With the application of the optimal stopping techniques, this paper proposes a filter rule for investors in emerging stock markets. In a bull market, once the stock price falls down to the optimal filter size, investors should sell the stock to avoid massive losses. We show that the optimal filter size is a function of the historical highest price, the weights of the future returns and the current drawdown in the investor’s utility function, the characteristics of the underlying stochastic price process, and the discount rate. Out-of-sample tests verify that this filter rule is valid, and the selling signals generated by the filter rule are at the beginning of the downtrend in the most emerging stock markets.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5

Similar content being viewed by others

References

  • Alexander, G. J., & Baptista, A. M. (2006). Portfolio selection with a drawdown constraint. Journal of Banking & Finance, 30(11), 3171–3189.

    Article  Google Scholar 

  • Alexander, S. S. (1961). Price movements in speculative markets: Trends or random walks (pre-1986). Industrial Management Review, 2(2), 7.

    Google Scholar 

  • Alexander, S. S. (1964). Price movements in speculative markets-trends or random walks, number 2. IMR; Industrial Management Review (pre-1986), 5(2), 25.

  • Almujamed, H. I. (2019). Filter rule performance in an emerging market: evidence from qatari listed companies. International Journal of Productivity and Performance Management.

  • Beirne, J., Caporale, G. M., Schulze Ghattas, M., & Spagnolo, N. (2010). Global and regional spillovers in emerging stock markets: A multivariate garch-in-mean analysis. Emerging Markets Review, 11(3), 250–260.

    Article  Google Scholar 

  • Boyer, B. H., Kumagai, T., & Yuan, K. (2006). How do crises spread? evidence from accessible and inaccessible stock indices. The Journal of Finance, 61(2), 957–1003.

    Article  Google Scholar 

  • Chambet, A., & Gibson, R. (2008). Financial integration, economic instability and trade structure in emerging markets. Journal of International Money and Finance, 27(4), 654–675.

    Article  Google Scholar 

  • Chang, T., Gil Alana, L., Aye, G. C., Gupta, R., & Ranjbar, O. (2016). Testing for bubbles in the brics stock markets. Journal of Economic Studies, 43(4), 646–660.

    Article  Google Scholar 

  • Chen, V. Z., Li, J., & Shapiro, D. M. (2012). International reverse spillover effects on parent firms: Evidences from emerging-market mnes in developed markets. European Management Journal, 30(3), 204–218.

    Article  Google Scholar 

  • Cooper, M. (1999). Filter rules based on price and volume in individual security overreaction. The Review of Financial Studies, 12(4), 901–935.

    Article  Google Scholar 

  • Corrado, C. J., & Lee, S.-H. (1992). Filter rule tests of the economic significance of serial dependencies in daily stock returns. Journal of Financial Research, 15(4), 369–387.

    Article  Google Scholar 

  • Cvitanic, J., & Karatzas, I. (1994). On portfolio optimization under drawdown constraints.

  • Dayanik, S. (2008). Optimal stopping of linear diffusions with random discounting. Mathematics of Operations Research, 33(3), 645–661.

    Article  Google Scholar 

  • Dayanik, S., & Karatzas, I. (2003). On the optimal stopping problem for one-dimensional diffusions. Stochastic Processes and Their Applications, 107(2), 173–212.

    Article  Google Scholar 

  • de Souza, M. J. S., Ramos, D. G. F., Pena, M. G., Sobreiro, V. A., & Kimura, H. (2018). Examination of the profitability of technical analysis based on moving average strategies in brics. Financial Innovation, 4(1), 1–18.

    Article  Google Scholar 

  • Dimitriou, D., Kenourgios, D., & Simos, T. (2013). Global financial crisis and emerging stock market contagion: A multivariate fiaparch-dcc approach. International Review of Financial Analysis, 30, 46–56.

    Article  Google Scholar 

  • Egami, M., & Oryu, T. (2017). A direct solution method for pricing options involving the maximum process. Finance and Stochastics, 21(4), 967–993.

    Article  Google Scholar 

  • Fama, E. F., & Blume, M. E. (1966). Filter rules and stock-market trading. The Journal of Business, 39(1), 226–241.

    Article  Google Scholar 

  • Fifield, S. G., Power, D. M., & Donald Sinclair, C. (2005). An analysis of trading strategies in eleven European stock markets. The European Journal of Finance, 11(6), 531–548.

    Article  Google Scholar 

  • Grossman, S. J., & Zhou, Z. (1993). Optimal investment strategies for controlling drawdowns. Mathematical Finance, 3(3), 241–276.

    Article  Google Scholar 

  • Hsieh, C. H., & Barmish, B. R. (2017). On drawdown-modulated feedback control in stock trading. IFAC PapersOnLine, 50(1), 952–958.

    Article  Google Scholar 

  • Huang, Y.-S. (1995). The trading performance of filter rules on the Taiwan stock exchange. Applied Financial Economics, 5(6), 391–395.

    Article  Google Scholar 

  • Huyghebaert, N., & Wang, L. (2010). The co-movement of stock markets in east Asia: Did the 1997–1998 Asian financial crisis really strengthen stock market integration? China Economic Review, 21(1), 98–112.

    Article  Google Scholar 

  • Hwang, E., Min, H. G., Kim, B. H., & Kim, H. (2013). Determinants of stock market comovements among us and emerging economies during the us financial crisis. Economic Modelling, 35, 338–348.

    Article  Google Scholar 

  • Iacus, S. M. (2009). Simulation and inference for stochastic differential equations: With R examples. New York: Springer Science & Business Media.

    Google Scholar 

  • Karpowicz, A., & Szajowski, K. (2007). Double optimal stopping of a risk process. Stochastics An International Journal of Probability and Stochastic Processes, 79(1–2), 155–167.

    Article  Google Scholar 

  • Kim, B.-H., Kim, H., & Lee, B.-S. (2015). Spillover effects of the us financial crisis on financial markets in emerging Asian countries. International Review of Economics & Finance, 39, 192–210.

    Article  Google Scholar 

  • Korajczyk, R. A. (1996). A measure of stock market integration for developed and emerging markets. The World Bank Economic Review, 10(2), 267–289.

    Article  Google Scholar 

  • Kozyra, J., & Lento, C. (2011). Filter rules: Follow the trend or take the contrarian approach? Applied Economics Letters, 18(3), 235–237.

    Article  Google Scholar 

  • Lam, K., & Yam, H. (1997). Cusum techniques for technical trading in financial markets. Financial Engineering and the Japanese Markets, 4(3), 257–274.

    Article  Google Scholar 

  • Maier Paape, S. (2018). Risk averse fractional trading using the current drawdown.

  • Mandelbrot, B. (1966). Forecasts of future prices, unbiased markets, and ‘martingale’ models. The Journal of Business, 39(1), 242–255.

    Article  Google Scholar 

  • Matsubayashi, N., & Nishino, H. (1999). An application of Lemke’s method to a class of Markov decision problems. European Journal of Operational Research, 116(3), 584–590.

    Article  Google Scholar 

  • Müller, A. (2000). Expected utility maximization of optimal stopping problems. European Journal of Operational Research, 122(1), 101–114.

    Article  Google Scholar 

  • Norden, L., & Weber, M. (2009). The co-movement of credit default swap, bond and stock markets: An empirical analysis. European Financial Management, 15(3), 529–562.

    Article  Google Scholar 

  • Praetz, P. D. (1976). Rates of return on filter tests. The Journal of Finance, 31(1), 71–75.

    Article  Google Scholar 

  • Samuelson, P. A. (1965). Proof that properly anticipated prices fluctuate randomly. Industrial Management Review, 6(1), 41–49.

    Google Scholar 

  • Shynkevich, A. (2017). Return predictability in emerging equity market sectors. Applied Economics, 49(5), 433–445.

    Article  Google Scholar 

  • Sobreiro, V. A., da Costa, T. R. C. C., Nazário, R. T. F., & e Silva, J. L., Moreira, E. A., Lima Filho, M. C., Kimura, H., & Zambrano, J. C. A. (2016). The profitability of moving average trading rules in brics and emerging stock markets. The North American Journal of Economics and Finance,38, 86–101.

  • Sweeney, R. J. (1988). Some new filter rule tests: Methods and results. Journal of Financial and Quantitative Analysis, 23(3), 285–300.

    Article  Google Scholar 

  • Szakmary, A., Davidson, W. N., III., & Schwarz, T. V. (1999). Filter tests in nasdaq stocks. Financial Review,34(1), 45–70.

  • Tai, C. S. (2007). Market integration and contagion: Evidence from Asian emerging stock and foreign exchange markets. Emerging Markets Review, 8(4), 264–283.

    Article  Google Scholar 

  • Tversky, A., & Kahneman, D. (1992). Advances in prospect theory: Cumulative representation of uncertainty. Journal of Risk and Uncertainty, 5(4), 297–323.

    Article  Google Scholar 

  • Vasiliou, D., Eriotis, N., & Papathanasiou, S. (2006). How rewarding is technical analysis? evidence from athens stock exchange. Operational Research, 6(2), 85–102.

    Article  Google Scholar 

  • Xanthopoulos, E., Aravossis, K., & Papathanasiou, S. (2017). Profitability of trading strategies before and during the greek crisis: An empirical study. The Journal of Prediction Markets, 11(1), 1–26.

    Article  Google Scholar 

  • Yang, Z., & Zhong, L. (2013). Towards optimal portfolio strategy to control maximum drawdown: The case of risk based dynamic asset allocation. China Finance Review International, 3(2), 131–163.

    Article  Google Scholar 

  • Yu, X., Zhou, C., & Zhou, Y. (2018). On dynamic programming principle for stochastic control under expectation constraints. arXiv preprint arXiv:1802.03954.

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Zhenya Liu.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendices

Appendix A: Proof of proposition 3.1

The following lemma is useful in the proof of proposition 3.1

Lemma A.1

Consider a real-valued continuous function \(f(x) = ax^{c_1} + bx^{c_2}\) defined on \({\mathbb {R}}^{+}\). If \(a > 0\), \(b < 0\), and \( c_2 > c_1\), then \(f(x) \ge 0\) on \((0,(-\frac{a}{b})^{\frac{1}{c_2-c_1}}]\) and \(f(x) < 0\) on \(((-\frac{a}{b})^{\frac{1}{c_2-c_1}},+\infty )\).

Proof

Lemma A.1 Let \(f(x) \ge 0\), then we have

$$\begin{aligned} ax^{c_1} + bx^{c_2} \ge 0 \Rightarrow ax^{c_1} \ge -bx^{c_2}. \end{aligned}$$

Because \(b < 0\), and \( c_2 > c_1\), we can divide both sides by b and \(x^{c_1}\) to derivate the following inequations

$$\begin{aligned} ax^{c_1} \ge -bx^{c_2} \Rightarrow -\frac{a}{b} \ge x^{c_2 - c_1} \Rightarrow \left( -\frac{a}{b}\right) ^{\frac{1}{c_2-c_1}} \ge x. \end{aligned}$$

Lemma A.1 is proved. \(\square \)

Proof of Proposition3.1

We start by the infinitesimal generator \({\mathbb {L}}\) defined by

$$\begin{aligned} {\mathbb {L}} = \frac{\sigma ^2x^2}{2}\frac{d^2}{dx^2}+\mu x\frac{d}{dx} \end{aligned}$$

and the ordinary differential equation defined by

$$\begin{aligned} {\mathbb {L}}f(x) = rx \end{aligned}$$

The positive increasing solution \(\psi (x)\) and the decreasing solution \(\varphi (x)\) of the ODE are following

$$\begin{aligned} \psi (x) = x^{\gamma _1} \ \ ,\ \ \varphi (x) = x^{\gamma _0} \end{aligned}$$

where

$$\begin{aligned} \gamma _{0},\gamma _{1} \triangleq \frac{-\left( \frac{2\mu }{\sigma ^2}-1\right) \mp \sqrt{\left( \frac{2\mu }{\sigma ^2}-1\right) ^2+\frac{8r}{\sigma ^2}}}{2} \end{aligned}$$

It is clear that \(\gamma _1 > 0 , \gamma _0 < 0\).

For the geometric Brownian motion with the drift term \(\mu \) and the diffusion term \(\sigma \), these two solutions can represent the first passage time \(\tau _k = \inf \{t \ge : X_t = k\}\) by

$$\begin{aligned} {\mathbb {E}}^{x}(e^{-r \tau _k}) = \left\{ \begin{aligned} \frac{\psi (x)}{\psi (k)} \ \ ,&\ \ if \ \ x \le k\\ \frac{\varphi (x)}{\varphi (k)} \ \ ,&\ \ if \ \ x \ge k \end{aligned} \right. \end{aligned}$$
(1.1)

We consider a general optimal stopping problem defined by

$$\begin{aligned} V(x) = \sup _{\tau \in \Gamma }{\mathbb {E}}^{x}[e^{-r\tau }g(X_{\tau })] \end{aligned}$$

We set the interval [mn] which the initial value x of the process \(X_t\) belongs to. If \(X_t\) leaves the interval [mn], the process will stop. The expectation \({\mathbb {E}}^{x}[e^{-r\tau }g(X_{\tau })]\)can be represented as the average of escaping from the upper bound n and escaping from the lower bound m.

$$\begin{aligned} \begin{aligned} {\mathbb {E}}^{x}(e^{-r(\tau _m \wedge \tau _n)}g_{\tau _m \wedge \tau _n})&= g(m){\mathbb {E}}^{x}(e^{-r\tau _m}1_{\tau _m<\tau _n}) + g(n){\mathbb {E}}^{x}(e^{-r\tau _n}1_{\tau _m>\tau _n})\\&= g(m)\frac{\psi (x)\varphi (n)-\psi (n)\varphi (x)}{\psi (m)\varphi (n)-\psi (n)\varphi (m)}+g(n)\frac{\psi (m)\varphi (x)-\psi (x)\varphi (m)}{\psi (m)\varphi (n)-\psi (n)\varphi (m)} \end{aligned}\nonumber \\ \end{aligned}$$
(1.2)

And if \(m = x = n\), \({\mathbb {E}}^{x}(e^{-r(\tau _m \wedge \tau _n)}g_{\tau _m \wedge \tau _n}) = g(x)\) The optimal stopping problem is considering to find the optimal interval \([m^*(x), n^*(x)]\) to maximize \({\mathbb {E}}^{x}(e^{-r(\tau _m \wedge \tau _n)}g_{\tau _m \wedge \tau _n})\).

Before giving the solution, we firstly define the continuous and strictly function F(x) by

$$\begin{aligned} F(x) \triangleq \frac{\psi (x)}{\varphi (x)} = x^{\gamma _1 - \gamma _0} \end{aligned}$$
(1.3)

The Eq. 1.2 can be expressed as

$$\begin{aligned} {\mathbb {E}}^{x}(e^{-r(\tau _m \wedge \tau _n)}g_{\tau _m \wedge \tau _n}) = \varphi (x)\bigg [ \frac{g(m)}{\varphi (m)}\cdot \frac{F(m)-F(x)}{F(n)-F(m)}+\frac{g(n)}{\varphi (n)}\cdot \frac{F(x)-F(m)}{F(n)-F(m)}\bigg ] \end{aligned}$$
(1.4)

Furthermore, we set function \(G(\cdot )\) as

$$\begin{aligned} G(\cdot ) := \frac{g}{\varphi }\circ F^{-1}(\cdot ). \end{aligned}$$
(1.5)

and

$$\begin{aligned} Y_t := F(X_t). \end{aligned}$$
(1.6)

We replace \(X_t\) in Eq. 1.2 by \(Y_t\), then

$$\begin{aligned} {\mathbb {E}}^{x}(e^{-r(\tau _m \wedge \tau _n)}g_{\tau _m \wedge \tau _n})= \left\{ \begin{aligned}&\varphi (F^{-1}(y))\bigg [ G(y_m)\frac{y_m-y}{y_n-y_m}+G(y_n)\frac{y-y_n}{y_n-y_m}\bigg ]&m < n \\&\varphi (F^{-1}(y))G(y)&m = n \end{aligned} \right. \nonumber \\ \end{aligned}$$
(1.7)

where \(y_m = F(m)\), \(y_n = F(n)\).

It is natural that the value function V(x) is \(V(F^{-1}(y))\), and it can represented under the optimal interval \([m^*(x), n^*(x)]\) as

$$\begin{aligned} V(F^{-1}(y)) = \left\{ \begin{aligned}&\varphi (F^{-1}(y))\bigg [ G(y_m^*)\frac{y_m^*-y}{y_n^*-y_m^*}+G(y_n^*)\frac{y-y_n^*}{y_n^*-y_m^*}\bigg ]&m^*(x) < n^*(x)\\&\varphi (F^{-1}(y))G(y)&m ^*(x) = n^*(x) \end{aligned} \right. \nonumber \\ \end{aligned}$$
(1.8)

where \(y_m^* = F(m^*(x))\), \(y_n^* = F(n^*(x))\) and \(y = F(x)\). Since \(V(x) \ge {\mathbb {E}}^{x}(e^{-r(\tau _m \wedge \tau _n)}g_{\tau _m \wedge \tau _n})\) for any [mn], we have

$$\begin{aligned} G(y_m^*)\frac{y_m^*-y}{y_n^*-y_m^*}+G(y_n^*)\frac{y-y_n^*}{y_n^*-y_m^*} \ge G(y) \end{aligned}$$

So the value function is the smallest nonnegative concave majorant of G(y). And the continue region \({\mathcal {S}}\) and the optimal stopping time \(\tau ^*\) is defined as

$$\begin{aligned} {\mathcal {S}} = \{x :V(x) = g(x)\} \qquad and \qquad \tau ^* = \inf \{t \ge 0: X_t \in {\mathcal {S}}\} \end{aligned}$$

In our optimal stopping problem, the reward function G(y) is

$$\begin{aligned} G_S(y) = \frac{\frac{\phi _1}{\phi _2} \sqrt{S} - (S - y^{\frac{1}{\gamma _1 - \gamma _0}})}{y^{\frac{\gamma _0}{\gamma _1 - \gamma _0}}} \end{aligned}$$
(1.9)

where the subscript S means that the highest price is fixed at S. The method to find the smallest concave majorant is making an tangent line of the curve \(G_S(y)\) from the origin point. Hence, the concavity of \(G_S(y)\) is necessary to indicate the existence of the tangent line. The first-order and second-order derivative of \(G_S(y)\) are presented as followed.

$$\begin{aligned} G^{\prime }_S(y)= & {} -\frac{\gamma _0}{\gamma _1-\gamma _0}\left( \frac{\phi _1}{\phi _2}\sqrt{S} - S\right) y^{-\frac{\gamma _1}{\gamma _1-\gamma _0}} + \phi _2\frac{1-\gamma _0}{\gamma _1-\gamma _0}y^{\frac{1-\gamma _1}{\gamma _1-\gamma _0}} \end{aligned}$$
(1.10)
$$\begin{aligned} G^{\prime \prime }_S(y)= & {} \frac{\gamma _0\gamma _1}{ (\gamma _1-\gamma _0)^2}\left( \frac{\phi _1}{\phi _2}\sqrt{S} - S\right) y^{-\frac{\gamma _1}{\gamma _1-\gamma _0}-1} + \phi _2\frac{(1-\gamma _0)(1-\gamma _1)}{(\gamma _1-\gamma _0)^2}y^{\frac{1-\gamma _1}{\gamma _1-\gamma _0}-1}\qquad \end{aligned}$$
(1.11)

\(G^{\prime \prime }_S(y)\) has the same formula as f(x) in lemma A.1. We can take \(\frac{\gamma _0\gamma _1}{ (\gamma _1-\gamma _0)^2}(\frac{\phi _1}{\phi _2}\sqrt{S} - S)\) as a, \(\phi _2\frac{(1-\gamma _0)(1-\gamma _1)}{(\gamma _1-\gamma _0)^2}\) as b, \(-\frac{\gamma _1}{\gamma _1-\gamma _0}-1\) as \(c_1\) and \(\frac{1-\gamma _1}{\gamma _1-\gamma _0}-1\) as \(c_2\).

Owing to \(\gamma _1 > 1\) and \(\gamma _0 < 0\), we have

$$\begin{aligned} \phi _2\frac{(1-\gamma _0)(1-\gamma _1)}{(\gamma _1-\gamma _0)^2}< 0 ,\quad -\frac{\gamma _1}{\gamma _1-\gamma _0}-1 < \frac{1-\gamma _1}{\gamma _1-\gamma _0}-1. \end{aligned}$$

We define the lower bound for S by

$$\begin{aligned} \frac{\phi _1}{\phi _2}\sqrt{S} - S \le 0 \quad \Rightarrow \quad S\ge {\underline{S}} = (\frac{\phi _1}{\phi _2})^2. \end{aligned}$$

When \(\frac{\phi _1}{\phi _2}\sqrt{S} - S < 0\), \(\frac{\gamma _0\gamma _1}{ (\gamma _1-\gamma _0)^2}(\frac{\phi _1}{\phi _2}\sqrt{S} - S) > 0\). Based on lemma A.1, \(G^{\prime \prime }_S(y)\) is positive around the origin point and negative with y increasing to infinity. The curve of \(G_S(y)\) is convex with y around zero and becomes concave with y increasing, which guarantees the existence of the tangent line from the origin point.

We can compute the tangent point \(x^*(S)\) that

$$\begin{aligned} \begin{aligned} x^*(S) = \frac{\frac{\phi _1}{\phi _2}\sqrt{S}-S}{\phi _2}\frac{\gamma _1}{1 - \gamma _1}. \end{aligned} \end{aligned}$$
(1.12)

Since the process \(X_t\) is below S, we have the upper bound that

$$\begin{aligned} S \ge x^*(S) = \frac{\frac{\phi _1}{\phi _2}\sqrt{S}-S}{\phi _2}\frac{\gamma _1}{1 - \gamma _1}\quad \Rightarrow \quad {\overline{S}} = \left( \frac{\phi _1\gamma _1}{\phi _2}\right) ^2. \end{aligned}$$
(1.13)

\(\square \)

Proof of Theorem 3.4

We consider to use mean value theorems for definite integrals in Eq. 3.13 but we just take the approximate value.

$$\begin{aligned} \int ^{S+\epsilon }_{S} P(u)\times P_f(u)\times \left( \frac{\phi _1}{\phi _2}\sqrt{u} - e(u)\right) du \approx P(S) \times P_f(S)\times \left( \frac{\phi _1}{\phi _2}\sqrt{S} - e(S)\right) \epsilon \\ \int ^{S+\epsilon }_{S}\frac{F'(n)dn}{F(n)-F(n-e(n))} \approx \epsilon \frac{F'(S)}{F(S)-F(S-e(S))} \end{aligned}$$

Then we define a function \(v(S,\epsilon )\) by

$$\begin{aligned} \begin{aligned} v(S,\epsilon ) = \sup _{e} \frac{\varphi (x)}{\varphi (S-e(S))} \frac{F'(S)}{F(S)-F(S-e(S))}(\frac{\phi _1}{\phi _2}\sqrt{S} - e(S))\epsilon \\ + \frac{\varphi (S)}{\varphi (S+\epsilon )}\times \exp (-\epsilon \frac{F'(S)}{F(S)-F(S-e(S))}) V(S+\epsilon ). \end{aligned} \end{aligned}$$
(6.14)

Lemma 4 from Egami and Oryu (2017) shows that

$$\begin{aligned} \frac{v(S,\epsilon )}{\varphi (S)} \overset{\epsilon \rightarrow 0}{=} \frac{\varphi '(S+\epsilon )}{\varphi '(S)}\frac{V(S+\epsilon )}{\varphi (S+\epsilon )} \end{aligned}$$
(6.15)

From Eq. 6.14, It can be useful to notice that

$$\begin{aligned} \begin{aligned} v(S,\epsilon )-\frac{\varphi (S)}{\varphi (S+\epsilon )}\times \exp (-\epsilon \frac{F'(S)}{F(S)-F(S-e^*(S))}) V(S+\epsilon ) \\ = \frac{\varphi (x)}{\varphi (S-e^*(S))} \frac{F'(S)}{F(S)-F(S-e^*(S))}\left( \frac{\phi _1}{\phi _2}\sqrt{S} - e^*(S)\right) \epsilon . \end{aligned} \end{aligned}$$
(6.16)

where \(e^*(S)\) is the maximizer of Eq. 6.14. Equations 6.15 and 6.16 solve \(v(S, \epsilon )\). It is clear that \(\lim _{\epsilon \rightarrow 0}v(S,\epsilon ) = V(S)\), and we have the expression of the value function V(S) that

$$\begin{aligned} \begin{aligned} V(S) = \sup _{e}&\frac{\varphi (S)}{\varphi (S - e(S))}\frac{F'(S)\varphi '(S)}{\varphi ''(S)(F(S)-F(S-e(S)))+F'(S)\varphi (S)}\\&\times \left( \frac{\phi _1}{\phi _2}\sqrt{S} - e(S)\right) . \end{aligned} \end{aligned}$$
(6.17)

Hence, the optimal stopping problem is to find the maximizer \(e^*(S)\) of Eq. 6.17\(\square \)

Appendix B: Robust test

1.1 B.1: Using weekly data

We apply the weekly data to check the robustness of our filter rule. Figures 6789 and 10 are the results. we can find that during the 2008 global financial crisis in Chinese stock market, the selling signal based on daily data is around November 2007, but the selling signal based on weekly data is around December 2007. It results in an additional loss of 1.5%, other periods and markets have similar results. However, compared with the entire crisis, the filter rule based on weekly data is still effective to control losses.

Fig. 6
figure 6

The Threshold for the Chinese Stock Market(Weekly)

Fig. 7
figure 7

The Threshold for the Indian Stock Market(Weekly)

Fig. 8
figure 8

The Threshold for the Brazilian Stock Market(Weekly)

Fig. 9
figure 9

The Threshold for the Russian Stock Market(Weekly)

Fig. 10
figure 10

The Threshold for the South African Stock Market(Weekly)

1.2 B.2: Using mean absolute deviation

Considering the standard deviation is not the only proxy of the optimal drawdown for investors, we also use the mean absolute deviation(MAD) for estimating \({\hat{\phi }}_1/{\hat{\phi }}_2\) to conduct the robust test. The new esitmated results is presented in Table 5

Table 5 The estimations of \(\phi _1/\phi _2\) based on the mean absolute deviation and the standard deviation

We can find that the estimated \(\phi _1/\phi _2\) based on the mean absolute deviation is smaller than our original results. We also apply the estimated \(\phi _1/\phi _2\) based on the mean absolute deviation to our empirical tests. The results are shown by Figs. 11121314, and 15. The thresholds becomes smaller, and the filter rule is more likely to deliver selling signals, especially when the price drop a lot during a uptrend. It makes investor sell stocks too early to get the potential profits in the subsequent price rising. Hence, the standard deviation would be better to estimate \(\phi _1/\phi _2\).

Fig. 11
figure 11

The Threshold for the Chinese Stock Market(based on MAD)

Fig. 12
figure 12

The Threshold for the Indian Stock Market(basd on MAD)

Fig. 13
figure 13

The Threshold for the Brazilian Stock Market(basd on MAD)

Fig. 14
figure 14

The Threshold for the Russian Stock Market(based on MAD)

Fig. 15
figure 15

The Threshold for the South African Stock Market(based on MAD)

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Boubaker, S., Han, X., Liu, Z. et al. Optimal filter rules for selling stocks in the emerging stock markets. Ann Oper Res 330, 211–242 (2023). https://doi.org/10.1007/s10479-021-04381-w

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10479-021-04381-w

Keywords

JEL Classification

Navigation