Published 2024-11-10
Keywords
- Time-Frequency Consistency; Stock Recommendation; Multi-Scale Dynamic Characteristics; Prompt Learning; Risk Control
How to Cite

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Abstract
The volatility and complexity of stock prices in the financial market make precise trend prediction a formidable challenge. Traditional stock prediction approaches often rely solely on either time-domain or frequency-domain information, which limits their ability to fully capture the multi-scale dynamics of stock prices, resulting in suboptimal prediction accuracy. To overcome these limitations, this paper presents an end-to-end stock recommendation algorithm grounded in time-frequency consistency. First, we introduce a time-frequency consistency analysis method that extracts both time-domain and frequency-domain features of stock prices concurrently, offering a more holistic view of trend fluctuations. Next, by applying prompt learning strategies, the model leverages pre-set prompts to identify optimal low-risk buying points within targeted time intervals, enhancing the decision-making process for stock recommendations. Finally, end-to-end model training facilitates seamless integration and automation from data input to stock recommendation output, enabling a fully streamlined prediction workflow. Experimental results indicate that this method surpasses traditional approaches in prediction accuracy and risk control, providing more dependable support for investor decisions.
References
- C. Zhao, M. Wu, J. Liu, Z. Duan, L. Shen, X. Shangguan, D. Liu, Y. Wang et al., “Progress and prospects of data-driven stock price forecasting research,” International Journal of Cognitive Computing in Engineering, vol. 4, pp. 100–108, 2023
- D. Sheth and M. Shah, “Predicting stock market using machine learning: best and accurate way to know future stock prices,” International Journal of System Assurance Engineering and Management, vol. 14, no. 1, pp. 1–18, 2023.
- S. S. Pashankar, J. D. Shendage, and J. Pawar, “Machine learning techniques for stock price prediction-a comparative analysis of linear regression, random forest, and support vector regression.” Journal of Advanced Zoology, vol. 45, 2024.
- Z. Nourbakhsh and N. Habibi, “Combining lstm and cnn methods and fundamental analysis for stock price trend prediction,” Multimedia Tools and Applications, vol. 82, no. 12, pp. 17 769–17 799, 2023.
- J. Olbrys and M. Mursztyn, “Measuring stock market resiliency with discrete fourier transform for high frequency data,” Physica A: Statistical Mechanics and Its Applications, vol. 513, pp. 248–256, 2019.
- D. K. Sharma, H. Hota, and A. R. Rababaah, “Forecasting us stock price using hybrid of wavelet transforms and adaptive neuro fuzzy inference system,” International Journal of System Assurance Engineering and Management, vol. 15, no. 2, pp. 591–608, 2024.
- C. Ya˜nez, W. Kristjanpoller, and M. C. Minutolo, “Stock market index prediction using transformer neural network models and frequency decomposition,” Neural Computing and Applications, pp. 1–21, 2024.
- Q. Zhang, Y. Zhang, F. Bao, Y. Liu, C. Zhang, and P. Liu, “Incorporating stock prices and text for stock movement prediction based on information fusion,” Engineering Applications of Artificial Intelligence, vol. 127, p. 107377, 2024.
- S. Khan and H. Alghulaiakh, “Arima model for accurate time series stocks forecasting,” International Journal of Advanced Computer Science and Applications, vol. 11, no. 7, 2020.
- L. Wang, F. Ma, J. Liu, and L. Yang, “Forecasting stock price volatility: New evidence from the garch-midas model,” International Journal of Forecasting, vol. 36, no. 2, pp. 684–694, 2020.
- H. N. Bhandari, B. Rimal, N. R. Pokhrel, R. Rimal, K. R. Dahal, and R. K. Khatri, “Predicting stock market index using lstm,” Machine Learning with Applications, vol. 9, p. 100320, 2022.
- B. G¨ulmez, “Stock price prediction with optimized deep lstm network with artificial rabbits optimization algorithm,” Expert Systems with Applications, vol. 227, p. 120346, 2023.
- Y. A. GIWA, “Over the counter stocks data acquisition & analysis with time series prediction,” International Journal of Social Sciences and Scientific Studies, vol. 4, no. 1, pp. 3643–3670, 2024.
- D. Song, A. M. C. Baek, and N. Kim, “Forecasting stock market indices using padding-based fourier transform denoising and time series deep learning models,” IEEE Access, vol. 9, pp. 83 786–83 796, 2021.
- S. Verma, S. P. Sahu, and T. P. Sahu, “Discrete wavelet transform-based feature engineering for stock market prediction,” International Journal of Information Technology, vol. 15, no. 2, pp. 1179–1188, 2023.
- Y. Luo, “Wavelet neural network model with time-frequency analysis for accurate share prices prediction,” in Intelligent Computing: Proceedings of the 2021 Computing Conference, Volume 3. Springer, 2021, pp. 286–297.
- D. Cao, F. Jia, S. O. Arik, T. Pfister, Y. Zheng, W. Ye, and Y. Liu, “Tempo: Prompt-based generative pre-trained transformer for time series forecasting,” arXiv preprint arXiv:2310.04948, 2023.
- T. Guo and E. Hauptmann, “Fine-tuning large language models for stock return prediction using newsflow,” arXiv preprint arXiv:2407.18103, 2024.
- Y. Jiao and J. Jakubowicz, “Predicting stock movement direction with machine learning: An extensive study on s&p 500 stocks,” in 2017 IEEE International Conference on Big Data (Big Data). IEEE, 2017, pp. 4705–4713.
- S. Feng, C. Xu, Y. Zuo, G. Chen, F. Lin, and J. XiaHou, “Relation-aware dynamic attributed graph attention network for stocks recommendation,” Pattern Recognition, vol. 121, p. 108119, 2022.
- Q. Bui and R. ´Slepaczuk, “Applying hurst exponent in pair trading strategies on nasdaq 100 index,” Physica A: Statistical Mechanics and its Applications, vol. 592, p. 126784, 2022.
- V. Cioli, T. Giacomo, A. Giannozzi, and O. Roggi, “Stock liquidity and corporate investment policy after ftse 100 index additions,” International Journal of Business and Management, vol. 17, no. 10, 2022.
- Z. Yang, T. Zhao, S. Wang, and X. Li, “Mdf-dmc: A stock prediction model combining multi-view stock data features with dynamic market correlation information,” Expert Systems with Applications, vol. 238, p. 122134, 2024.
- Y. Liu, S. Huang, X. Tian, F. Zhang, F. Zhao, and C. Zhang, “A stock series prediction model based on variational mode decomposition and dual-channel attention network,” Expert Systems with Applications, vol. 238, p. 121708, 2024.
- M. Lu and X. Xu, “Trnn: An efficient time-series recurrent neural network for stock price prediction,” Information Sciences, vol. 657, p. 119951, 2024.
- K. Chaudhari and A. Thakkar, “Data fusion with factored quantization for stock trend prediction using neural networks,” Information Processing & Management, vol. 60, no. 3, p. 103293, 2023.
- N. Wijerathne, J. Samarathunge, K. Rathnayake, S. Jayasinghe, S. Ahangama, I. Perera, V. Dhananjaya, and L. Sivaneasharajah, “Deep learning based personalized stock recommender system,” in International Conference on Neural Information Processing. Springer, 2023, pp. 362–374.
- A. Mahmoodi, L. Hashemi, M. Jasemi, S. Mehraban, J. Lalibert´e, and R. C. Millar, “A developed stock price forecasting model using support vector machine combined with metaheuristic algorithms,” Opsearch, vol. 60, no. 1, pp. 59–86, 2023.