利用指数移动平均线、相对强弱指数和情绪分析,开发并测试定制算法交易策略

Sstuti D. Mehra, S. Shetty
{"title":"利用指数移动平均线、相对强弱指数和情绪分析,开发并测试定制算法交易策略","authors":"Sstuti D. Mehra, S. Shetty","doi":"10.32629/jai.v7i4.1328","DOIUrl":null,"url":null,"abstract":"Stock trading is a popular and important profession that requires near-to-perfect data analytical skills, mathematical and statistical knowledge, and a broad understanding of buying and selling stocks. Often, due to the number of factors to consider and the intervention of human bias, traders and investors make wrong decisions that cost them millions of dollars. Therefore, automated algorithmic trading has gained traction in the marketplace due to its ability to process huge amounts of data, perform mathematical calculations and make quick and effective decisions. Most algorithmic trading strategies rely on a single technical indicator; however, it has been found that combining two or more indicators makes a trading strategy profitable. Therefore, this paper proposes a custom algorithmic trading strategy that combines important technical indicators such as the Exponential Moving Average and Relative Strength Index and utilizes sentiment analysis of financial news as well. This combination of technical indicators and sentiment analysis is not prevalent in existing research. The performance of the strategy was tested on fifteen stocks from different sectors of the US market using Python’s VectorBt library. The results showed that most of the stocks produced a higher win rate with the custom strategy as compared to other strategies, with the highest win rate of 88% for the S&P 500 index. To carry out sentiment analysis, a NLP model using BERT was developed which achieved an accuracy of 84%. Finally, to test the strategy on real-time data, paper trading was carried out on the Alpaca API and after six months the portfolio’s ROI is 6.26%.","PeriodicalId":508223,"journal":{"name":"Journal of Autonomous Intelligence","volume":"21 5","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-01-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Developing and testing a custom algorithmic trading strategy using exponential moving average, relative strength index, and sentiment analysis\",\"authors\":\"Sstuti D. Mehra, S. Shetty\",\"doi\":\"10.32629/jai.v7i4.1328\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Stock trading is a popular and important profession that requires near-to-perfect data analytical skills, mathematical and statistical knowledge, and a broad understanding of buying and selling stocks. Often, due to the number of factors to consider and the intervention of human bias, traders and investors make wrong decisions that cost them millions of dollars. Therefore, automated algorithmic trading has gained traction in the marketplace due to its ability to process huge amounts of data, perform mathematical calculations and make quick and effective decisions. Most algorithmic trading strategies rely on a single technical indicator; however, it has been found that combining two or more indicators makes a trading strategy profitable. Therefore, this paper proposes a custom algorithmic trading strategy that combines important technical indicators such as the Exponential Moving Average and Relative Strength Index and utilizes sentiment analysis of financial news as well. This combination of technical indicators and sentiment analysis is not prevalent in existing research. The performance of the strategy was tested on fifteen stocks from different sectors of the US market using Python’s VectorBt library. The results showed that most of the stocks produced a higher win rate with the custom strategy as compared to other strategies, with the highest win rate of 88% for the S&P 500 index. To carry out sentiment analysis, a NLP model using BERT was developed which achieved an accuracy of 84%. Finally, to test the strategy on real-time data, paper trading was carried out on the Alpaca API and after six months the portfolio’s ROI is 6.26%.\",\"PeriodicalId\":508223,\"journal\":{\"name\":\"Journal of Autonomous Intelligence\",\"volume\":\"21 5\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-01-29\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Journal of Autonomous Intelligence\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.32629/jai.v7i4.1328\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Autonomous Intelligence","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.32629/jai.v7i4.1328","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

股票交易是一个热门而重要的职业,需要近乎完美的数据分析技能、数学和统计知识,以及对买卖股票的广泛了解。由于需要考虑的因素众多,加上人为偏见的干预,交易员和投资者往往会做出错误的决定,从而损失数百万美元。因此,自动算法交易因其能够处理海量数据、进行数学计算并做出快速有效的决策而在市场上备受青睐。大多数算法交易策略依赖于单一的技术指标,然而,人们发现,将两个或更多的指标结合在一起会使交易策略有利可图。因此,本文提出了一种自定义算法交易策略,该策略结合了指数移动平均线和相对强弱指数等重要技术指标,同时还利用了金融新闻的情感分析。这种将技术指标和情感分析相结合的方法在现有研究中并不普遍。我们使用 Python 的 VectorBt 库在美国市场不同行业的 15 只股票上测试了该策略的性能。结果显示,与其他策略相比,定制策略在大多数股票上的胜率更高,其中标准普尔 500 指数的胜率最高,达到 88%。为了进行情绪分析,使用 BERT 开发了一个 NLP 模型,准确率达到 84%。最后,为了在实时数据上测试该策略,在 Alpaca API 上进行了纸面交易,六个月后,投资组合的投资回报率为 6.26%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Developing and testing a custom algorithmic trading strategy using exponential moving average, relative strength index, and sentiment analysis
Stock trading is a popular and important profession that requires near-to-perfect data analytical skills, mathematical and statistical knowledge, and a broad understanding of buying and selling stocks. Often, due to the number of factors to consider and the intervention of human bias, traders and investors make wrong decisions that cost them millions of dollars. Therefore, automated algorithmic trading has gained traction in the marketplace due to its ability to process huge amounts of data, perform mathematical calculations and make quick and effective decisions. Most algorithmic trading strategies rely on a single technical indicator; however, it has been found that combining two or more indicators makes a trading strategy profitable. Therefore, this paper proposes a custom algorithmic trading strategy that combines important technical indicators such as the Exponential Moving Average and Relative Strength Index and utilizes sentiment analysis of financial news as well. This combination of technical indicators and sentiment analysis is not prevalent in existing research. The performance of the strategy was tested on fifteen stocks from different sectors of the US market using Python’s VectorBt library. The results showed that most of the stocks produced a higher win rate with the custom strategy as compared to other strategies, with the highest win rate of 88% for the S&P 500 index. To carry out sentiment analysis, a NLP model using BERT was developed which achieved an accuracy of 84%. Finally, to test the strategy on real-time data, paper trading was carried out on the Alpaca API and after six months the portfolio’s ROI is 6.26%.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Detecting people in sprinting motion using HPRDenoise: Point cloud denoising with hidden point removal Adaptive Multi-Layer Security Framework (AMLSF) for real-time applications in smart city networks Effective speech recognition for healthcare industry using phonetic system Integrating multisensory information fusion and interaction technologies in smart healthcare systems An investigation to identify the factors that cause failure in English essay, precis, and composition papers in CSS exams
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1