IDEAS home Printed from https://ideas.repec.org/a/hin/jnlmpe/101808.html
   My bibliography  Save this article

Generating Moving Average Trading Rules on the Oil Futures Market with Genetic Algorithms

Author

Listed:
  • Lijun Wang
  • Haizhong An
  • Xiaohua Xia
  • Xiaojia Liu
  • Xiaoqi Sun
  • Xuan Huang

Abstract

The crude oil futures market plays a critical role in energy finance. To gain greater investment return, scholars and traders use technical indicators when selecting trading strategies in oil futures market. In this paper, the authors used moving average prices of oil futures with genetic algorithms to generate profitable trading rules. We defined individuals with different combinations of period lengths and calculation methods as moving average trading rules and used genetic algorithms to search for the suitable lengths of moving average periods and the appropriate calculation methods. The authors used daily crude oil prices of NYMEX futures from 1983 to 2013 to evaluate and select moving average rules. We compared the generated trading rules with the buy-and-hold (BH) strategy to determine whether generated moving average trading rules can obtain excess returns in the crude oil futures market. Through 420 experiments, we determine that the generated trading rules help traders make profits when there are obvious price fluctuations. Generated trading rules can realize excess returns when price falls and experiences significant fluctuations, while BH strategy is better when price increases or is smooth with few fluctuations. The results can help traders choose better strategies in different circumstances.

