Abstract
This work concerns the optimization of a Trading Systems (TS) based on a small set of Technical Analysis (TA) indicators. Usually, in TA the values of the parameters (window lengths and thresholds) of these indicators are fixed by professional experience. Here, we propose to design the parametric configuration according to historical data, optimizing some performance measures subjected to proper constraints using a Particle Swarm Optimization-based metaheuristic. In particular, such an optimization procedure is applied to obtain both the optimal parameter values and the optimal weighting of the trading signals from the considered TA indicators, in order to provide an optimal trading decision. The use of a metaheuristic is necessary since the involved optimization problem is strongly nonlinear, nondifferentiable and mixed-integer. The proposed TS is optimized using the daily adjusted closing returns of seven Italian stocks coming from different industries and of two stock market indices.
Keywords
- Trading Systems
- Technical Analysis
- Mixed-Integer Optimization
- Particle Swarm Optimization
This is a preview of subscription content, access via your institution.
Buying options

Notes
- 1.
Notice that \(e(\cdot )\) is a function of \(S(\cdot )\), that \(S(\cdot )\) is a function of \(signal_i(\cdot )\), and that \(signal_i(\cdot )\) is a function of the i-th indicator.
- 2.
Notice that we performed our procedure 100 times, so we could apply the central limit theorem according to which the sample mean is asymptotically normally distributed.
References
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)
Corazza, M., Parpinel, F., Pizzi C.: An evolutionary approach to improve a simple trading system. In: Mathematical and Statistical Methods for Actuarial Sciences and Finance. MAF 2016, pp. 83–95. Springer (2017)
Murphy, J.J.: Technical analysis of the financial markets. A comprehensive guide to trading methods and applications, New York Institute of Finance (1999)
Pring, M.J.: Technical Analysis Explained, 3rd edn. McGraw-Hill (1991)
Ratnaweera, A., Halgamuge, S.K.: Self-organizing hierarchical particle swarm optimizer with time-varying acceleration coefficients. IEEE Trans. Evol. Comput. 8, 240–255 (2004)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Corazza, M., Parpinel, F., Pizzi, C. (2021). Trading System Mixed-Integer Optimization by PSO. In: Corazza, M., Gilli, M., Perna, C., Pizzi, C., Sibillo, M. (eds) Mathematical and Statistical Methods for Actuarial Sciences and Finance. Springer, Cham. https://doi.org/10.1007/978-3-030-78965-7_24
Download citation
DOI: https://doi.org/10.1007/978-3-030-78965-7_24
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-78964-0
Online ISBN: 978-3-030-78965-7
eBook Packages: Economics and FinanceEconomics and Finance (R0)