An Evolutionary Approach to Improve a Simple Trading System

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.

[1]  Hujun Yin,et al.  Exchange rate prediction using hybrid neural networks and trading indicators , 2009, Neurocomputing.

[2]  J. Murphy Technical Analysis of the Futures Markets: A Comprehensive Guide to Trading Methods and Applications , 1986 .

[3]  Yong Hu,et al.  Application of evolutionary computation for rule discovery in stock algorithmic trading: A literature review , 2015, Appl. Soft Comput..

[4]  James Kennedy,et al.  Particle swarm optimization , 2002, Proceedings of ICNN'95 - International Conference on Neural Networks.

[5]  R. Fletcher Practical Methods of Optimization , 1988 .

[6]  Pei-Chann Chang,et al.  An intelligent stock trading system using comprehensive features , 2014, Appl. Soft Comput..

[7]  LiuMei,et al.  Application of evolutionary computation for rule discovery in stock algorithmic trading , 2015 .

[8]  Franklin Allen,et al.  Using genetic algorithms to find technical trading rules , 1999 .

[9]  Giovanni Fasano,et al.  Particle Swarm Optimization with non-smooth penalty reformulation, for a complex portfolio selection problem , 2013, Appl. Math. Comput..

[10]  P. Dash,et al.  A hybrid stock trading framework integrating technical analysis with machine learning techniques , 2016 .

[11]  Riccardo Poli,et al.  Particle swarm optimization , 1995, Swarm Intelligence.

[12]  Michael N. Vrahatis,et al.  Particle swarm optimization for integer programming , 2002, Proceedings of the 2002 Congress on Evolutionary Computation. CEC'02 (Cat. No.02TH8600).

[13]  Jingtao Yao,et al.  A case study on using neural networks to perform technical forecasting of forex , 2000, Neurocomputing.