Suggested Citation

  • 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.
  • Handle: RePEc:hin:jnlmpe:101808
    DOI: 10.1155/2014/101808
    as

    Download full text from publisher

    File URL: http://downloads.hindawi.com/journals/MPE/2014/101808.pdf
    Download Restriction: no

    File URL: http://downloads.hindawi.com/journals/MPE/2014/101808.xml
    Download Restriction: no

    File URL: https://libkey.io/10.1155/2014/101808?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. Yu, Shiwei & Wei, Yi-ming, 2012. "Prediction of China's coal production-environmental pollution based on a hybrid genetic algorithm-system dynamics model," Energy Policy, Elsevier, vol. 42(C), pages 521-529.
    3. 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.
    4. Wu, Gang & Liu, Lan-Cui & Wei, Yi-Ming, 2009. "Comparison of China's oil import risk: Results based on portfolio theory and a diversification index approach," Energy Policy, Elsevier, vol. 37(9), pages 3557-3565, September.
    5. 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.
    6. An, Haizhong & Gao, Xiangyun & Fang, Wei & Huang, Xuan & Ding, Yinghui, 2014. "The role of fluctuating modes of autocorrelation in crude oil prices," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 393(C), pages 382-390.
    7. 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.
    8. Vlad Pavlov & Stan Hurn, 2009. "Testing the Profitability of Technical Analysis as a Portfolio Selection Strategy," NCER Working Paper Series 52, National Centre for Econometric Research.
    9. Chen, G.Q. & Chen, B., 2007. "Resource analysis of the Chinese society 1980-2002 based on exergy--Part 1: Fossil fuels and energy minerals," Energy Policy, Elsevier, vol. 35(4), pages 2038-2050, April.
    10. 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.
    11. Nomikos, Nikos & Andriosopoulos, Kostas, 2012. "Modelling energy spot prices: Empirical evidence from NYMEX," Energy Economics, Elsevier, vol. 34(4), pages 1153-1169.
    12. 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.
    13. 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.
    14. Lei, Yalin & Cui, Na & Pan, Dongyang, 2013. "Economic and social effects analysis of mineral development in China and policy implications," Resources Policy, Elsevier, vol. 38(4), pages 448-457.
    15. Chen, B. & Chen, G.Q., 2007. "Resource analysis of the Chinese society 1980-2002 based on exergy--Part 3: Agricultural products," Energy Policy, Elsevier, vol. 35(4), pages 2065-2078, April.
    16. Chen, Z.M. & Chen, G.Q., 2011. "Embodied carbon dioxide emission at supra-national scale: A coalition analysis for G7, BRIC, and the rest of the world," Energy Policy, Elsevier, vol. 39(5), pages 2899-2909, May.
    17. Chen, Z.M. & Chen, G.Q., 2011. "An overview of energy consumption of the globalized world economy," Energy Policy, Elsevier, vol. 39(10), pages 5920-5928, October.
    18. 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.
    19. Terence Tai-Leung Chong & Wing-Kam Ng, 2008. "Technical analysis and the London stock exchange: testing the MACD and RSI rules using the FT30," Applied Economics Letters, Taylor & Francis Journals, vol. 15(14), pages 1111-1114.
    20. 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.
    21. 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.
    22. 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.
    23. Xia, X.H. & Chen, G.Q., 2012. "Energy abatement in Chinese industry: Cost evaluation of regulation strategies and allocation alternatives," Energy Policy, Elsevier, vol. 45(C), pages 449-458.
    24. Sylvie Geisendorf, 2011. "Internal selection and market selection in economic Genetic Algorithms," Journal of Evolutionary Economics, Springer, vol. 21(5), pages 817-841, December.
    25. 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.
    26. 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.
    27. Georgios Vasilakis & Konstantinos Theofilatos & Efstratios Georgopoulos & Andreas Karathanasopoulos & Spiros Likothanassis, 2013. "A Genetic Programming Approach for EUR/USD Exchange Rate Forecasting and Trading," Computational Economics, Springer;Society for Computational Economics, vol. 42(4), pages 415-431, December.
    28. Julián Andrada-Félix & Fernando Fernández-Rodríguez, 2008. "Improving moving average trading rules with boosting and statistical learning methods," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 27(5), pages 433-449.
    29. 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.
    30. 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.
    31. Chen, B. & Chen, G.Q., 2007. "Resource analysis of the Chinese society 1980-2002 based on exergy--Part 4: Fishery and rangeland," Energy Policy, Elsevier, vol. 35(4), pages 2079-2086, April.
    32. Xia, X.H. & Huang, G.T. & Chen, G.Q. & Zhang, Bo & Chen, Z.M. & Yang, Q., 2011. "Energy security, efficiency and carbon emission of Chinese industry," Energy Policy, Elsevier, vol. 39(6), pages 3520-3528, June.
    33. Chen, B. & Chen, G.Q., 2007. "Resource analysis of the Chinese society 1980-2002 based on exergy--Part 2: Renewable energy sources and forest," Energy Policy, Elsevier, vol. 35(4), pages 2051-2064, April.
    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. 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.
    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).

    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. 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.
    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. Tian, Xu & Chen, Bin & Geng, Yong & Zhong, Shaozhuo & Gao, Cuixia & Wilson, Jeffrey & Cui, Xiaowei & Dou, Yi, 2019. "Energy footprint pathways of China," Energy, Elsevier, vol. 180(C), pages 330-340.
    4. An, Qier & An, Haizhong & Wang, Lang & Gao, Xiangyun & Lv, Na, 2015. "Analysis of embodied exergy flow between Chinese industries based on network theory," Ecological Modelling, Elsevier, vol. 318(C), pages 26-35.
    5. Ü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.
    6. Chen, G.Q. & Qi, Z.H., 2007. "Systems account of societal exergy utilization: China 2003," Ecological Modelling, Elsevier, vol. 208(2), pages 102-118.
    7. Chen, G.Q. & Jiang, M.M. & Yang, Z.F. & Chen, B. & Ji, Xi & Zhou, J.B., 2009. "Exergetic assessment for ecological economic system: Chinese agriculture," Ecological Modelling, Elsevier, vol. 220(3), pages 397-410.
    8. 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.
    9. Serrenho, André Cabrera & Warr, Benjamin & Sousa, Tânia & Ayres, Robert U. & Domingos, Tiago, 2016. "Structure and dynamics of useful work along the agriculture-industry-services transition: Portugal from 1856 to 2009," Structural Change and Economic Dynamics, Elsevier, vol. 36(C), pages 1-21.
    10. Naseri, Hakim & Parashkoohi, Mohammad Gholami & Ranjbar, Iraj & Zamani, Davood Mohammad, 2021. "Energy-economic and life cycle assessment of sugarcane production in different tillage systems," Energy, Elsevier, vol. 217(C).
    11. Zhang, Xiaohong & Wu, Liqian & Zhang, Rong & Deng, Shihuai & Zhang, Yanzong & Wu, Jun & Li, Yuanwei & Lin, Lili & Li, Li & Wang, Yinjun & Wang, Lilin, 2013. "Evaluating the relationships among economic growth, energy consumption, air emissions and air environmental protection investment in China," Renewable and Sustainable Energy Reviews, Elsevier, vol. 18(C), pages 259-270.
    12. Zhang, Bo & Chen, G.Q., 2010. "Physical sustainability assessment for the China society: Exergy-based systems account for resources use and environmental emissions," Renewable and Sustainable Energy Reviews, Elsevier, vol. 14(6), pages 1527-1545, August.
    13. 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.
    14. An, Qier & An, Haizhong & Wang, Lang & Huang, Xuan, 2014. "Structural and regional variations of natural resource production in China based on exergy," Energy, Elsevier, vol. 74(C), pages 67-77.
    15. Chen, G.Q. & Yang, Q. & Zhao, Y.H., 2011. "Renewability of wind power in China: A case study of nonrenewable energy cost and greenhouse gas emission by a plant in Guangxi," Renewable and Sustainable Energy Reviews, Elsevier, vol. 15(5), pages 2322-2329, June.
    16. Jiang, M.M. & Chen, B. & Zhou, J.B. & Tao, F.R. & Li, Z. & Yang, Z.F. & Chen, G.Q., 2007. "Emergy account for biomass resource exploitation by agriculture in China," Energy Policy, Elsevier, vol. 35(9), pages 4704-4719, September.
    17. Amiri, Zahra & Asgharipour, Mohammad Reza & Campbell, Daniel E. & Armin, Mohammad, 2020. "Extended exergy analysis (EAA) of two canola farming systems in Khorramabad, Iran," Agricultural Systems, Elsevier, vol. 180(C).
    18. 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.
    19. Zhang, Lixiao & Pang, Mingyue & Bahaj, AbuBakr S. & Yang, Yongchuan & Wang, Changbo, 2021. "Small hydropower development in China: Growing challenges and transition strategy," Renewable and Sustainable Energy Reviews, Elsevier, vol. 137(C).
    20. Warr, Benjamin & Ayres, Robert & Eisenmenger, Nina & Krausmann, Fridolin & Schandl, Heinz, 2010. "Energy use and economic development: A comparative analysis of useful work supply in Austria, Japan, the United Kingdom and the US during 100Â years of economic growth," Ecological Economics, Elsevier, vol. 69(10), pages 1904-1917, August.

    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:hin:jnlmpe:101808. 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: Mohamed Abdelhakeem (email available below). General contact details of provider: https://www.hindawi.com .

    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.