Skip to main content
Log in

Trading Signal Survival Analysis: A Framework for Enhancing Technical Analysis Strategies in Stock Markets

  • Published:
Computational Economics Aims and scope Submit manuscript

Abstract

Algorithmic trading is one important financial area of interest to both academic and industrial researchers. With the development of machine learning and deep learning, all kinds of models and techniques are utilized in algorithmic trading. This paper proposes a novel framework for enhancing stock technical analysis strategies by survival analysis. The main idea is to integrate an existing trading strategy with a survival model and make them complementary to each other. By means of survival analysis, the original trading strategy can be extended to introduce an investment target, which is treated as the event of interest. On the other hand, the original trading signal provides survival analysis with a simple and clear starting time point of observation. The trained survival models are used to filter out false trading signals to improve the strategy performance. Under the framework, we propose different filtering methods, utilize different deep survival models, and compare their performance from both trading and model perspectives. We perform extensive and strict backtesting on the daily trading data of 380 plus stocks. The experimental results show that the framework can well improve the performance of technical analysis strategies in different market situations.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Algorithm 1
Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12

Similar content being viewed by others

Notes

  1. https://github.com/mementum/backtrader.

  2. https://github.com/ranaroussi/quantstats.

  3. https://github.com/havakv/pycox.

References

Download references

Funding

This work was supported by [Zhejiang Provincial Philosophy and Social Sciences Project] (Grant Numbers [20NDJC225YB]).

Author information

Authors and Affiliations

Authors

Contributions

All authors contributed to the study conception and design. Material preparation, data collection and analysis were performed by Wenbin Hu and Junzi Zhou. The first draft of the manuscript was written by Wenbin Hu and all authors commented on previous versions of the manuscript. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Junzi Zhou.

Ethics declarations

Conflict of interest

The authors have no relevant financial or non-financial interests to disclose.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendix

Appendix

1.1 Detailed Experimental Results

This section provides the detailed experimental results on both training dataset and testing dataset for the DEMA, MACD and RSI strategies. The enhanced strategies are all built with the Cox PH model and the MST filtering method.

Table 9 reports the backtesting results of the OTSs. There is no hyper-parameter for the OTSs, so that all the periods are out of sample. Tables 10, 11 and 12 list the results of hyper-parameter tuning for the three enhanced strategies. For each strategy, there are three \(\alpha _M\) values, the best parameter is the one that has the best performance on the training dataset, which is in sample. E.g., in Table 10, \(\alpha _M=0.45\) have the best mean Shape and Calmar values on the four periods of training dataset. Each of the other two values only has one best metrics. As a result, \(\alpha _M=0.45\) is the selected hyper-parameter. However, the strategy with this selected parameter does not necessarily have the best performance on the testing dataset, which is out of sample. E.g., in Table 11, \(\alpha _M=0.44\) is selected, but \(\alpha _M=0.4\) has the best performance on the testing dataset.

Table 9 Detailed backtesting results of the original strategies
Table 10 Hyper-parameter tuning results of the enhanced DEMA strategy
Table 11 Hyper-parameter tuning results of the enhanced MACD strategy
Table 12 Hyper-parameter tuning results of the enhanced RSI strategy

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Hu, W., Zhou, J. Trading Signal Survival Analysis: A Framework for Enhancing Technical Analysis Strategies in Stock Markets. Comput Econ (2024). https://doi.org/10.1007/s10614-024-10567-8

Download citation

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s10614-024-10567-8

Keywords

Navigation