IDEAS home Printed from https://ideas.repec.org/a/gam/jsusta/v10y2018i12p4641-d188468.html
   My bibliography  Save this article

Pattern Matching Trading System Based on the Dynamic Time Warping Algorithm

Author

Listed:
  • Sang Hyuk Kim

    (Department of Industrial Engineering, Yonsei University, 50 Yonsei-ro, Seodaemun-gu, Seoul 03722, Korea)

  • Hee Soo Lee

    (Department of Business Administration, Sejong University, 209 Neungdong-ro, Gwangjin-gu, Seoul 03722, Korea)

  • Han Jun Ko

    (Department of Industrial Engineering, Yonsei University, 50 Yonsei-ro, Seodaemun-gu, Seoul 03722, Korea)

  • Seung Hwan Jeong

    (Department of Industrial Engineering, Yonsei University, 50 Yonsei-ro, Seodaemun-gu, Seoul 03722, Korea)

  • Hyun Woo Byun

    (Department of Industrial Engineering, Yonsei University, 50 Yonsei-ro, Seodaemun-gu, Seoul 03722, Korea)

  • Kyong Joo Oh

    (Department of Industrial Engineering, Yonsei University, 50 Yonsei-ro, Seodaemun-gu, Seoul 03722, Korea)

Abstract

The futures market plays a significant role in hedging and speculating by investors. Although various models and instruments are developed for real-time trading, it is difficult to realize profit by processing and trading a vast amount of real-time data. This study proposes a real-time index futures trading strategy that uses the KOSPI 200 index futures time series data. We construct a pattern matching trading system (PMTS) based on a dynamic time warping algorithm that recognizes patterns of market data movement in the morning and determines the afternoon’s clearing strategy. We adopt 13 and 27 representative patterns and conduct simulations with various ranges of parameters to find optimal ones. Our experimental results show that the PMTS provides stable and effective trading strategies with relatively low trading frequencies. Financial market investors are able to make more efficient investment strategies by using the PMTS. In this sense, the system developed in this paper contributes the efficiency of the financial markets and helps to achieve sustained economic growth.

