Skip to main content

An Evolutionary Approach to Improve a Simple Trading System

  • Chapter
  • First Online:
Book cover Mathematical and Statistical Methods for Actuarial Sciences and Finance

Abstract

In this paper we consider a simple trading system (TS) based on a set of Technical Analysis (TA) indicators. Their peculiarity is the dependence on the time-window widths used to calculate them. To attempt to improve the performances of the TS, we optimize these parameters (that is the time-window widths) by the Particle Swarm Optimization (PSO), which is a metaheuristic used to solve global optimization problems. The use of PSO is necessary since the involved optimization problem is nonlinear, nondifferentiable and integer: in summary, it is complex. In such a case, the use of exact solution methods would be excessively time-consuming, in particular for practical purposes. The proposed TS is tested using the daily closing prices from January 2, 2001, to June 30, 2016, of eight Italian stocks of different economic sectors. As benchmark, we consider the same TS but with standard time-window lengths. Irrespective of their signs, both in-sample and out-of-sample performances achieved by the TS with optimized parameters are better than those achieved by the benchmark, highlighting that parameter optimization can play an important role in TA-based TSs.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 89.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 119.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 119.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    The first 52 prices need to calculate the starting values of indicators.

References

  1. Allen, F., Karjalainen, R.: Using genetic algorithms to find technical trading rules. J. Financ. Econ. 51, 245–271 (1999)

    Article  Google Scholar 

  2. Corazza, M., Fasano, G., Gusso R.: Particle Swarm Optimization with no-smooth penalty reformulation, for a complex portfolio selection problem. Appl. Math. Comput. 224, 611–624 (2013)

    MathSciNet  MATH  Google Scholar 

  3. Dash, R., Dash, P.K.: A hybrid stock trading framework integrating technical analysis with machine learning techniques. J. Finance Data Sci. 2, 42–57 (2016)

    Article  Google Scholar 

  4. Fletcher, R.: Practical Methods of Optimization. Wiley, Glichester (1991)

    MATH  Google Scholar 

  5. Hu, Y., Liu, K., Zhang, X., Su, L., Ngai, E.W.T., Liu, M.: Application of evolutionary computation for rule discovery in stock algorithmic trading: a literature review. Appl. Soft Comput. 36, 534–551 (2015)

    Article  Google Scholar 

  6. Kennedy, J., Eberhart, R.C.: Particle Swarm Optimization. In: Proceedings of the 1995 IEEE International Conference on Neural Networks, vol. IV, pp. 1942–1948 (1995)

    Google Scholar 

  7. Laskari, E.C., Parsopoulos, K., Vrahatis, M.N.: Particle swarm optimization for integer programming. In: Proceedings of the 2002 Congress on Evolutionary Computation, vol. 2, pp. 1582–1587 (2002)

    Google Scholar 

  8. Murphy, J.J.: Technical Analysis of the Financial Markets. A Comprehensive Guide to Trading Methods and Applications. New York Institute of Finance, New York (1999)

    Google Scholar 

  9. Ni, H., Yin, H.: Exchange rate prediction using hybrid neural networks and trading indicators. Neurocomputing 72, 2815–2823 (2009)

    Article  Google Scholar 

  10. Poli, R., Kennedy, J., Blackwell, T.: Particle swarm optimisation: an overview. Swarm Intell. J. 1, 33–57 (2007)

    Article  Google Scholar 

  11. Wu, J., Yu, L., Chang, P.: An intelligent stock trading system using comprehensive features. Appl. Soft Comput. 23, 39–50 (2014)

    Article  Google Scholar 

  12. Yao, J.T., Tan, C.L.: A case study on using neural networks to perform technical forecasting of forex. Neurocomputing 34, 79–98 (2000)

    Article  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Marco Corazza .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Corazza, M., Parpinel, F., Pizzi, C. (2017). An Evolutionary Approach to Improve a Simple Trading System. In: Corazza, M., Legros, F., Perna, C., Sibillo, M. (eds) Mathematical and Statistical Methods for Actuarial Sciences and Finance . Springer, Cham. https://doi.org/10.1007/978-3-319-50234-2_7

Download citation

Publish with us

Policies and ethics