IDEAS home Printed from https://ideas.repec.org/a/eee/empfin/v63y2021icp230-251.html
   My bibliography  Save this article

Trading the foreign exchange market with technical analysis and Bayesian Statistics

Author

Listed:
  • Hassanniakalager, Arman
  • Sermpinis, Georgios
  • Stasinakis, Charalampos

Abstract

In this study, the profitability of technical analysis and Bayesian Statistics in trading the EUR/USD, GBP/USD, and USD/JPY exchange rates are examined. For this purpose, seven thousand eight hundred forty-six technical rules are generated, and their profitability is assessed through a data snooping procedure. Then, the most promising rules are combined with a Naïve Bayes, a Relevance Vector Machine, a Dynamic Model Averaging, a Dynamic Model Selection and a Bayesian regularized Neural Network model. The findings show that technical analysis has value in foreign exchange trading, but the profit margins are small. On the other hand, Bayesian Statistics seems to increase the profitability of technical rules up to five times.

Suggested Citation

  • Hassanniakalager, Arman & Sermpinis, Georgios & Stasinakis, Charalampos, 2021. "Trading the foreign exchange market with technical analysis and Bayesian Statistics," Journal of Empirical Finance, Elsevier, vol. 63(C), pages 230-251.
  • Handle: RePEc:eee:empfin:v:63:y:2021:i:c:p:230-251
    DOI: 10.1016/j.jempfin.2021.07.006
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0927539821000542
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.jempfin.2021.07.006?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
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. 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.
    2. Inoue, Atsushi & Rossi, Barbara, 2019. "The effects of conventional and unconventional monetary policy on exchange rates," Journal of International Economics, Elsevier, vol. 118(C), pages 419-447.
    3. Joseph P. Romano & Michael Wolf, 2005. "Stepwise Multiple Testing as Formalized Data Snooping," Econometrica, Econometric Society, vol. 73(4), pages 1237-1282, July.
    4. Maurizio Mazzocco & Shiv Saini, 2012. "Testing Efficient Risk Sharing with Heterogeneous Risk Preferences," American Economic Review, American Economic Association, vol. 102(1), pages 428-468, February.
    5. Romano, Joseph P. & Shaikh, Azeem M. & Wolf, Michael, 2008. "Formalized Data Snooping Based On Generalized Error Rates," Econometric Theory, Cambridge University Press, vol. 24(2), pages 404-447, April.
    6. Asger Lunde & Peter R. Hansen, 2005. "A forecast comparison of volatility models: does anything beat a GARCH(1,1)?," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 20(7), pages 873-889.
    7. Raffaella Giacomini & Halbert White, 2006. "Tests of Conditional Predictive Ability," Econometrica, Econometric Society, vol. 74(6), pages 1545-1578, November.
    8. Kilian, Lutz & Taylor, Mark P., 2003. "Why is it so difficult to beat the random walk forecast of exchange rates?," Journal of International Economics, Elsevier, vol. 60(1), pages 85-107, May.
    9. Gary Koop & Dimitris Korobilis, 2012. "Forecasting Inflation Using Dynamic Model Averaging," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 53(3), pages 867-886, August.
    10. Marcos Alvarez-Diaz & Alberto Alvarez, 2003. "Forecasting exchange rates using genetic algorithms," Applied Economics Letters, Taylor & Francis Journals, vol. 10(6), pages 319-322.
    11. Aye, Goodness & Gupta, Rangan & Hammoudeh, Shawkat & Kim, Won Joong, 2015. "Forecasting the price of gold using dynamic model averaging," International Review of Financial Analysis, Elsevier, vol. 41(C), pages 257-266.
    12. Neely, Christopher J. & Weller, Paul A. & Ulrich, Joshua M., 2009. "The Adaptive Markets Hypothesis: Evidence from the Foreign Exchange Market," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 44(2), pages 467-488, April.
    13. Georgios Sermpinis & Jason Laws & Christian L. Dunis, 2015. "Modelling commodity value at risk with Psi Sigma neural networks using open-high-low-close data," The European Journal of Finance, Taylor & Francis Journals, vol. 21(4), pages 316-336, March.
    14. Ivanova, Yuliya & Neely, Christopher J. & Weller, Paul & Famiglietti, Matthew T., 2021. "Can risk explain the profitability of technical trading in currency markets?," Journal of International Money and Finance, Elsevier, vol. 110(C).
    15. Barbara Rossi, 2013. "Exchange Rate Predictability," Journal of Economic Literature, American Economic Association, vol. 51(4), pages 1063-1119, December.
    16. Hansen, Peter Reinhard, 2005. "A Test for Superior Predictive Ability," Journal of Business & Economic Statistics, American Statistical Association, vol. 23, pages 365-380, October.
    17. 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.
    18. Byrne, Joseph P. & Korobilis, Dimitris & Ribeiro, Pinho J., 2016. "Exchange rate predictability in a changing world," Journal of International Money and Finance, Elsevier, vol. 62(C), pages 1-24.
    19. 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.
    20. Stephen Brown & William Goetzmann & Alok Kumar, 1998. "The Dow Theory: William Peter Hamilton's Track Record Re-Considered," Yale School of Management Working Papers ysm85, Yale School of Management, revised 01 Apr 2008.
    21. Yang, Jian & Su, Xiaojing & Kolari, James W., 2008. "Do Euro exchange rates follow a martingale? Some out-of-sample evidence," Journal of Banking & Finance, Elsevier, vol. 32(5), pages 729-740, May.
    22. Sermpinis, Georgios & Theofilatos, Konstantinos & Karathanasopoulos, Andreas & Georgopoulos, Efstratios F. & Dunis, Christian, 2013. "Forecasting foreign exchange rates with adaptive neural networks using radial-basis functions and Particle Swarm Optimization," European Journal of Operational Research, Elsevier, vol. 225(3), pages 528-540.
    23. Zhang, Guoqiang & Eddy Patuwo, B. & Y. Hu, Michael, 1998. "Forecasting with artificial neural networks:: The state of the art," International Journal of Forecasting, Elsevier, vol. 14(1), pages 35-62, March.
    24. Gradojevic, Nikola & Gençay, Ramazan, 2013. "Fuzzy logic, trading uncertainty and technical trading," Journal of Banking & Finance, Elsevier, vol. 37(2), pages 578-586.
    25. Peter R. Hansen & Asger Lunde & James M. Nason, 2011. "The Model Confidence Set," Econometrica, Econometric Society, vol. 79(2), pages 453-497, March.
    26. Thomas Gehrig & Lukas Menkhoff, 2006. "Extended evidence on the use of technical analysis in foreign exchange," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 11(4), pages 327-338.
    27. Baillie, Richard T. & Chang, Sanders S., 2011. "Carry trades, momentum trading and the forward premium anomaly," Journal of Financial Markets, Elsevier, vol. 14(3), pages 441-464, August.
    28. Joseph P. Romano & Michael Wolf, "undated". "Control of Generalized Error Rates in Multiple Testing," IEW - Working Papers 245, Institute for Empirical Research in Economics - University of Zurich.
    29. Gencay, Ramazan & Dacorogna, Michel & Olsen, Richard & Pictet, Olivier, 2003. "Foreign exchange trading models and market behavior," Journal of Economic Dynamics and Control, Elsevier, vol. 27(6), pages 909-935, April.
    30. Lui, Yu-Hon & Mole, David, 1998. "The use of fundamental and technical analyses by foreign exchange dealers: Hong Kong evidence," Journal of International Money and Finance, Elsevier, vol. 17(3), pages 535-545, June.
    31. Gradojevic, Nikola, 2007. "Non-linear, hybrid exchange rate modeling and trading profitability in the foreign exchange market," Journal of Economic Dynamics and Control, Elsevier, vol. 31(2), pages 557-574, February.
    32. Bekiros, Stelios D., 2010. "Heterogeneous trading strategies with adaptive fuzzy Actor-Critic reinforcement learning: A behavioral approach," Journal of Economic Dynamics and Control, Elsevier, vol. 34(6), pages 1153-1170, June.
    33. Baltas, Nick & Karyampas, Dimitrios, 2018. "Forecasting the equity risk premium: The importance of regime-dependent evaluation," Journal of Financial Markets, Elsevier, vol. 38(C), pages 83-102.
    34. Yilmaz, Kamil, 2003. "Martingale Property of Exchange Rates and Central Bank Interventions," Journal of Business & Economic Statistics, American Statistical Association, vol. 21(3), pages 383-395, July.
    35. Yu-Chin Hsu & Chung-Ming Kuan & Meng-Feng Yen, 2014. "A Generalized Stepwise Procedure with Improved Power for Multiple Inequalities Testing," Journal of Financial Econometrics, Oxford University Press, vol. 12(4), pages 730-755.
    36. 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.
    37. Elaut, Gert & Frömmel, Michael & Lampaert, Kevin, 2018. "Intraday momentum in FX markets: Disentangling informed trading from liquidity provision," Journal of Financial Markets, Elsevier, vol. 37(C), pages 35-51.
    38. Kearney, Fearghal & Cummins, Mark & Murphy, Finbarr, 2014. "Outperformance in exchange-traded fund pricing deviations: Generalized control of data snooping bias," Journal of Financial Markets, Elsevier, vol. 19(C), pages 86-109.
    39. Jarque, Carlos M. & Bera, Anil K., 1980. "Efficient tests for normality, homoscedasticity and serial independence of regression residuals," Economics Letters, Elsevier, vol. 6(3), pages 255-259.
    40. Teo Jasic & Douglas Wood, 2004. "The profitability of daily stock market indices trades based on neural network predictions: case study for the S&P 500, the DAX, the TOPIX and the FTSE in the period 1965-1999," Applied Financial Economics, Taylor & Francis Journals, vol. 14(4), pages 285-297.
    41. Blume, Lawrence & Easley, David & O'Hara, Maureen, 1994. "Market Statistics and Technical Analysis: The Role of Volume," Journal of Finance, American Finance Association, vol. 49(1), pages 153-181, March.
    42. 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.
    43. Shapiro, Arnold F., 2000. "A Hitchhiker's guide to the techniques of adaptive nonlinear models," Insurance: Mathematics and Economics, Elsevier, vol. 26(2-3), pages 119-132, May.
    44. Meese, Richard A. & Rogoff, Kenneth, 1983. "Empirical exchange rate models of the seventies : Do they fit out of sample?," Journal of International Economics, Elsevier, vol. 14(1-2), pages 3-24, February.
    45. Cialenco, Igor & Protopapadakis, Aris, 2011. "Do technical trading profits remain in the foreign exchange market? Evidence from 14 currencies," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 21(2), pages 176-206, April.
    46. Halbert White, 2000. "A Reality Check for Data Snooping," Econometrica, Econometric Society, vol. 68(5), pages 1097-1126, September.
    47. Chinn, Menzie D. & Meese, Richard A., 1995. "Banking on currency forecasts: How predictable is change in money?," Journal of International Economics, Elsevier, vol. 38(1-2), pages 161-178, February.
    48. Oberlechner, Thomas, 2001. "Importance of Technical and Fundamental Analysis in the European Foreign Exchange Market," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 6(1), pages 81-93, January.
    49. Neely, Christopher J. & Weller, Paul A., 2013. "Lessons from the evolution of foreign exchange trading strategies," Journal of Banking & Finance, Elsevier, vol. 37(10), pages 3783-3798.
    50. 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.
    51. 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.
    52. Sweeney, Richard J., 1988. "Some New Filter Rule Tests: Methods and Results," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 23(3), pages 285-300, September.
    53. Robert Gramacy & Samuel W. Malone & Enrique Ter Horst, 2014. "Exchange Rate Fundamentals, Forecasting, And Speculation: Bayesian Models In Black Markets," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 29(1), pages 22-41, January.
    54. 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.
    55. Brock, William & Lakonishok, Josef & LeBaron, Blake, 1992. "Simple Technical Trading Rules and the Stochastic Properties of Stock Returns," Journal of Finance, American Finance Association, vol. 47(5), pages 1731-1764, December.
    56. Hossein Hassani & Emmanuel Sirimal Silva & Rangan Gupta & Mawuli K. Segnon, 2015. "Forecasting the price of gold," Applied Economics, Taylor & Francis Journals, vol. 47(39), pages 4141-4152, August.
    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. Ghosh, Indranil & Alfaro-Cortés, Esteban & Gámez, Matías & García-Rubio, Noelia, 2023. "Prediction and interpretation of daily NFT and DeFi prices dynamics: Inspection through ensemble machine learning & XAI," International Review of Financial Analysis, Elsevier, vol. 87(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. Dichtl, Hubert & Drobetz, Wolfgang & Neuhierl, Andreas & Wendt, Viktoria-Sophie, 2021. "Data snooping in equity premium prediction," International Journal of Forecasting, Elsevier, vol. 37(1), pages 72-94.
    2. 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.
    3. 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.
    4. Hsu, Po-Hsuan & Han, Qiheng & Wu, Wensheng & Cao, Zhiguang, 2018. "Asset allocation strategies, data snooping, and the 1 / N rule," Journal of Banking & Finance, Elsevier, vol. 97(C), pages 257-269.
    5. Taylor, Mark & Hsu, Po-Hsuan & Wang, Zigan, 2020. "The Out-of-Sample Performance of Carry Trades," CEPR Discussion Papers 15052, C.E.P.R. Discussion Papers.
    6. 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.
    7. 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.
    8. 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.
    9. Chiang, Mi-Hsiu & Chiu, Hsin-Yu & Kuo, Wei-Yu, 2021. "Predictive ability of similarity-based futures trading strategies," Pacific-Basin Finance Journal, Elsevier, vol. 68(C).
    10. Yung-Ho Chang, 2019. "Cross-market information spillover and the performance of technical trading in the foreign exchange market," Journal of Economics and Finance, Springer;Academy of Economics and Finance, vol. 43(2), pages 211-227, April.
    11. 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.
    12. 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.
    13. 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.
    14. Kuang, P. & Schröder, M. & Wang, Q., 2014. "Illusory profitability of technical analysis in emerging foreign exchange markets," International Journal of Forecasting, Elsevier, vol. 30(2), pages 192-205.
    15. Shynkevich, Andrei, 2012. "Short-term predictability of equity returns along two style dimensions," Journal of Empirical Finance, Elsevier, vol. 19(5), pages 675-685.
    16. 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.
    17. 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.
    18. Yang, Junmin & Cao, Zhiguang & Han, Qiheng & Wang, Qiyu, 2019. "Tactical asset allocation on technical trading rules and data snooping," Pacific-Basin Finance Journal, Elsevier, vol. 57(C).
    19. Konstandinos Chourmouziadis & Dimitra K. Chourmouziadou & Prodromos D. Chatzoglou, 2021. "Embedding Four Medium-Term Technical Indicators to an Intelligent Stock Trading Fuzzy System for Predicting: A Portfolio Management Approach," Computational Economics, Springer;Society for Computational Economics, vol. 57(4), pages 1183-1216, April.
    20. Kuang, P. & Schröder, M. & Wang, Q., 2014. "Illusory profitability of technical analysis in emerging foreign exchange markets," International Journal of Forecasting, Elsevier, vol. 30(2), pages 192-205.

    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:eee:empfin:v:63:y:2021:i:c:p:230-251. 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: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/jempfin .

    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.