IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0078177.html
   My bibliography  Save this article

An Algorithm for Testing the Efficient Market Hypothesis

Author

Listed:
  • Ioana-Andreea Boboc
  • Mihai-Cristian Dinică

Abstract

The objective of this research is to examine the efficiency of EUR/USD market through the application of a trading system. The system uses a genetic algorithm based on technical analysis indicators such as Exponential Moving Average (EMA), Moving Average Convergence Divergence (MACD), Relative Strength Index (RSI) and Filter that gives buying and selling recommendations to investors. The algorithm optimizes the strategies by dynamically searching for parameters that improve profitability in the training period. The best sets of rules are then applied on the testing period. The results show inconsistency in finding a set of trading rules that performs well in both periods. Strategies that achieve very good returns in the training period show difficulty in returning positive results in the testing period, this being consistent with the efficient market hypothesis (EMH).

Suggested Citation

  • Ioana-Andreea Boboc & Mihai-Cristian Dinică, 2013. "An Algorithm for Testing the Efficient Market Hypothesis," PLOS ONE, Public Library of Science, vol. 8(10), pages 1-11, October.
  • Handle: RePEc:plo:pone00:0078177
    DOI: 10.1371/journal.pone.0078177
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0078177
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0078177&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0078177?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Neely, Christopher & Weller, Paul & Dittmar, Rob, 1997. "Is Technical Analysis in the Foreign Exchange Market Profitable? A Genetic Programming Approach," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 32(4), pages 405-426, December.
    2. Ryan Sullivan & Allan Timmermann & Halbert White, 1999. "Data‐Snooping, Technical Trading Rule Performance, and the Bootstrap," Journal of Finance, American Finance Association, vol. 54(5), pages 1647-1691, October.
    3. Mark J Ready, 2002. "Profits from Technical Trading Rules," Financial Management, Financial Management Association, vol. 31(3), Fall.
    4. Charles, Amélie & Darné, Olivier & Kim, Jae H., 2012. "Exchange-rate return predictability and the adaptive markets hypothesis: Evidence from major foreign exchange rates," Journal of International Money and Finance, Elsevier, vol. 31(6), pages 1607-1626.
    5. Olson, Dennis, 2004. "Have trading rule profits in the currency markets declined over time?," Journal of Banking & Finance, Elsevier, vol. 28(1), pages 85-105, January.
    6. M. A. H. dempster & C. M. Jones, 2001. "A real-time adaptive trading system using genetic programming," Quantitative Finance, Taylor & Francis Journals, vol. 1(4), pages 397-413.
    7. Md Zobaer Hasan & Anton Abdulbasah Kamil & Adli Mustafa & Md Azizul Baten, 2012. "Stochastic Frontier Model Approach for Measuring Stock Market Efficiency with Different Distributions," PLOS ONE, Public Library of Science, vol. 7(5), pages 1-9, May.
    8. Kim, Jae H. & Shamsuddin, Abul & Lim, Kian-Ping, 2011. "Stock return predictability and the adaptive markets hypothesis: Evidence from century-long U.S. data," Journal of Empirical Finance, Elsevier, vol. 18(5), pages 868-879.
    9. Charles, Amélie & Darné, Olivier, 2009. "The random walk hypothesis for Chinese stock markets: Evidence from variance ratio tests," Economic Systems, Elsevier, vol. 33(2), pages 117-126, June.
    10. Fama, Eugene F, 1970. "Efficient Capital Markets: A Review of Theory and Empirical Work," Journal of Finance, American Finance Association, vol. 25(2), pages 383-417, May.
    11. Matthew C. Roberts, 2005. "Technical analysis and genetic programming: Constructing and testing a commodity portfolio," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 25(7), pages 643-660, July.
    12. Taylor, Mark P. & Allen, Helen, 1992. "The use of technical analysis in the foreign exchange market," Journal of International Money and Finance, Elsevier, vol. 11(3), pages 304-314, June.
    13. Ki-Yeol Kwon & Richard Kish, 2002. "Technical trading strategies and return predictability: NYSE," Applied Financial Economics, Taylor & Francis Journals, vol. 12(9), pages 639-653.
    14. Halbert White, 2000. "A Reality Check for Data Snooping," Econometrica, Econometric Society, vol. 68(5), pages 1097-1126, September.
    15. Alvarez-Ramirez, Jose & Rodriguez, Eduardo & Espinosa-Paredes, Gilberto, 2012. "Is the US stock market becoming weakly efficient over time? Evidence from 80-year-long data," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 391(22), pages 5643-5647.
    16. Allen, Franklin & Karjalainen, Risto, 1999. "Using genetic algorithms to find technical trading rules," Journal of Financial Economics, Elsevier, vol. 51(2), pages 245-271, February.
    17. De Grauwe, Paul & Decupere, Danny, 1992. "Psychological Barriers in the Foreign Exchange Market," CEPR Discussion Papers 621, C.E.P.R. Discussion Papers.
    18. Kim, Jae H. & Shamsuddin, Abul, 2008. "Are Asian stock markets efficient? Evidence from new multiple variance ratio tests," Journal of Empirical Finance, Elsevier, vol. 15(3), pages 518-532, June.
    19. R. Rosillo & D. de la Fuente & J. A. L. Brugos, 2013. "Technical analysis and the Spanish stock exchange: testing the RSI, MACD, momentum and stochastic rules using Spanish market companies," Applied Economics, Taylor & Francis Journals, vol. 45(12), pages 1541-1550, April.
    20. Shynkevich, Andrei, 2012. "Performance of technical analysis in growth and small cap segments of the US equity market," Journal of Banking & Finance, Elsevier, vol. 36(1), pages 193-208.
    21. Kwon, Ki-Yeol & Kish, Richard J., 2002. "A comparative study of technical trading strategies and return predictability: an extension of Brock, Lakonishok, and LeBaron (1992) using NYSE and NASDAQ indices," The Quarterly Review of Economics and Finance, Elsevier, vol. 42(3), pages 611-631.
    22. Szakmary, Andrew C. & Shen, Qian & Sharma, Subhash C., 2010. "Trend-following trading strategies in commodity futures: A re-examination," Journal of Banking & Finance, Elsevier, vol. 34(2), pages 409-426, February.
    23. Hsu, Po-Hsuan & Hsu, Yu-Chin & Kuan, Chung-Ming, 2010. "Testing the predictive ability of technical analysis using a new stepwise test without data snooping bias," Journal of Empirical Finance, Elsevier, vol. 17(3), pages 471-484, June.
    24. Cheol‐Ho Park & Scott H. Irwin, 2010. "A reality check on technical trading rule profits in the U.S. futures markets," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 30(7), pages 633-659, July.
    25. Abounoori, Esmaiel & Shahrazi, Mahdi & Rasekhi, Saeed, 2012. "An investigation of Forex market efficiency based on detrended fluctuation analysis: A case study for Iran," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 391(11), pages 3170-3179.
    26. Po-Hsuan Hsu & Chung-Ming Kuan, 2005. "Reexamining the Profitability of Technical Analysis with Data Snooping Checks," Journal of Financial Econometrics, Oxford University Press, vol. 3(4), pages 606-628.
    27. Carol L. Osler, 2000. "Support for resistance: technical analysis and intraday exchange rates," Economic Policy Review, Federal Reserve Bank of New York, issue Jul, pages 53-68.
    28. Massoud Metghalchi & Juri Marcucci & Yung-Ho Chang, 2012. "Are moving average trading rules profitable? Evidence from the European stock markets," Applied Economics, Taylor & Francis Journals, vol. 44(12), pages 1539-1559, April.
    29. Cheung, Yin-Wong & Chinn, Menzie David, 2001. "Currency traders and exchange rate dynamics: a survey of the US market," Journal of International Money and Finance, Elsevier, vol. 20(4), pages 439-471, August.
    30. Andreas Gronlund & Il Gu Yi & Beom Jun Kim, 2012. "Fractal Profit Landscape of the Stock Market," Papers 1205.0505, arXiv.org.
    31. Andreas Grönlund & Il Gu Yi & Beom Jun Kim, 2012. "Fractal Profit Landscape of the Stock Market," PLOS ONE, Public Library of Science, vol. 7(4), pages 1-5, April.
    32. Dragota, Victor & Stoian, Andreea & Pele, Daniel Traian & Mitrica, Eugen & Bensafta, Malik, 2009. "The Development of the Romanian Capital Market: Evidences on Information Efficiency," Journal for Economic Forecasting, Institute for Economic Forecasting, vol. 6(2), pages 147-160, June.
    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. Jacinta Chan Phooi M’ng & Mohammadali Mehralizadeh, 2016. "Forecasting East Asian Indices Futures via a Novel Hybrid of Wavelet-PCA Denoising and Artificial Neural Network Models," PLOS ONE, Public Library of Science, vol. 11(6), pages 1-29, June.
    2. Yan Li & Bo Zheng & Ting-Ting Chen & Xiong-Fei Jiang, 2017. "Fluctuation-driven price dynamics and investment strategies," PLOS ONE, Public Library of Science, vol. 12(12), pages 1-15, December.
    3. Sánchez-Granero, M.A. & Balladares, K.A. & Ramos-Requena, J.P. & Trinidad-Segovia, J.E., 2020. "Testing the efficient market hypothesis in Latin American stock markets," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 540(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. Shynkevich, Andrei, 2012. "Performance of technical analysis in growth and small cap segments of the US equity market," Journal of Banking & Finance, Elsevier, vol. 36(1), pages 193-208.
    2. Andrei Shynkevich, 2021. "Impact of bitcoin futures on the informational efficiency of bitcoin spot market," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 41(1), pages 115-134, January.
    3. Lukas Menkhoff & Mark P. Taylor, 2007. "The Obstinate Passion of Foreign Exchange Professionals: Technical Analysis," Journal of Economic Literature, American Economic Association, vol. 45(4), pages 936-972, December.
    4. Mihai Cristian Dinică & Erica Cristina (Balea) Dinică, 2015. "Testing the Weak-Form Market Eficiency of the Euronext Wheat," Romanian Economic Journal, Department of International Business and Economics from the Academy of Economic Studies Bucharest, vol. 18(55), pages 25-38, March.
    5. Taylor, Mark & Hsu, Po-Hsuan, 2014. "Forty Years, Thirty Currencies and 21,000 Trading Rules: A Large-scale, Data-Snooping Robust Analysis of Technical Trading in t," CEPR Discussion Papers 10018, C.E.P.R. Discussion Papers.
    6. Jacinta Chan Phooi M’ng & Rozaimah Zainudin, 2016. "Assessing the Efficacy of Adjustable Moving Averages Using ASEAN-5 Currencies," PLOS ONE, Public Library of Science, vol. 11(8), pages 1-19, August.
    7. Marshall, Ben R. & Cahan, Rochester H. & Cahan, Jared M., 2008. "Does intraday technical analysis in the U.S. equity market have value?," Journal of Empirical Finance, Elsevier, vol. 15(2), pages 199-210, March.
    8. Cheol‐Ho Park & Scott H. Irwin, 2007. "What Do We Know About The Profitability Of Technical Analysis?," Journal of Economic Surveys, Wiley Blackwell, vol. 21(4), pages 786-826, September.
    9. Hsu, Po-Hsuan & Taylor, Mark P. & Wang, Zigan, 2016. "Technical trading: Is it still beating the foreign exchange market?," Journal of International Economics, Elsevier, vol. 102(C), pages 188-208.
    10. Dan Anghel, 2013. "How Reliable is the Moving Average Crossover Rule for an Investor on the Romanian Stock Market?," The Review of Finance and Banking, Academia de Studii Economice din Bucuresti, Romania / Facultatea de Finante, Asigurari, Banci si Burse de Valori / Catedra de Finante, vol. 5(2), pages 089-115, December.
    11. Shynkevich, Andrei, 2013. "Time-series momentum as an intra- and inter-industry effect: Implications for market efficiency," Journal of Economics and Business, Elsevier, vol. 69(C), pages 64-85.
    12. Zarrabi, Nima & Snaith, Stuart & Coakley, Jerry, 2017. "FX technical trading rules can be profitable sometimes!," International Review of Financial Analysis, Elsevier, vol. 49(C), pages 113-127.
    13. Robert Hudson & Andrew Urquhart, 2021. "Technical trading and cryptocurrencies," Annals of Operations Research, Springer, vol. 297(1), pages 191-220, February.
    14. 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.
    15. Psaradellis, Ioannis & Laws, Jason & Pantelous, Athanasios A. & Sermpinis, Georgios, 2023. "Technical analysis, spread trading, and data snooping control," International Journal of Forecasting, Elsevier, vol. 39(1), pages 178-191.
    16. Fong, Tom Pak Wing & Wu, Shui Tang, 2020. "Predictability in sovereign bond returns using technical trading rules: Do developed and emerging markets differ?," The North American Journal of Economics and Finance, Elsevier, vol. 51(C).
    17. Christopher J. Neely & Paul A. Weller, 2011. "Technical analysis in the foreign exchange market," Working Papers 2011-001, Federal Reserve Bank of St. Louis.
    18. Anghel, Dan Gabriel, 2021. "Data Snooping Bias in Tests of the Relative Performance of Multiple Forecasting Models," Journal of Banking & Finance, Elsevier, vol. 126(C).
    19. Urquhart, Andrew & Zhang, Hanxiong, 2019. "The performance of technical trading rules in Socially Responsible Investments," International Review of Economics & Finance, Elsevier, vol. 63(C), pages 397-411.
    20. Sánchez-Granero, M.A. & Balladares, K.A. & Ramos-Requena, J.P. & Trinidad-Segovia, J.E., 2020. "Testing the efficient market hypothesis in Latin American stock markets," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 540(C).

    More about this item

    Statistics

    Access and download statistics

    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:plo:pone00:0078177. 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: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    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.