IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2507.09739.html
   My bibliography  Save this paper

Enhancing Trading Performance Through Sentiment Analysis with Large Language Models: Evidence from the S&P 500

Author

Listed:
  • Haojie Liu
  • Zihan Lin
  • Randall R. Rojas

Abstract

This study integrates real-time sentiment analysis from financial news, GPT-2 and FinBERT, with technical indicators and time-series models like ARIMA and ETS to optimize S&P 500 trading strategies. By merging sentiment data with momentum and trend-based metrics, including a benchmark buy-and-hold and sentiment-based approach, is evaluated through assets values and returns. Results show that combining sentiment-driven insights with traditional models improves trading performance, offering a more dynamic approach to stock trading that adapts to market changes in volatile environments.

Suggested Citation

  • Haojie Liu & Zihan Lin & Randall R. Rojas, 2025. "Enhancing Trading Performance Through Sentiment Analysis with Large Language Models: Evidence from the S&P 500," Papers 2507.09739, arXiv.org.
  • Handle: RePEc:arx:papers:2507.09739
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2507.09739
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Sean J. Taylor & Benjamin Letham, 2018. "Forecasting at Scale," The American Statistician, Taylor & Francis Journals, vol. 72(1), pages 37-45, January.
    2. Joseph E. Engelberg & Christopher A. Parsons, 2011. "The Causal Impact of Media in Financial Markets," Journal of Finance, American Finance Association, vol. 66(1), pages 67-97, February.
    3. Kirtac, Kemal & Germano, Guido, 2024. "Sentiment trading with large language models," Finance Research Letters, Elsevier, vol. 62(PB).
    4. Gu, Chen & Kurov, Alexander, 2020. "Informational role of social media: Evidence from Twitter sentiment," Journal of Banking & Finance, Elsevier, vol. 121(C).
    5. Jacques Vella Critien & Albert Gatt & Joshua Ellul, 2022. "Bitcoin price change and trend prediction through twitter sentiment and data volume," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 8(1), pages 1-20, December.
    6. Bledar Fazlija & Pedro Harder, 2022. "Using Financial News Sentiment for Stock Price Direction Prediction," Mathematics, MDPI, vol. 10(13), pages 1-20, June.
    7. Tim Loughran & Bill Mcdonald, 2011. "When Is a Liability Not a Liability? Textual Analysis, Dictionaries, and 10‐Ks," Journal of Finance, American Finance Association, vol. 66(1), pages 35-65, February.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Yousaf, Imran & Youssef, Manel & Goodell, John W., 2022. "Quantile connectedness between sentiment and financial markets: Evidence from the S&P 500 twitter sentiment index," International Review of Financial Analysis, Elsevier, vol. 83(C).
    2. Umar, Tarik, 2022. "Complexity aversion when SeekingAlpha," Journal of Accounting and Economics, Elsevier, vol. 73(2).
    3. Duan, Mingli, 2025. "The signaling effect of tone: The influence of key audit matters’ tone on bank lending decisions," Finance Research Letters, Elsevier, vol. 76(C).
    4. Nguyen, Huan Huu & Ngo, Vu Minh & Pham, Luan Minh & Van Nguyen, Phuc, 2025. "Investor sentiment and market returns: A multi-horizon analysis," Research in International Business and Finance, Elsevier, vol. 74(C).
    5. Ahmed, Yousry & Elshandidy, Tamer, 2016. "The effect of bidder conservatism on M&A decisions: Text-based evidence from US 10-K filings," International Review of Financial Analysis, Elsevier, vol. 46(C), pages 176-190.
    6. Ferdinand Graf, 2011. "Mechanically Extracted Company Signals and their Impact on Stock and Credit Markets," Working Paper Series of the Department of Economics, University of Konstanz 2011-18, Department of Economics, University of Konstanz.
    7. Zhao, Shuping & Xu, Kai & Wang, Zhao & Liang, Changyong & Lu, Wenxing & Chen, Bo, 2022. "Financial distress prediction by combining sentiment tone features," Economic Modelling, Elsevier, vol. 106(C).
    8. Matthias M M Buehlmaier & Josef Zechner, 2021. "Financial Media, Price Discovery, and Merger Arbitrage [Who writes the news? Corporate press releases during merger negotiations]," Review of Finance, European Finance Association, vol. 25(4), pages 997-1046.
    9. Ahmad, Khurshid & Han, JingGuang & Hutson, Elaine & Kearney, Colm & Liu, Sha, 2016. "Media-expressed negative tone and firm-level stock returns," Journal of Corporate Finance, Elsevier, vol. 37(C), pages 152-172.
    10. John Garcia, 2024. "Herding the crowds: how sentiment affects crowdsourced earnings estimates," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 38(3), pages 331-370, September.
    11. Mohamed Al Guindy & James P. Naughton & Ryan Riordan, 2024. "The evolution of corporate twitter usage," Journal of Business Finance & Accounting, Wiley Blackwell, vol. 51(3-4), pages 819-845, March.
    12. James P. Ryans, 2021. "Textual classification of SEC comment letters," Review of Accounting Studies, Springer, vol. 26(1), pages 37-80, March.
    13. Liao, Rose & Wang, Xinjie & Wu, Ge, 2021. "The role of media in mergers and acquisitions," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 74(C).
    14. Vegard Høghaug Larsen & Leif Anders Thorsrud, 2022. "Asset returns, news topics, and media effects," Scandinavian Journal of Economics, Wiley Blackwell, vol. 124(3), pages 838-868, July.
    15. Jūra Liaukonytė & Alminas Žaldokas, 2022. "Background Noise? TV Advertising Affects Real-Time Investor Behavior," Management Science, INFORMS, vol. 68(4), pages 2465-2484, April.
    16. Felix Drinkall & Stefan Zohren & Michael McMahon & Janet B. Pierrehumbert, 2025. "Stories that (are) Move(d by) Markets: A Causal Exploration of Market Shocks and Semantic Shifts across Different Partisan Groups," Papers 2502.14497, arXiv.org.
    17. Donald B. Keim & Massimo Massa & Bastian von Beschwitz, 2018. "First to \"Read\" the News: New Analytics and Algorithmic Trading," International Finance Discussion Papers 1233, Board of Governors of the Federal Reserve System (U.S.).
    18. Miwa, Kotaro, 2023. "Divergent opinions on social media," International Review of Economics & Finance, Elsevier, vol. 86(C), pages 182-196.
    19. Oleg Chuprinin & Massimo Massa & Bastian von Beschwitz, 2015. "Why Do Short Sellers Like Qualitative News?," International Finance Discussion Papers 1149, Board of Governors of the Federal Reserve System (U.S.).
    20. Saadon, Yossi & Schreiber, Ben Z., 2023. "Newspapers tone and the overnight-intraday stock return anomaly," Journal of Financial Markets, Elsevier, vol. 65(C).

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:2507.09739. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.