The Stock prediction has traditionally been an attractive and challenging topic for investors and researchers. Traditionally, people concern more about predicting stock prices, less effort has been made to recommend stocks for constructing a profitable portfolio. Moreover, in existing methods for stock prediction, most of them construct models based on one or two kinds of features like stock prices, news sentiment, or simple technical indicators, and disregard the importance of multi-source information fusion. In response to this concern, we propose a novel model T2V_TF based on deep learning by combining both Time2Vec and Transformer technologies. To introduce more diverse information into the proposed model, we further conduct an in-depth exploration of the extraction and fusion of multi-source heterogeneous information, which includes the trading data, time–frequency features, Alpha 101 and Alpha 191 technical indicators, and sentiment scores. Moreover, to increase the ranking ability of our model, T2V_TF takes the ranking loss as the loss function instead of the widely used regression loss. Finally, all the technological innovations of this paper are verified on the portfolio constructed based on the A50 stocks from the Chinese stock market. The experimental results demonstrate that our proposed T2V_TF can get better portfolio cumulative return, compared with other models including the multi-layer perceptron, the support vector machine, the gradient boosting decision trees, the long short-term memory model, and the attention-based long short-term memory model, and the Transformer.
Read full abstract