An Algorithm for Testing the Efficient Market Hypothesis

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).

[1]  Richard J. Kish,et al.  A comparative study of technical trading strategies and return predictability: an extension of using NYSE and NASDAQ indices , 2002 .

[2]  D. de la Fuente,et al.  Technical analysis and the Spanish stock exchange: testing the RSI, MACD, momentum and stochastic rules using Spanish market companies , 2013 .

[3]  Olivier Darné,et al.  The random walk hypothesis for Chinese stock markets: Evidence from variance ratio tests , 2009 .

[4]  Pedro Godinho,et al.  A Forex trading system based on a genetic algorithm , 2012, Journal of Heuristics.

[5]  Juri Marcucci,et al.  Are moving average trading rules profitable? Evidence from the European stock markets , 2012 .

[6]  H. White,et al.  Data‐Snooping, Technical Trading Rule Performance, and the Bootstrap , 1999 .

[7]  E. Fama EFFICIENT CAPITAL MARKETS: A REVIEW OF THEORY AND EMPIRICAL WORK* , 1970 .

[8]  Cheolbeom Park,et al.  A Reality Check on Technical Trading Rule Profits in US Futures Markets , 2005 .

[9]  Jae H. Kim,et al.  Exchange-Rate Return Predictability and the Adaptive Markets Hypothesis: Evidence from Major Foreign Exchange Rates , 2012 .

[10]  Andrei Shynkevich Performance of technical analysis in growth and small cap segments of the US equity market , 2012 .

[11]  J. Álvarez-Ramírez,et al.  Is the US stock market becoming weakly efficient over time? Evidence from 80-year-long data , 2012 .

[12]  Christopher J. Neely,et al.  Is Technical Analysis in the Foreign Exchange Market Profitable? A Genetic Programming Approach , 1996, Journal of Financial and Quantitative Analysis.

[13]  Esmaiel Abounoori,et al.  An investigation of Forex market efficiency based on detrended fluctuation analysis: A case study for Iran , 2012 .

[14]  Shangkun DENG,et al.  Robustness Test of Genetic Algorithm on Generating Rules for Currency Trading , 2012, INNS-WC.

[15]  Anders B. Trolle,et al.  Variance Risk Premia in Energy Commodities , 2010, The Journal of Derivatives.

[16]  Chung-Ming Kuan,et al.  Reexamining the Profitability of Technical Analysis with Data Snooping Checks , 2005 .

[17]  D. Pele,et al.  The Development of the Romanian Capital Market: Evidences on Information Efficiency , 2009 .

[18]  P. Weller,et al.  The Predictive Power of Head-and-Shoulders Price Patterns in the U.S. Stock Market , 2006 .

[19]  C. Osler,et al.  Support for Resistance: Technical Analysis and Intraday Exchange Rates , 2000 .

[20]  Mark P. Taylor,et al.  The use of technical analysis in the foreign exchange market , 1992 .

[21]  M. Dempster,et al.  A real-time adaptive trading system using genetic programming , 2001 .

[22]  L. Harris,et al.  What to Do about High-Frequency Trading , 2013 .

[23]  Cheolbeom Park,et al.  A reality check on technical trading rule profits in the U.S. futures markets , 2009 .

[24]  Chung-Ming Kuan,et al.  Testing the Predictive Ability of Technical Analysis Using a New Stepwise Test Without Data Snooping Bias , 2009 .

[25]  Yin-Wong Cheung,et al.  Currency Traders and Exchange Rate Dynamics: A Survey of the U.S. Market , 2000, SSRN Electronic Journal.

[26]  H. White,et al.  A Reality Check for Data Snooping , 2000 .

[27]  Andrew C. Szakmary,et al.  Trend-following trading strategies in commodity futures: A re-examination , 2010 .

[28]  Virginia Myers,et al.  Head and shoulders , 1986 .

[29]  John H. Holland,et al.  Outline for a Logical Theory of Adaptive Systems , 1962, JACM.

[30]  Dennis Olson,et al.  Have trading rule profits in the currency markets declined over time , 2004 .

[31]  Md. Azizul Baten,et al.  Stochastic Frontier Model Approach for Measuring Stock Market Efficiency with Different Distributions , 2012, PloS one.

[32]  Jae H. Kim,et al.  Are Asian stock markets efficient? Evidence from new multiple variance ratio tests ☆ , 2008 .

[33]  Franklin Allen,et al.  Using genetic algorithms to find technical trading rules , 1999 .

[34]  Jae H. Kim,et al.  Stock Return Predictability and the Adaptive Markets Hypothesis: Evidence from Century Long U.S. Data , 2010 .

[35]  M. Ready,et al.  Profits from Technical Trading Rules , 1998 .

[36]  Beom Jun Kim,et al.  Fractal Profit Landscape of the Stock Market , 2012, PloS one.

[37]  P. Grauwe,et al.  Psychological Barriers in the Foreign Exchange Market , 1992 .

[38]  Matthew C. Roberts,et al.  TECHNICAL ANALYSIS AND GENETIC PROGRAMMING: CONSTRUCTING AND TESTING A COMMODITY PORTFOLIO , 2005 .

[39]  Min Wu,et al.  Technical Trading-Rule Profitability, Data Snooping, and Reality Check: Evidence from the Foreign Exchange Market , 2005 .