Algorithm-Based Low-Frequency Trading Using a Stochastic Oscillator, Williams%R, and Trading Volume for the S&P 500
Abstract
:1. Introduction
1.1. Volatility and Market Timing Challenges in Stock Markets
1.2. Stochastic Models, High-Frequency Trading, and Volume-Based Strategies
2. Materials and Methods
2.1. Basics
2.2. Research Overview
2.3. Survey Sample
2.4. Measurement Tools
2.5. Analysis Methods
3. Results
4. Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Achelis, Steven B. 2001. Technical Analysis from A to Z. New York: McGraw-Hill. [Google Scholar]
- Amihud, Yakov, and Haim Mendelson. 1986. Asset pricing and the bid-ask spread. Journal of Financial Economics 17: 223–49. [Google Scholar] [CrossRef]
- Andersen, Torben G., Hyung Jin Chung, and Bent E. Sørensen. 1999. Efficient method of moments estimation of a stochastic volatility model: A Monte Carlo study. Journal of Econometrics 91: 61–87. [Google Scholar] [CrossRef]
- Baker, Malcolm, and Jeremy C. Stein. 2000. Trading is hazardous to your wealth: The common stock investment performance of individual investors. Journal of Finance 55: 773–806. [Google Scholar]
- Baker, Malcolm, and Jeremy C. Stein. 2004. Market liquidity as a sentiment indicator. Journal of Financial Markets 7: 271–99. [Google Scholar] [CrossRef]
- Barberis, Nicholas. 2000. Investing for the long run when returns are predictable. Journal of Finance 55: 225–64. [Google Scholar] [CrossRef]
- Bartolozzi, Marco, Derek Bruce Leinweber, and Anthony William Thomas. 2005. Stochastic opinion formation in scale-free networks. Physical Review E 72: 046113. [Google Scholar] [CrossRef]
- Bekierman, Jeremias, and Bastian Gribisch. 2021. A mixed frequency stochastic volatility model for intraday stock market returns. Journal of Financial Econometrics 19: 496–530. [Google Scholar] [CrossRef]
- Benos, Evangelos, Richard Payne, and Michalis Vasios. 2019. Centralized trading, transparency, and interest rate swap market liquidity: Evidence from the implementation of the Dodd-Frank Act. Journal of Financial Economics 134: 286–306. [Google Scholar] [CrossRef]
- Bergstra, James, and Yoshua Bengio. 2012. Random Search for Hyper-Parameter Optimization. Journal of Machine Learning Research 13: 281–305. [Google Scholar]
- Bershova, Nataliya, and Dmitry Rakhlin. 2013. High-frequency trading and long-term investors: A view from the buy-side. Journal of Investment Strategies 2: 25–69. [Google Scholar] [CrossRef]
- Bloomberg. 2024. Bloomberg.com. Available online: https://www.bloomberg.com/quote/SPX:IND (accessed on 6 June 2024).
- Bodie, Zvi, Alex Kane, and Alan J. Marcus. 2014. Investments, 10th ed. New York: McGraw-Hill Education. [Google Scholar]
- Budish, Eric, Peter Cramton, and John Shim. 2020. The high-frequency trading arms race: Frequent batch auctions as a market design response. Quarterly Journal of Economics 135: 1547–622. [Google Scholar] [CrossRef]
- Bustos, Oscar, and Alexandra Pomares-Quimbaya. 2020. Stock market movement forecast: A systematic review. Expert Systems with Applications 156: 113464. [Google Scholar] [CrossRef]
- Campbell, John Y., and Robert J. Shiller. 1988. The dividend-price ratio and expectations of future dividends and discount factors. The Review of Financial Studies 1: 195–228. [Google Scholar] [CrossRef]
- Carhart, Mark M. 1997. On persistence in mutual fund performance. Journal of Finance 52: 57–82. [Google Scholar] [CrossRef]
- Chen, James. 2020. Return over Maximum Drawdown (RoMaD). Available online: https://www.investopedia.com/terms/r/return-over-maximum-drawdown-romad.asp (accessed on 15 August 2024).
- Chen, You-Shyang, Ching-Hsue Cheng, Chiung-Lin Chiu, and Shu-Ting Huang. 2016. A study of ANFIS-based multi-factor time series models for forecasting stock index. Applied Intelligence 45: 277–92. [Google Scholar] [CrossRef]
- Chen, Shaozhen, Hui Zhu, Wenxuan Liang, Liang Yuan, and Xianhua Wei. 2020. A Stock Index Prediction Method and Trading Strategy Based on the Combination of Lasso-Grid Search-Random Forest. In BenchCouncil International Federated Intelligent Computing and Block Chain Conferences. Singapore: Springer, pp. 431–48. [Google Scholar]
- Chordia, Tarun, T. Clifton Green, and Badrinath Kottimukkalur. 2021. High-frequency trading and market efficiency. Journal of Financial Economics 141: 560–80. [Google Scholar] [CrossRef]
- Cremers, Martijn, Antti Petajisto, and Eric Zitzewitz. 2012. Should benchmark indices have alpha? Revisiting performance evaluation. Critical Finance Review 2: 1–48. [Google Scholar] [CrossRef]
- Damodaran, Aswath. 2012. Investment Valuation: Tools and Techniques for Determining the Value of Any Asset, 3rd ed. Hoboken: John Wiley and Sons. [Google Scholar]
- Davies, Shaun. 2021. Index-Linked Trading and Stock Returns. Paper presented at the Paris December 2021 Finance Meeting EUROFIDAI-ESSEC, Paris, France, December 16. [Google Scholar]
- Davis, P. 2023. The Impact of Macroeconomic Indicators on Market Timing Strategies. Journal of Financial Economics 75: 198–220. [Google Scholar]
- Dichev, Ilia D. 2007. What Are Stock Investors’ Actual Historical Returns? Evidence from Dollar-Weighted Returns. American Economic Review 97: 386–401. [Google Scholar] [CrossRef]
- Elton, Edwin J., and Martin J. Gruber. 1997. Modern portfolio theory, 1950 to date. Journal of Banking & Finance 21: 1743–59. [Google Scholar]
- Elton, Edwin J., Martin J. Gruber, and Christopher R. Blake. 2001. A first look at the accuracy of the CRSP mutual fund database and a comparison of the CRSP and Morningstar mutual fund databases. The Journal of Finance 56: 2415–30. [Google Scholar] [CrossRef]
- Fama, Eugene F., and Kenneth R. French. 1992. The cross-section of expected stock returns. Journal of Finance 47: 427–65. [Google Scholar]
- Fischer, Thomas, and Christopher Krauss. 2018. Deep learning with long short-term memory networks for financial market predictions. European Journal of Operational Research 270: 654–69. [Google Scholar] [CrossRef]
- Focardi, Sergio, Frank J. Fabozzi, and Petter N. Kolm. 2021. Stochastic Methods in Financial Markets. Amsterdam: Elsevier. [Google Scholar]
- Fu, Xiaoyi, Xinqi Ren, Ole J. Mengshoel, and Xindong Wu. 2018. Stochastic optimization for market return prediction using financial knowledge graph. Paper presented at the 2018 IEEE International Conference on Big Knowledge (ICBK), Singapore, November 17–18; pp. 25–32. [Google Scholar]
- Han, Yufeng, Yang Liu, Guofu Zhou, and Yingzi Zhu. 2021. Technical analysis in the stock market: A review. SSRN Electronic Journal 4: 1893–928. [Google Scholar] [CrossRef]
- Hassan, Md Rafiul, Baikunth Nath, and Michael Kirley. 2020. A Fusion Model of HMM, ANN and GA for Stock Market Forecasting. Expert Systems with Applications 33: 171–80. [Google Scholar] [CrossRef]
- Hendershott, Terrence, and Ryan Riordan. 2011. Algorithmic Trading and Information. Working Paper. Berkeley: University of California. [Google Scholar]
- Henriksson, Roy, and Robert Merton. 1981. On Market Timing and Investment Performance. II: Statistical Procedures for Evaluating Forecasting Skills. Working Paper. Cambridge: Sloane School of Management, MIT. [Google Scholar]
- Hsu, Chih Wei, Chih Chung Chang, and Chih Jen Lin. 2003. A Practical Guide to Support Vector Classification. Taipei: Department of Computer Science, National Taiwan University. [Google Scholar]
- Jegadeesh, Narasimhan, and Sheridan Titman. 1993. Returns to buying winners and selling losers: Implications for stock market efficiency. The Journal of Finance 48: 65–91. [Google Scholar] [CrossRef]
- Jensen, Michael C. 1968. The performance of mutual funds in the period 1945–1964. The Journal of Finance 23: 389–416. [Google Scholar]
- Johnson, M., and K. Lee. 2023. Volume-Price Dynamics and Index Forecasting. International Review of Financial Studies 58: 89–110. [Google Scholar]
- Kahneman, Daniel, and Amos Tversky. 1979. On the interpretation of intuitive probability: A reply to Jonathan Cohen. Cognition 7: 409–11. [Google Scholar] [CrossRef]
- Karpoff, Jonathan M. 1987. The relation between price changes and trading volume: A survey. Journal of Financial and Quantitative Analysis 22: 109–26. [Google Scholar] [CrossRef]
- Kim, H., J. Park, and S. Lee. 2023. Technical Analysis and Market Timing: An Empirical Study. International Journal of Finance 34: 45–67. [Google Scholar]
- Kirkpatrick, Charles D., and Julie R. Dahlquist. 2010. Technical Analysis: The Complete Resource for Financial Market Technicians, 2nd ed. Upper Saddle River: FT Press. [Google Scholar]
- Lane, George C. 1985. Lanes stochastics: The ultimate oscillator. Journal of Technical Analysis 21: 37–42. [Google Scholar]
- Leung, Mark T., Hazem Daouk, and An-Sing Chen. 2000. Forecasting stock indices: A comparison of classification and level estimation models. International Journal of Forecasting 16: 173–90. [Google Scholar] [CrossRef]
- Liu, Chang, Huilin Shan, Zhihao Tian, and Hangyu Cheng. 2022. Research on a quantitative trading strategy based on high-frequency trading. BCP Business & Management 26: 1–9. [Google Scholar] [CrossRef]
- Liu, Chao, Shiqun Yin, Miao Zhang, Yi Zeng, and Jiangyue Liu. 2014. An improved grid search algorithm for parameters optimization on SVM. Applied Mechanics and Materials 644: 2216–19. [Google Scholar] [CrossRef]
- Lo, Andrew W., Harry Mamaysky, and Jiang Wang. 2000. Foundations of technical analysis: Computational algorithms, statistical inference, and empirical implementation. Journal of Finance 55: 1705–65. [Google Scholar] [CrossRef]
- López Rodríguez, Francisco Solano, and José Manuel Zurita López. 2022. Detection of Buy and Sell Signals Using Technical Indicators with a Prediction Model Based on Neural Networks. Berlin/Heidelberg: Springer. [Google Scholar] [CrossRef]
- Lopez, R., and T. Wang. 2023. Market Timing and Portfolio Performance: A Comparative Analysis. Global Financial Review 18: 89–112. [Google Scholar]
- Mariani, Maria, and Osei Kofi Tweneboah. 2022. Modeling high frequency stock market data by using stochastic models. Stochastic Analysis and Applications 40: 573–88. [Google Scholar] [CrossRef]
- Market Realist. 2021. What Are Buy and Sell Signals in the Stock Market? Market Realist. Available online: https://marketrealist.com/p/buy-and-sell-signals-explained (accessed on 15 August 2024).
- Markus, Lawrence, and A. Weerasinghe. 1988. Stochastic oscillators. Journal of Differential Equations 71: 288–314. [Google Scholar] [CrossRef]
- Murphy, John J. 1999. Technical Analysis of the Financial Markets: A Comprehensive Guide to Trading Methods and Applications. New York: New York Institute of Finance. [Google Scholar]
- Neely, Michael J. 2010. Stock market trading via stochastic network optimization. Paper presented at 49th IEEE Conference on Decision and Control (CDC), Atlanta, GA, USA, December 15–17; pp. 2777–84. [Google Scholar]
- Paik, Chan Kyu, Jinhee Choi, and Ivan Ureta Vaquero. 2024. Algorithm-Based Low-Frequency Trading Using a Stochastic Oscillator and William% R: A Case Study on the US and Korean Indices. Journal of Risk and Financial Management 17: 92. [Google Scholar] [CrossRef]
- Patel, R., S. Gupta, and M. Sharma. 2023. Trading Volume as a Predictor for Stock Market Indices: A Comprehensive Analysis. Financial Markets Review 29: 301–24. [Google Scholar]
- Penman, Stephen H. 2013. Financial Statement Analysis and Security Valuation, 5th ed. New York: McGraw-Hill Education. [Google Scholar]
- Pring, Martin J. 2002. Technical Analysis Explained: The Successful Investor’s Guide to Spotting Investment Trends and Turning Points. New York: McGraw-Hill. [Google Scholar]
- Rollinger, Thomas N., and Scott T. Hoffman. 2013. Sortino: A ‘Sharper’ Ratio. Chicago: Red Rock Capital. [Google Scholar]
- Sezer, Omer Berat, A. Murat Ozbayoglu, and Erdogan Dogdu. 2017. An artificial neural network-based stock trading system using technical analysis and big data framework. Paper presented at ACM SE ‘17 Proceedings, Kennesaw GA, USA, April 13–15. [Google Scholar]
- Sharpe, William. 1994. The Sharpe ratio. The Journal of Portfolio Management 21: 49–58. [Google Scholar] [CrossRef]
- Shleifer, Andrei, and Robert W. Vishny. 1997. The limits of arbitrage. The Journal of Finance 52: 35–55. [Google Scholar] [CrossRef]
- Sher, Madiha, Nasru Minallah, Tufail Ahmad, and Waleed Khan. 2023. Hyperparameters analysis of long short-term memory architecture for crop classification. International Journal of Electrical and Computer Engineering (IJECE) 13: 4661–70. [Google Scholar] [CrossRef]
- Singh, R., and A. Sharma. 2020. ARIMA-based volatility modeling in emerging markets. International Journal of Financial Studies 8: 123–35. [Google Scholar]
- Smith, J. 2022. The Impact of Trading Volume on Market Index Prediction. Journal of Financial Analysis 47: 123–45. [Google Scholar]
- Topiwala, Pankaj. 2023. Surviving Black Swans II: Timing the 2020–2022 Roller Coaster. Journal of Risk and Financial Management 16: 106. [Google Scholar] [CrossRef]
- Topiwala, Pankaj, and Wei Dai. 2022. Surviving Black Swans: The Challenge of Market Timing Systems. Journal of Risk and Financial Management 15: 280. [Google Scholar] [CrossRef]
- Treynor, Jack, and Kay Mazuy. 1966. Can Mutual Funds Outguess the Market? Harvard Business Review 44: 131–36. [Google Scholar]
- Tsay, Ruey S. 2010. Analysis of Financial Time Series. Hoboken: John Wiley & Sons, vol. 543. [Google Scholar]
- Tsay, Ruey S. 2019. An Introduction to Analysis of Financial Data with R, 2nd ed. Hoboken: Wiley. [Google Scholar]
- Van Dyk, Francois, Gary Van Vuuren, and Andre Heymans. 2014. Hedge Fund Performance Using Scaled Sharpe and Treynor Measures. International Journal of Economics and Business Research 13: 1261–300. [Google Scholar] [CrossRef]
- Verma, Satya, Satya Prakash Sahu, and Tirath Prasad Sahu. 2023. Stock market forecasting using hyperparameter-tuned ensemble model. Paper presented at 2023 IEEE World Conference on Applied Intelligence and Computing (AIC), Sonbhadra, India, July 29–30; pp. 267–71. [Google Scholar]
- Wang, H., X. Li, and Y. Zhang. 2021. Forecasting stock prices using ARIMA: A case study on Chinese market indices. Journal of Economic Forecasting 29: 88–102. [Google Scholar]
- Williams, Larry. 2011. Long-Term Secrets to Short-Term Trading. New York: John Wiley & Sons, vol. 499, pp. 140–44. [Google Scholar]
- Zhang, J., Y. Liu, and H. Zhao. 2022. Optimizing SVM parameters with grid search for stock price prediction. Journal of Financial Analytics. [Google Scholar]
Index | SPY Results | |
---|---|---|
period | January 2010~December 2023 | |
trading numbers | 10 | |
number of gains | 9 | |
number of losses | 1 | |
hit ratio (%) | 90.0 | |
DeepSignal Model standard trading (x1) | max drawdown (%) | −0.1 |
max gain (%) | 28.7 | |
total return (%) | 141.2 | |
AnnR (%) | 7.0 | |
ARM ratio (%) | 70.0 | |
PARC (%) | 0.07 | |
DeepSignal+ Model leverage trading | max drawdown (%) | −0.2 |
max gain (%) | 86.0 | |
total return (%) | 519.3 | |
AnnR (%) | 15.1 | |
ARM ratio (%) | 75.5 | |
PARC (%) | 0.151 | |
S&P 500 index | max drawdown (%) | −15.1 |
max gain (%) | 12.1 | |
total return (%) | 375.0 | |
AnnR (%) | 11.6 | |
ARM ratio (%) | 0.768 | |
PARC (%) | 0.098 |
Date | SPY * | DeepSignal | Buy/Sell | Return Rate | Stochastic | Williams %R |
---|---|---|---|---|---|---|
4 January 2010 | 114.6 | 100.0 | Start | |||
21 June 2010 | 107.9 | 100.0 | BUY | 26.1 | −80.3 | |
27 September 2010 | 114.6 | 106.2 | SELL | 6.2 | 82.3 | −10.3 |
20 June 2011 | 126.8 | 106.2 | BUY | 26.0 | −94.4 | |
7 November 2011 | 126.7 | 106.1 | SELL | −0.1 | 82.4 | −12.6 |
28 May 2012 | 128.2 | 106.1 | BUY | 24.7 | −100.0 | |
6 August 2012 | 140.8 | 116.6 | SELL | 9.9 | 86.1 | −0.6 |
12 November 2012 | 136.4 | 116.6 | BUY | 22.0 | −87.5 | |
21 January 2013 | 150.3 | 128.5 | SELL | 10.2 | 85.6 | 0.0 |
11 January 2016 | 187.8 | 128.5 | BUY | 23.2 | −91.0 | |
28 March 2016 | 206.9 | 141.6 | SELL | 10.2 | 85.3 | −0.8 |
31 October 2016 | 208.6 | 141.6 | BUY | 27.6 | −98.4 | |
12 December 2016 | 225.0 | 152.8 | SELL | 7.9 | 89.0 | −16.5 |
19 November 2018 | 263.3 | 152.8 | BUY | 28.9 | −90.0 | |
18 February 2019 | 279.1 | 162.0 | SELL | 6.0 | 82.5 | −0.5 |
30 March 2020 | 248.2 | 162.0 | BUY | 20.1 | −75.2 | |
1 June 2020 | 319.3 | 208.4 | SELL | 28.7 | 85.7 | −2.5 |
16 May 2022 | 389.6 | 208.4 | BUY | 21.5 | −88.9 | |
1 May 2023 | 412.6 | 220.7 | SELL | 5.9 | 86.2 | −13.5 |
16 October 2023 | 421.2 | 220.7 | BUY | 19.3 | −97.0 | |
4 December 2023 | 460.2 | 241.2 | SELL | 9.3 | 87.7 | −1.1 |
25 December 2023 | 475.3 | 241.2 | End |
Date | SPY * | Deep Signal+ | Stochastic | Williams %R | Buy/Sell | Return Rate | Volume (k) | 52w AVG Volume (k) | 52w +1std (k) |
---|---|---|---|---|---|---|---|---|---|
4 January 2010 | 114.6 | 100.0 | Start | ||||||
21 June 2010 | 107.9 | 100.0 | 26.1 | −80.3 | BUY | 213,140.7 | 204,608.1 | 84,282.4 | |
27 September 2010 | 114.6 | 106.2 | 82.3 | −10.3 | SELL | 6.2 | |||
20 June 2011 | 126.8 | 106.2 | 26.0 | −94.4 | BUY | 159,479.0 | 179,370.8 | 60,152.6 | |
7 November 2011 | 126.7 | 106.0 | 82.4 | −12.6 | SELL | −0.2 | |||
28 May 2012 | 128.2 | 106.0 | 24.7 | −100.0 | BUY | 152,883.5 | 214,504.6 | 99,797.0 | |
6 August 2012 | 140.8 | 127.0 | 86.1 | −0.6 | SELL | 19.8 | |||
12 November 2012 | 136.4 | 127.0 | 22.0 | −87.5 | BUY | 97,677.5 | 150,794.1 | 45,951.9 | |
21 January 2013 | 150.3 | 152.8 | 85.6 | 0.0 | SELL | 20.4 | |||
11 January 2016 | 187.8 | 152.8 | 23.2 | −91.0 | BUY | 187,941.3 | 124,275.5 | 55,937.7 | |
28 March 2016 | 206.9 | 199.5 | 85.3 | −0.8 | SELL | 30.5 | |||
31 October 2016 | 208.6 | 199.5 | 27.6 | −98.4 | BUY | 61,272.5 | 108,508.7 | 48,956.4 | |
12 December 2016 | 225.0 | 231.0 | 89.0 | −16.5 | SELL | 15.8 | |||
19 November 2018 | 263.3 | 231.0 | 28.9 | −90.0 | BUY | 103,061.7 | 90,593.1 | 45,031.4 | |
18 February 2019 | 279.1 | 258.9 | 82.5 | −0.5 | SELL | 12.1 | |||
30 March 2020 | 248.2 | 258.9 | 20.1 | −75.2 | BUY | 171,369.5 | 86,450.7 | 68,913.9 | |
1 June 2020 | 319.3 | 481.6 | 85.7 | −2.5 | SELL | 86.0 | |||
16 May 2022 | 389.6 | 481.6 | 21.5 | −88.9 | BUY | 78,622.4 | 85,514.8 | 36,783.2 | |
1 May 2023 | 412.6 | 566.8 | 86.2 | −13.5 | SELL | 17.7 | |||
16 October 2023 | 421.2 | 566.8 | 19.3 | −97.0 | BUY | 75,433.2 | 82,986.7 | 21,914.7 | |
4 December 2023 | 460.2 | 619.3 | 87.7 | −1.1 | SELL | 9.3 | 159,479.0 | 179,370.8 | 60,152.6 |
25 December 2023 | 475.3 | 619.3 | End |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Paik, C.; Choi, J.; Vaquero, I.U. Algorithm-Based Low-Frequency Trading Using a Stochastic Oscillator, Williams%R, and Trading Volume for the S&P 500. J. Risk Financial Manag. 2024, 17, 501. https://doi.org/10.3390/jrfm17110501
Paik C, Choi J, Vaquero IU. Algorithm-Based Low-Frequency Trading Using a Stochastic Oscillator, Williams%R, and Trading Volume for the S&P 500. Journal of Risk and Financial Management. 2024; 17(11):501. https://doi.org/10.3390/jrfm17110501
Chicago/Turabian StylePaik, ChanKyu, Jinhee Choi, and Ivan Ureta Vaquero. 2024. "Algorithm-Based Low-Frequency Trading Using a Stochastic Oscillator, Williams%R, and Trading Volume for the S&P 500" Journal of Risk and Financial Management 17, no. 11: 501. https://doi.org/10.3390/jrfm17110501
APA StylePaik, C., Choi, J., & Vaquero, I. U. (2024). Algorithm-Based Low-Frequency Trading Using a Stochastic Oscillator, Williams%R, and Trading Volume for the S&P 500. Journal of Risk and Financial Management, 17(11), 501. https://doi.org/10.3390/jrfm17110501