Suggested Citation

  • Sang Hyuk Kim & Hee Soo Lee & Han Jun Ko & Seung Hwan Jeong & Hyun Woo Byun & Kyong Joo Oh, 2018. "Pattern Matching Trading System Based on the Dynamic Time Warping Algorithm," Sustainability, MDPI, vol. 10(12), pages 1-18, December.
  • Handle: RePEc:gam:jsusta:v:10:y:2018:i:12:p:4641-:d:188468
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2071-1050/10/12/4641/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2071-1050/10/12/4641/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Jacopo Carmassi & Daniel Gros & Stefano Micossi, 2009. "The Global Financial Crisis: Causes and Cures," Journal of Common Market Studies, Wiley Blackwell, vol. 47(5), pages 977-996, November.
    2. N/A, 2004. "Index for 2004," European Union Politics, , vol. 5(4), pages 511-512, December.
    3. Hwarng, H. Brian, 2001. "Insights into neural-network forecasting of time series corresponding to ARMA(p,q) structures," Omega, Elsevier, vol. 29(3), pages 273-289, June.
    4. Jacopo Carmassi & Daniel Gros & Stefano Micossi, 2009. "The Global Financial Crisis: Causes and Cures," Journal of Common Market Studies, Wiley Blackwell, vol. 47, pages 977-996, November.
    5. Changyun Wang, 2001. "Investor Sentiment and Return Predictability in Agricultural Futures Markets," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 21(10), pages 929-952, October.
    6. Andrew W. Lo & Harry Mamaysky & Jiang Wang, 2000. "Foundations of Technical Analysis: Computational Algorithms, Statistical Inference, and Empirical Implementation," Journal of Finance, American Finance Association, vol. 55(4), pages 1705-1765, August.
    7. James Crotty, 2009. "Structural causes of the global financial crisis: a critical assessment of the 'new financial architecture'," Cambridge Journal of Economics, Oxford University Press, vol. 33(4), pages 563-580, July.
    8. Andrew W. Lo & Harry Mamaysky & Jiang Wang, 2000. "Foundations of Technical Analysis: Computational Algorithms, Statistical Inference, and Empirical Implementation," Journal of Finance, American Finance Association, vol. 55(4), pages 1705-1770, August.
    9. Leuthold, Raymond M & Garcia, Philip & Lu, Richard, 1994. "The Returns and Forecasting Ability of Large Traders in the Frozen Pork Bellies Futures Market," The Journal of Business, University of Chicago Press, vol. 67(3), pages 459-473, July.
    10. Hartzmark, Michael L, 1987. "Returns to Individual Traders of Futures: Aggregate Results," Journal of Political Economy, University of Chicago Press, vol. 95(6), pages 1292-1306, December.
    11. Ghysels, Eric & Seon, Junghoon, 2005. "The Asian financial crisis: The role of derivative securities trading and foreign investors in Korea," Journal of International Money and Finance, Elsevier, vol. 24(4), pages 607-630, June.
    12. Chou, Jui-Sheng & Ngo, Ngoc-Tri, 2016. "Time series analytics using sliding window metaheuristic optimization-based machine learning system for identifying building energy consumption patterns," Applied Energy, Elsevier, vol. 177(C), pages 751-770.
    13. Hartzmark, Michael L, 1991. "Luck versus Forecast Ability: Determinants of Trader Performance in Futures Markets," The Journal of Business, University of Chicago Press, vol. 64(1), pages 49-74, January.
    14. Chang, Eric C, 1985. "Returns to Speculators and the Theory of Normal Backwardation," Journal of Finance, American Finance Association, vol. 40(1), pages 193-208, March.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Seung Hwan Jeong & Hee Soo Lee & Hyun Nam & Kyong Joo Oh, 2021. "Using a Genetic Algorithm to Build a Volume Weighted Average Price Model in a Stock Market," Sustainability, MDPI, vol. 13(3), pages 1-16, January.
    2. Dev Shah & Haruna Isah & Farhana Zulkernine, 2019. "Stock Market Analysis: A Review and Taxonomy of Prediction Techniques," IJFS, MDPI, vol. 7(2), pages 1-22, May.
    3. Han, Tian & Peng, Qinke & Zhu, Zhibo & Shen, Yiqing & Huang, Huijun & Abid, Nahiyoon Nabeel, 2020. "A pattern representation of stock time series based on DTW," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 550(C).

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Young‐Rae Song & Yong‐Jun Yang & Hyung‐Sik Oh, 2009. "Interaction between Foreign and Domestic Investors in the Korean Stock and Futures Markets," Asian Economic Journal, East Asian Economic Association, vol. 23(2), pages 249-267, June.
    2. Guillermo Llorente & Jiang Wang, 2020. "Trading and information in futures markets," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 40(8), pages 1231-1263, August.
    3. Changyun Wang, 2003. "The behavior and performance of major types of futures traders," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 23(1), pages 1-31, January.
    4. Aaron Tornell & Chunming Yuan, 2012. "Speculation and hedging in the currency futures markets: Are they informative to the spot exchange rates," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 32(2), pages 122-151, February.
    5. Robe, Michel A. & Roberts, John S., 2021. "20 Years of CFTC Data: Who Holds Positions in Agricultural Futures Markets?," 2021 Annual Meeting, August 1-3, Austin, Texas 313995, Agricultural and Applied Economics Association.
    6. Sanders, Dwight R. & Boris, Keith & Manfredo, Mark, 2004. "Hedgers, funds, and small speculators in the energy futures markets: an analysis of the CFTC's Commitments of Traders reports," Energy Economics, Elsevier, vol. 26(3), pages 425-445, May.
    7. Büyükşahin, Bahattin & Robe, Michel A., 2014. "Speculators, commodities and cross-market linkages," Journal of International Money and Finance, Elsevier, vol. 42(C), pages 38-70.
    8. Kocagil, Ahmet E. & Topyan, Kudret, 1997. "An empirical note on demand for speculation and futures risk premium: A Kalman Filter application," Review of Financial Economics, Elsevier, vol. 6(1), pages 77-93.
    9. Lim, Terence & Lo, Andrew W. & Merton, Robert C. & Scholes, Myron S., 2006. "The Derivatives Sourcebook," Foundations and Trends(R) in Finance, now publishers, vol. 1(5–6), pages 365-572, April.
    10. Nicole M. Moran & Scott H. Irwin & Philip Garcia, 2020. "Who Wins and Who Loses? Trader Returns and Risk Premiums in Agricultural Futures Markets," Applied Economic Perspectives and Policy, John Wiley & Sons, vol. 42(4), pages 611-652, December.
    11. Adjemian, Michael K. & Garcia, Philip & Irwin, Scott & Smith, Aaron, 2013. "Non-Convergence in Domestic Commodity Futures Markets: Causes, Consequences, and Remedies," Economic Information Bulletin 155381, United States Department of Agriculture, Economic Research Service.
    12. Kusi, Baah & Agbloyor, Elikplimi & Asongu, Simplice & Abor, Joshua, 2021. "Foreign Bank Assets and Presence on Banking Stability in Africa: Does Strong and Weak Corporate Governance Systems under different Regulatory Regimes Matter?," MPRA Paper 110136, University Library of Munich, Germany.
    13. Buchanan, W. K. & Hodges, P. & Theis, J., 2001. "Which way the natural gas price: an attempt to predict the direction of natural gas spot price movements using trader positions," Energy Economics, Elsevier, vol. 23(3), pages 279-293, May.
    14. Sanders, Dwight R. & Irwin, Scott H. & Merrin, Robert P., 2009. "Smart Money: The Forecasting Ability of CFTC Large Traders in Agricultural Futures Markets," Journal of Agricultural and Resource Economics, Western Agricultural Economics Association, vol. 34(2), pages 1-21, August.
    15. Ahmet E. Kocagil & Kudret Topyan, 1997. "An empirical note on demand for speculation and futures risk premium: A Kalman Filter application," Review of Financial Economics, John Wiley & Sons, vol. 6(1), pages 77-93.
    16. Akbar, Saeed & Rehman, Shafiq ur & Ormrod, Phillip, 2013. "The impact of recent financial shocks on the financing and investment policies of UK private firms," International Review of Financial Analysis, Elsevier, vol. 26(C), pages 59-70.
    17. Chia-Lin Chang & Jukka Ilomäki & Hannu Laurila & Michael McAleer, 2018. "Long Run Returns Predictability and Volatility with Moving Averages," Risks, MDPI, vol. 6(4), pages 1-18, September.
    18. Iain Begg, 2009. "Regulation and Supervision of Financial Intermediaries in the EU: The Aftermath of the Financial Crisis," Journal of Common Market Studies, Wiley Blackwell, vol. 47(5), pages 1107-1128, November.
    19. Sid Ghoshal & Stephen Roberts, 2016. "Extracting Predictive Information from Heterogeneous Data Streams using Gaussian Processes," Papers 1603.06202, arXiv.org, revised Jul 2018.
    20. Bajgrowicz, Pierre & Scaillet, Olivier, 2012. "Technical trading revisited: False discoveries, persistence tests, and transaction costs," Journal of Financial Economics, Elsevier, vol. 106(3), pages 473-491.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jsusta:v:10:y:2018:i:12:p:4641-:d:188468. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.