IDEAS home Printed from https://ideas.repec.org/a/eee/appene/v162y2016icp1608-1618.html
   My bibliography  Save this article

Selecting dynamic moving average trading rules in the crude oil futures market using a genetic approach

Author

Listed:
  • Wang, Lijun
  • An, Haizhong
  • Liu, Xiaojia
  • Huang, Xuan

Abstract

Strategies to increase profit from investments in crude oil futures markets are an important issue for investors in energy finance. This paper proposes an approach to generate dynamic moving average trading rules in crude oil futures markets. An adaptive moving average calculation is used to better describe the fluctuations, and trading rules can be adjusted dynamically in the investment period based on the performance of four reference rules. We use genetic algorithms to select optimal dynamic moving average trading rules from a large set of possible parameters. Our results indicate that dynamic trading rules can help traders make profit in the crude oil futures market and are more effective than the BH strategy in the price decrease process. Moreover, dynamic moving average trading rules are more favorable to traders than static trading rules, and the advantage becomes more obvious over long investment cycles. The lengths of the two periods of dynamic moving average trading rules are closely associated with price volatility. The dynamic trading rules will have outstanding performance when market is shocked by significant energy related events. Investment advices are given out and these advices are helpful for traders when choosing technical trading rules in actual investments.

Suggested Citation

  • Wang, Lijun & An, Haizhong & Liu, Xiaojia & Huang, Xuan, 2016. "Selecting dynamic moving average trading rules in the crude oil futures market using a genetic approach," Applied Energy, Elsevier, vol. 162(C), pages 1608-1618.
  • Handle: RePEc:eee:appene:v:162:y:2016:i:c:p:1608-1618
    DOI: 10.1016/j.apenergy.2015.08.132
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.apenergy.2015.08.132?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. D'Ecclesia, Rita L. & Magrini, Emiliano & Montalbano, Pierluigi & Triulzi, Umberto, 2014. "Understanding recent oil price dynamics: A novel empirical approach," Energy Economics, Elsevier, vol. 46(S1), pages 11-17.
    2. Chiroma, Haruna & Abdulkareem, Sameem & Herawan, Tutut, 2015. "Evolutionary Neural Network model for West Texas Intermediate crude oil price prediction," Applied Energy, Elsevier, vol. 142(C), pages 266-273.
    3. 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.
    4. Shambora, William E. & Rossiter, Rosemary, 2007. "Are there exploitable inefficiencies in the futures market for oil?," Energy Economics, Elsevier, vol. 29(1), pages 18-27, January.
    5. Nazlioglu, Saban & Soytas, Ugur & Gupta, Rangan, 2015. "Oil prices and financial stress: A volatility spillover analysis," Energy Policy, Elsevier, vol. 82(C), pages 278-288.
    6. Serban, Alina F., 2010. "Combining mean reversion and momentum trading strategies in foreign exchange markets," Journal of Banking & Finance, Elsevier, vol. 34(11), pages 2720-2727, November.
    7. Bassam Fattouh, Lutz Kilian, and Lavan Mahadeva, 2013. "The Role of Speculation in Oil Markets: What Have We Learned So Far?," The Energy Journal, International Association for Energy Economics, vol. 0(Number 3).
    8. 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.
    9. Jammazi, Rania, 2012. "Cross dynamics of oil-stock interactions: A redundant wavelet analysis," Energy, Elsevier, vol. 44(1), pages 750-777.
    10. 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.
    11. Cotter, John & Hanly, Jim, 2015. "Performance of utility based hedges," Energy Economics, Elsevier, vol. 49(C), pages 718-726.
    12. Kilian, Lutz & Baumeister, Christiane, 2014. "A General Approach to Recovering Market Expectations from Futures Prices With an Application to Crude Oil," CEPR Discussion Papers 10162, C.E.P.R. Discussion Papers.
    13. Zhang, Bing & Li, Xiao-Ming & He, Fei, 2014. "Testing the evolution of crude oil market efficiency: Data have the conn," Energy Policy, Elsevier, vol. 68(C), pages 39-52.
    14. Chiarella, Carl & He, Xue-Zhong & Pellizzari, Paolo, 2012. "A Dynamic Analysis Of The Microstructure Of Moving Average Rules In A Double Auction Market," Macroeconomic Dynamics, Cambridge University Press, vol. 16(4), pages 556-575, September.
    15. Holmberg, Ulf & Lönnbark, Carl & Lundström, Christian, 2013. "Assessing the profitability of intraday opening range breakout strategies," Finance Research Letters, Elsevier, vol. 10(1), pages 27-33.
    16. Zhang, Yue-Jun & Zhang, Lu, 2015. "Interpreting the crude oil price movements: Evidence from the Markov regime switching model," Applied Energy, Elsevier, vol. 143(C), pages 96-109.
    17. Chiarella, Carl & He, Xue-Zhong & Hommes, Cars, 2006. "A dynamic analysis of moving average rules," Journal of Economic Dynamics and Control, Elsevier, vol. 30(9-10), pages 1729-1753.
    18. Bjursell, Johan & Gentle, James E. & Wang, George H.K., 2015. "Inventory announcements, jump dynamics, volatility and trading volume in U.S. energy futures markets," Energy Economics, Elsevier, vol. 48(C), pages 336-349.
    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. Tong Zhang & B. Brorsen, 2009. "Particle Swarm Optimization Algorithm for Agent-Based Artificial Markets," Computational Economics, Springer;Society for Computational Economics, vol. 34(4), pages 399-417, November.
    21. 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.
    22. Jiang, Zhi-Qiang & Xie, Wen-Jie & Zhou, Wei-Xing, 2014. "Testing the weak-form efficiency of the WTI crude oil futures market," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 405(C), pages 235-244.
    23. Ruslan Bikbov & Mikhail Chernov, 2011. "Yield Curve and Volatility: Lessons from Eurodollar Futures and Options," Journal of Financial Econometrics, Oxford University Press, vol. 9(1), pages 66-105, Winter.
    24. He, Xue-Zhong & Zheng, Min, 2010. "Dynamics of moving average rules in a continuous-time financial market model," Journal of Economic Behavior & Organization, Elsevier, vol. 76(3), pages 615-634, December.
    25. Kolodziej, Marek & Kaufmann, Robert K. & Kulatilaka, Nalin & Bicchetti, David & Maystre, Nicolas, 2014. "Crude oil: Commodity or financial asset?," Energy Economics, Elsevier, vol. 46(C), pages 216-223.
    26. Janice How & Martin Ling & Peter Verhoeven, 2010. "Does size matter? A genetic programming approach to technical trading," Quantitative Finance, Taylor & Francis Journals, vol. 10(2), pages 131-140.
    27. Yudong Wang & Chongfeng Wu, 2013. "Efficiency of Crude Oil Futures Markets: New Evidence from Multifractal Detrending Moving Average Analysis," Computational Economics, Springer;Society for Computational Economics, vol. 42(4), pages 393-414, December.
    28. Kaufmann, Robert K., 2011. "The role of market fundamentals and speculation in recent price changes for crude oil," Energy Policy, Elsevier, vol. 39(1), pages 105-115, January.
    29. William Cheung & Keith Lam & HangFai Yeung, 2011. "Intertemporal profitability and the stability of technical analysis: evidences from the Hong Kong stock exchange," Applied Economics, Taylor & Francis Journals, vol. 43(15), pages 1945-1963.
    30. Alexandros E. Milionis & Evangelia Papanagiotou, 2013. "Decomposing the predictive performance of the moving average trading rule of technical analysis: the contribution of linear and non-linear dependencies in stock returns," Journal of Applied Statistics, Taylor & Francis Journals, vol. 40(11), pages 2480-2494, November.
    31. Lutz Kilian & Daniel P. Murphy, 2014. "The Role Of Inventories And Speculative Trading In The Global Market For Crude Oil," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 29(3), pages 454-478, April.
    32. Elder, John & Miao, Hong & Ramchander, Sanjay, 2014. "Price discovery in crude oil futures," Energy Economics, Elsevier, vol. 46(S1), pages 18-27.
    33. Adrián Fernández-P�rez & Fernando Fernández-Rodr�guez & Simón Sosvilla-Rivero, 2012. "Exploiting trends in the foreign exchange markets," Applied Economics Letters, Taylor & Francis Journals, vol. 19(6), pages 591-597, April.
    34. Auer, Benjamin R., 2014. "Daily seasonality in crude oil returns and volatilities," Energy Economics, Elsevier, vol. 43(C), pages 82-88.
    35. Jun Wang, 2000. "Trading and hedging in S&P 500 spot and futures markets using genetic programming," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 20(10), pages 911-942, November.
    36. Hans Dewachter & Marco Lyrio, 2005. "The economic value of technical trading rules: a nonparametric utility-based approach," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 10(1), pages 41-62.
    37. Subrata Kumar Mitra, 2011. "How rewarding is technical analysis in the Indian stock market?," Quantitative Finance, Taylor & Francis Journals, vol. 11(2), pages 287-297.
    38. Zhang, Yue-Jun, 2013. "Speculative trading and WTI crude oil futures price movement: An empirical analysis," Applied Energy, Elsevier, vol. 107(C), pages 394-402.
    39. Yen-Sen Ni & Jen-Tsai Lee & Yi-Ching Liao, 2013. "Do variable length moving average trading rules matter during a financial crisis period?," Applied Economics Letters, Taylor & Francis Journals, vol. 20(2), pages 135-141, February.
    40. Yu, Hao & Nartea, Gilbert V. & Gan, Christopher & Yao, Lee J., 2013. "Predictive ability and profitability of simple technical trading rules: Recent evidence from Southeast Asian stock markets," International Review of Economics & Finance, Elsevier, vol. 25(C), pages 356-371.
    41. 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.
    42. 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.
    43. Lubnau, Thorben & Todorova, Neda, 2015. "Trading on mean-reversion in energy futures markets," Energy Economics, Elsevier, vol. 51(C), pages 312-319.
    44. Zhang, Yue-Jun & Wang, Zi-Yi, 2013. "Investigating the price discovery and risk transfer functions in the crude oil and gasoline futures markets: Some empirical evidence," Applied Energy, Elsevier, vol. 104(C), pages 220-228.
    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. Day, Min-Yuh & Ni, Yensen & Huang, Paoyu, 2019. "Trading as sharp movements in oil prices and technical trading signals emitted with big data concerns," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 525(C), pages 349-372.
    2. Liu, Xueyong & An, Haizhong & Huang, Shupei & Wen, Shaobo, 2017. "The evolution of spillover effects between oil and stock markets across multi-scales using a wavelet-based GARCH–BEKK model," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 465(C), pages 374-383.
    3. Inês da Cunha Cabral & Pedro Pires Ribeiro & João Nicolau, 2022. "Changes in inflation compensation and oil prices: short-term and long-term dynamics," Empirical Economics, Springer, vol. 62(2), pages 581-603, February.
    4. Cristiana Tudor & Andrei Anghel, 2021. "The Financialization of Crude Oil Markets and Its Impact on Market Efficiency: Evidence from the Predictive Ability and Performance of Technical Trading Strategies," Energies, MDPI, vol. 14(15), pages 1-19, July.
    5. Day, Min-Yuh & Ni, Yensen, 2023. "Do clean energy indices outperform using contrarian strategies based on contrarian trading rules?," Energy, Elsevier, vol. 272(C).
    6. Gong, Xu & Wen, Fenghua & Xia, X.H. & Huang, Jianbai & Pan, Bin, 2017. "Investigating the risk-return trade-off for crude oil futures using high-frequency data," Applied Energy, Elsevier, vol. 196(C), pages 152-161.
    7. Phan, Dinh Hoang Bach & Narayan, Paresh Kumar & Gong, Qiang, 2021. "Terrorist attacks and oil prices: Hypothesis and empirical evidence," International Review of Financial Analysis, Elsevier, vol. 74(C).
    8. Liu, Xiaojia & An, Haizhong & Wang, Lijun & Guan, Qing, 2017. "Quantified moving average strategy of crude oil futures market based on fuzzy logic rules and genetic algorithms," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 482(C), pages 444-457.
    9. Min-Yuh Day & Yensen Ni & Chinning Hsu & Paoyu Huang, 2022. "Do Investment Strategies Matter for Trading Global Clean Energy and Global Energy ETFs?," Energies, MDPI, vol. 15(9), pages 1-15, May.
    10. Bekiroglu, Korkut & Duru, Okan & Gulay, Emrah & Su, Rong & Lagoa, Constantino, 2018. "Predictive analytics of crude oil prices by utilizing the intelligent model search engine," Applied Energy, Elsevier, vol. 228(C), pages 2387-2397.
    11. Gao, Xiangyun & Fang, Wei & An, Feng & Wang, Yue, 2017. "Detecting method for crude oil price fluctuation mechanism under different periodic time series," Applied Energy, Elsevier, vol. 192(C), pages 201-212.
    12. Day, Min-Yuh & Ni, Yensen, 2023. "The profitability of seasonal trading timing: Insights from energy-related markets," Energy Economics, Elsevier, vol. 128(C).
    13. Taylor, Nick, 2017. "Timing strategy performance in the crude oil futures market," Energy Economics, Elsevier, vol. 66(C), pages 480-492.

    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. Lijun Wang & Haizhong An & Xiaohua Xia & Xiaojia Liu & Xiaoqi Sun & Xuan Huang, 2014. "Generating Moving Average Trading Rules on the Oil Futures Market with Genetic Algorithms," Mathematical Problems in Engineering, Hindawi, vol. 2014, pages 1-10, May.
    2. Liu, Xiaojia & An, Haizhong & Wang, Lijun & Jia, Xiaoliang, 2017. "An integrated approach to optimize moving average rules in the EUA futures market based on particle swarm optimization and genetic algorithms," Applied Energy, Elsevier, vol. 185(P2), pages 1778-1787.
    3. Farias Nazário, Rodolfo Toríbio & e Silva, Jéssica Lima & Sobreiro, Vinicius Amorim & Kimura, Herbert, 2017. "A literature review of technical analysis on stock markets," The Quarterly Review of Economics and Finance, Elsevier, vol. 66(C), pages 115-126.
    4. Ülkü, Numan & Prodan, Eugeniu, 2013. "Drivers of technical trend-following rules' profitability in world stock markets," International Review of Financial Analysis, Elsevier, vol. 30(C), pages 214-229.
    5. Lang, Korbinian & Auer, Benjamin R., 2020. "The economic and financial properties of crude oil: A review," The North American Journal of Economics and Finance, Elsevier, vol. 52(C).
    6. Figuerola-Ferretti, Isabel & McCrorie, J. Roderick & Paraskevopoulos, Ioannis, 2020. "Mild explosivity in recent crude oil prices," Energy Economics, Elsevier, vol. 87(C).
    7. Olivier Rousse & Benoît Sévi, 2017. "Informed Trading in Oil-Futures Market," Working Papers hal-01460186, HAL.
    8. Liu, Li & Wang, Yudong & Wu, Chongfeng & Wu, Wenfeng, 2016. "Disentangling the determinants of real oil prices," Energy Economics, Elsevier, vol. 56(C), pages 363-373.
    9. Baruník, Jozef & Malinská, Barbora, 2016. "Forecasting the term structure of crude oil futures prices with neural networks," Applied Energy, Elsevier, vol. 164(C), pages 366-379.
    10. 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.
    11. Tokic, Damir, 2015. "The 2014 oil bust: Causes and consequences," Energy Policy, Elsevier, vol. 85(C), pages 162-169.
    12. Robert Socha & Piotr Wdowiński, 2018. "Crude oil price and speculative activity: a cointegration analysis," Central European Journal of Economic Modelling and Econometrics, Central European Journal of Economic Modelling and Econometrics, vol. 10(3), pages 263-304, September.
    13. Olivier Rousse & Benoît Sévi, 2016. "Informed Trading in Oil-Futures Market," Working Papers hal-01410093, HAL.
    14. Yao, Ting & Zhang, Yue-Jun & Ma, Chao-Qun, 2017. "How does investor attention affect international crude oil prices?," Applied Energy, Elsevier, vol. 205(C), pages 336-344.
    15. Miroslava Zavadska & Lucía Morales & Joseph Coughlan, 2018. "The Lead–Lag Relationship between Oil Futures and Spot Prices—A Literature Review," IJFS, MDPI, vol. 6(4), pages 1-22, October.
    16. Ni, Yensen & Liao, Yi-Ching & Huang, Paoyu, 2015. "MA trading rules, herding behaviors, and stock market overreaction," International Review of Economics & Finance, Elsevier, vol. 39(C), pages 253-265.
    17. Alvarez-Ramirez, J. & Alvarez, J. & Rodríguez, E., 2015. "Asymmetric long-term autocorrelations in crude oil markets," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 424(C), pages 330-341.
    18. Zuzanna Karolak, 2021. "Energy prices forecasting using nonlinear univariate models," Bank i Kredyt, Narodowy Bank Polski, vol. 52(6), pages 577-598.
    19. 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.
    20. Christopher J. Neely & Paul A. Weller, 2011. "Technical analysis in the foreign exchange market," Working Papers 2011-001, Federal Reserve Bank of St. Louis.

    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:appene:v:162:y:2016:i:c:p:1608-1618. 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/wps/find/journaldescription.cws_home/405891/description#description .

    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.