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. 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.
    2. 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).
    3. 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.
    4. Jammazi, Rania, 2012. "Cross dynamics of oil-stock interactions: A redundant wavelet analysis," Energy, Elsevier, vol. 44(1), pages 750-777.
    5. 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.
    6. 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.
    7. 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.
    8. 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.
    9. 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.
    10. 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.
    11. 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.
    12. 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.
    13. 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.
    14. 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.
    15. 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.
    16. 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.
    17. 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.
    18. 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.
    19. 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.
    20. 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.
    21. 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.
    22. 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.
    23. 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.
    24. 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.
    25. 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.
    26. 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.
    27. 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.
    28. 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.
    29. Cotter, John & Hanly, Jim, 2015. "Performance of utility based hedges," Energy Economics, Elsevier, vol. 49(C), pages 718-726.
    30. 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.
    31. 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.
    32. 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.
    33. 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.
    34. 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.
    35. Auer, Benjamin R., 2014. "Daily seasonality in crude oil returns and volatilities," Energy Economics, Elsevier, vol. 43(C), pages 82-88.
    36. 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.
    37. Lubnau, Thorben & Todorova, Neda, 2015. "Trading on mean-reversion in energy futures markets," Energy Economics, Elsevier, vol. 51(C), pages 312-319.
    38. 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.
    39. 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.
    40. 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.
    41. 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.
    42. 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.
    43. Elder, John & Miao, Hong & Ramchander, Sanjay, 2014. "Price discovery in crude oil futures," Energy Economics, Elsevier, vol. 46(S1), pages 18-27.
    44. 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.
    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. Day, Min-Yuh & Ni, Yensen, 2023. "Do clean energy indices outperform using contrarian strategies based on contrarian trading rules?," Energy, Elsevier, vol. 272(C).
    3. 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.
    4. 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).
    5. 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.
    6. 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.
    7. 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.
    8. 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.
    9. 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.
    10. 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.
    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. 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. 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).
    4. Figuerola-Ferretti, Isabel & McCrorie, J. Roderick & Paraskevopoulos, Ioannis, 2020. "Mild explosivity in recent crude oil prices," Energy Economics, Elsevier, vol. 87(C).
    5. 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.
    6. Ü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.
    7. 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.
    8. Olivier Rousse & Benoît Sévi, 2017. "Informed Trading in Oil-Futures Market," Working Papers hal-01460186, HAL.
    9. Olivier Rousse & Benoît Sévi, 2016. "Informed Trading in Oil-Futures Market," Working Papers hal-01410093, HAL.
    10. Zuzanna Karolak, 2021. "Energy prices forecasting using nonlinear univariate models," Bank i Kredyt, Narodowy Bank Polski, vol. 52(6), pages 577-598.
    11. 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.
    12. Christopher J. Neely & Paul A. Weller, 2011. "Technical analysis in the foreign exchange market," Working Papers 2011-001, Federal Reserve Bank of St. Louis.
    13. 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.
    14. 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.
    15. Akdoğan, Kurmaş, 2020. "Fundamentals versus speculation in oil market: The role of asymmetries in price adjustment?," Resources Policy, Elsevier, vol. 67(C).
    16. 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.
    17. Tokic, Damir, 2015. "The 2014 oil bust: Causes and consequences," Energy Policy, Elsevier, vol. 85(C), pages 162-169.
    18. 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.
    19. Zhenhua Liu & Zhihua Ding & Tao Lv & Jy S. Wu & Wei Qiang, 2019. "Financial factors affecting oil price change and oil-stock interactions: a review and future perspectives," Natural Hazards: Journal of the International Society for the Prevention and Mitigation of Natural Hazards, Springer;International Society for the Prevention and Mitigation of Natural Hazards, vol. 95(1), pages 207-225, January.
    20. 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.

    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.