Abstract
We consider a two-way trading problem, where investors buy and sell a stock whose price moves within a certain range. Naturally they want to maximize their profit. Investors can perform up to k trades, where each trade must involve the full amount. We give optimal algorithms for three different models which differ in the knowledge of how the price fluctuates. In the first model, there are global minimum and maximum bounds m and M. We first show an optimal lower bound of \(\varphi \) (where \(\varphi =M/m\)) on the competitive ratio for one trade, which is the bound achieved by trivial algorithms. Perhaps surprisingly, when we consider more than one trade, we can give a better algorithm that loses only a factor of \(\varphi ^{2/3}\) (rather than \(\varphi \)) per additional trade. Specifically, for k trades the algorithm has competitive ratio \(\varphi ^{(2k+1)/3}\). Furthermore we show that this ratio is the best possible by giving a matching lower bound. In the second model, m and M are not known in advance, and just \(\varphi \) is known. We show that this only costs us an extra factor of \(\varphi ^{1/3}\), i.e., both upper and lower bounds become \(\varphi ^{(2k+2)/3}\). Finally, we consider the bounded daily return model where instead of a global limit, the fluctuation from one day to the next is bounded, and again we give optimal algorithms, and interestingly one of them resembles common trading algorithms that involve stop loss limits.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
- 1.
In the terminology of [5] this should be called ‘two-way search’, but we feel that the term does not convey its application in stock market trading.
References
Chen, G.-H., Kao, M.-Y., Lyuu, Y.-D., Wong, H.-K.: Optimal buy-and-hold strategies for financial markets with bounded daily returns. SIAM J. Comput. 31(2), 447–459 (2001)
Chin, F.Y.L., Fu, B., Guo, J., Han, S., Hu, J., Jiang, M., Lin, G., Ting, H.F., Zhang, L., Zhang, Y., Zhou, D.: Competitive algorithms for unbounded one-way trading. Theoret. Comput. Sci. 607(1), 35–48 (2015)
Clemente, J., Hromkovič, J., Komm, D., Kudahl, C.: Advice complexity of the online search problem. In: Mäkinen, V., Puglisi, S.J., Salmela, L. (eds.) IWOCA 2016. LNCS, vol. 9843, pp. 203–212. Springer, Cham (2016). doi:10.1007/978-3-319-44543-4_16
Damaschke, P., Ha, P.H., Tsigas, P.: Online search with time-varying price bounds. Algorithmica 55, 619–642 (2009)
El-Yaniv, R., Fiat, A., Karp, R.M., Turpin, G.: Optimal search and one-way trading online algorithms. Algorithmica 30(1), 101–139 (2001)
Glynn, P.W., Iglehart, D.L.: Trading securities using trailing stops. Manage. Sci. 41(6), 1096–1106 (1995)
Lorenz, J., Panagiotou, K., Steger, A.: Optimal algorithms for \(k\)-search with application in option pricing. Algorithmica 55(2), 311–328 (2009)
Mohr, E., Ahmed, I., Schmidt, G.: Online algorithms for conversion problems: a survey. Surv. Oper. Res. Manage. Sci. 19, 87–104 (2014)
Schmidt, G., Mohr, E., Kersch, M.: Experimental analysis of an online trading algorithm. Electron. Notes Discrete Math. 36, 519–526 (2010)
Schroeder, P., Schmidt, G., Kacem, I.: Optimal on-line algorithms for bi-directional non-preemptive conversion with interrelated conversion rates. In: Proceedings of the 4th IEEE Conference on Control, Decision and Information Technology, pp. 28–33 (2016)
Zhang, W., Xu, Y., Zheng, F., Dong, Y.: Optimal algorithms for online time series search and one-way trading with interrelated prices. J. Comb. Optim. 23, 159–166 (2012)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this paper
Cite this paper
Fung, S.P.Y. (2017). Optimal Online Two-Way Trading with Bounded Number of Transactions. In: Cao, Y., Chen, J. (eds) Computing and Combinatorics. COCOON 2017. Lecture Notes in Computer Science(), vol 10392. Springer, Cham. https://doi.org/10.1007/978-3-319-62389-4_18
Download citation
DOI: https://doi.org/10.1007/978-3-319-62389-4_18
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-62388-7
Online ISBN: 978-3-319-62389-4
eBook Packages: Computer ScienceComputer Science (R0)