IDEAS home Printed from https://ideas.repec.org/a/spr/comgts/v21y2024i1d10.1007_s10287-024-00506-1.html
   My bibliography  Save this article

A financial trading system with optimized indicator setting, trading rule definition, and signal aggregation through Particle Swarm Optimization

Author

Listed:
  • Marco Corazza

    (Ca’ Foscari University of Venice)

  • Claudio Pizzi

    (Ca’ Foscari University of Venice)

  • Andrea Marchioni

    (University of Tuscia)

Abstract

Algorithmic trading, a widespread practice in the financial industry, is based on the automatic signal generation based on trading rules of one or more technical analysis indicators. Generally, the parameters for computing the indicators (such as the time windows), the trading rules (converting the indicator into a trading signal) and the weights for signal aggregation (for combining the signals from a plurality of indicators) are established by the trader based on her experience and are treated as fixed inputs of the trading algorithm. In recent literature, simple optimization systems are introduced by varying only one category of parameters at a time, that is only the indicators setting, only the trading rules definition, or only the signal aggregation while keeping the remaining parameters fixed. Our research goes further and proposes an automated trading system based on simultaneous optimization of the three categories of parameters. More precisely, we consider four technical indicators widely used in financial practice, the Exponential Moving Average, the Relative Strength Index, the Moving Average Convergence/Divergence, and the Bollinger Bands and we determine the optimal signal aggregation, trading rule definition and indicator setting using the Particle Swarm Optimization metaheuristic over a commonly used fitness function, that is the net capital at the end of the trading period. We apply our trading system to the Italian index FTSE MIB and to a set of financial stocks belonging to the FTSE MIB over a multi-year period for training and testing. We generally achieve superior performance both in sample and out of sample, using a standard technical analysis system as a benchmark. Furthermore, we successfully verify the ability of the optimized trading system to accurately classify the stock price trends.

Suggested Citation

  • Marco Corazza & Claudio Pizzi & Andrea Marchioni, 2024. "A financial trading system with optimized indicator setting, trading rule definition, and signal aggregation through Particle Swarm Optimization," Computational Management Science, Springer, vol. 21(1), pages 1-29, June.
  • Handle: RePEc:spr:comgts:v:21:y:2024:i:1:d:10.1007_s10287-024-00506-1
    DOI: 10.1007/s10287-024-00506-1
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10287-024-00506-1
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10287-024-00506-1?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. 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.
    2. Zakamulin, Valeriy & Giner, Javier, 2022. "Time series momentum in the US stock market: Empirical evidence and theoretical analysis," International Review of Financial Analysis, Elsevier, vol. 82(C).
    3. Matthew Lorig & Zhou Zhou & Bin Zou, 2019. "A Mathematical Analysis of Technical Analysis," Applied Mathematical Finance, Taylor & Francis Journals, vol. 26(1), pages 38-68, January.
    4. Dimitrios Vezeris & Themistoklis Kyrgos & Christos Schinas, 2018. "Take Profit and Stop Loss Trading Strategies Comparison in Combination with an MACD Trading System," JRFM, MDPI, vol. 11(3), pages 1-23, September.
    5. Neely, Christopher J., 2003. "Risk-adjusted, ex ante, optimal technical trading rules in equity markets," International Review of Economics & Finance, Elsevier, vol. 12(1), pages 69-87.
    6. Xiao-Xu Yan & Yuan-Biao Zhang & Xin-Kun Lv & Zi-Yu Li, 2017. "Improvement and Test of Stock Index Futures Trading Model Based on Bollinger Bands," International Journal of Economics and Finance, Canadian Center of Science and Education, vol. 9(1), pages 78-87, January.
    7. Ben R. Marshall & Nhut H. Nguyen & Nuttawat Visaltanachoti, 2017. "Time series momentum and moving average trading rules," Quantitative Finance, Taylor & Francis Journals, vol. 17(3), pages 405-421, March.
    8. Lee, Chun I. & Mathur, Ike, 1996. "Trading rule profits in european currency spot cross-rates," Journal of Banking & Finance, Elsevier, vol. 20(5), pages 949-962, June.
    9. Min Dai & Zhou Yang & Qing Zhang & Qiji Jim Zhu, 2016. "Optimal Trend Following Trading Rules," Mathematics of Operations Research, INFORMS, vol. 41(2), pages 626-642, May.
    10. Valeriy Zakamulin & Javier Giner, 2020. "Trend following with momentum versus moving averages: a tale of differences," Quantitative Finance, Taylor & Francis Journals, vol. 20(6), pages 985-1007, June.
    11. Anthony Brabazon & Michael O’Neill, 2004. "Evolving technical trading rules for spot foreign-exchange markets using grammatical evolution," Computational Management Science, Springer, vol. 1(3), pages 311-327, October.
    12. Luís Lobato Macedo & Pedro Godinho & Maria João Alves, 2020. "A Comparative Study of Technical Trading Strategies Using a Genetic Algorithm," Computational Economics, Springer;Society for Computational Economics, vol. 55(1), pages 349-381, January.
    13. Matthew Lorig & Zhou Zhou & Bin Zou, 2017. "A Mathematical Analysis of Technical Analysis," Papers 1710.09476, arXiv.org, revised Feb 2019.
    14. Lee, Chun I & Gleason, Kimberly C. & Mathur, Ike, 2001. "Trading rule profits in Latin American currency spot rates," International Review of Financial Analysis, Elsevier, vol. 10(2), pages 135-156.
    Full references (including those not matched with items on IDEAS)

    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. Zakamulin, Valeriy & Giner, Javier, 2023. "Optimal trend-following with transaction costs," International Review of Financial Analysis, Elsevier, vol. 90(C).
    2. Valeriy Zakamulin & Javier Giner, 2024. "Optimal trend-following rules in two-state regime-switching models," Journal of Asset Management, Palgrave Macmillan, vol. 25(4), pages 327-348, July.
    3. Cheol‐Ho Park & Scott H. Irwin, 2007. "What Do We Know About The Profitability Of Technical Analysis?," Journal of Economic Surveys, Wiley Blackwell, vol. 21(4), pages 786-826, September.
    4. Hu, Shicheng & Zhang, Weijie & Li, Danping & Wu, Bing, 2023. "Incorporating improved directional change and regime change detection to formulate trading strategies in foreign exchange markets," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 622(C).
    5. Zakamulin, Valeriy & Giner, Javier, 2022. "Time series momentum in the US stock market: Empirical evidence and theoretical analysis," International Review of Financial Analysis, Elsevier, vol. 82(C).
    6. Manahov, Viktor & Hudson, Robert & Gebka, Bartosz, 2014. "Does high frequency trading affect technical analysis and market efficiency? And if so, how?," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 28(C), pages 131-157.
    7. Tabak, Benjamin M. & Lima, Eduardo J.A., 2009. "Market efficiency of Brazilian exchange rate: Evidence from variance ratio statistics and technical trading rules," European Journal of Operational Research, Elsevier, vol. 194(3), pages 814-820, May.
    8. Osman Kilic & Joseph M. Marks & Kiseok Nam, 2022. "Predictable asset price dynamics, risk-return tradeoff, and investor behavior," Review of Quantitative Finance and Accounting, Springer, vol. 59(2), pages 749-791, August.
    9. Balvers, Ronald & Wu, Yangru, 2010. "Optimal transaction filters under transitory trading opportunities: Theory and empirical illustration," Journal of Financial Markets, Elsevier, vol. 13(1), pages 129-156, February.
    10. 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.
    11. Hung, Chiayu & Lai, Hung-Neng, 2022. "Information asymmetry and the profitability of technical analysis," Journal of Banking & Finance, Elsevier, vol. 134(C).
    12. Tajaddini, Reza & Crack, Timothy Falcon, 2012. "Do momentum-based trading strategies work in emerging currency markets?," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 22(3), pages 521-537.
    13. Ü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.
    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. Kevin Rink, 2023. "The predictive ability of technical trading rules: an empirical analysis of developed and emerging equity markets," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 37(4), pages 403-456, December.
    16. Vicky Henderson & Saul Jacka & Ruiqi Liu, 2021. "The Support and Resistance Line Method: An Analysis via Optimal Stopping," Papers 2103.02331, arXiv.org.
    17. Christopher J. Neely & Paul A. Weller, 2011. "Technical analysis in the foreign exchange market," Working Papers 2011-001, Federal Reserve Bank of St. Louis.
    18. Ahrens, Ralf & Reitz, Stefan, 2003. "Heterogeneous Expectations in the Foreign Exchange Market Evidence from the Daily Dollar/DM Exchange Rate," CFS Working Paper Series 2003/11, Center for Financial Studies (CFS).
    19. Wang, Zi-Mei & Chiao, Chaoshin & Chang, Ya-Ting, 2012. "Technical analyses and order submission behaviors: Evidence from an emerging market," International Review of Economics & Finance, Elsevier, vol. 24(C), pages 109-128.
    20. Jeff Madura & Martina K. Bers, 2002. "The performance persistence of foreign closed‐end funds," Review of Financial Economics, John Wiley & Sons, vol. 11(4), pages 263-285.

    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:spr:comgts:v:21:y:2024:i:1:d:10.1007_s10287-024-00506-1. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.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.