簡易檢索 / 詳目顯示

研究生: 陳柏全
Chen, Po-Chuan
論文名稱: 即時爬取網路資料實現股市效益分析預測系統
A Real-Time Stock Market Efficiency Analytical Predictive System by Crawling Internet Data
指導教授: 陳響亮
Chen, Shang-Liang
學位類別: 碩士
Master
系所名稱: 電機資訊學院 - 製造資訊與系統研究所
Institute of Manufacturing Information and Systems
論文出版年: 2025
畢業學年度: 113
語文別: 英文
論文頁數: 172
中文關鍵詞: 樹梅派演算法台灣股市模擬交易XGBoost
外文關鍵詞: Raspberry Pi, Algorithm, Taiwan Stock Market, Simulation Trading, XGBoost
相關次數: 點閱:51下載:0
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 摘要 2 Abstract 3 Acknowledgement 4 Table of Contents 0 List of Figures 4 List of Tables 5 List of Abbreviations 7 CHAPTER ONE 11 INTRODUCTION 11 1.1 Research Background 11 1.2 Research Motivation 12 1.3 Research Purpose 13 CHAPTER TWO 15 LITERATURE REVIEW 15 2.1 Stock Technical Analysis 15 2.2 Related Researches about Technical Analysis 17 2.3 Trend 18 2.4 Ties between Taiwan and World Stock Index 19 2.5 Algorithms 19 2.5.1 Support Vector Machines (SVM) 19 2.5.2 Extreme Gradient Boosting (XGBoost) 21 2.5.4 LSTM 24 CHAPTER THREE 28 RESEARCH METHOD 28 3.1 Data Collection 28 3.2 Stock Data Update Process 31 3.3 Raspberry Pi Zero 2 Routine 33 3.4 Main Computers’ tasks 34 3.5 SQL server 36 3.6 System Web Page Overview 36 3.7 System Modules 38 3.8 Information Flow 39 3.9 Weighted Ensemble Method 44 3.10 System Energy Consumption 45 3.11 Hardware Limitation 46 3.12 Investment Risk Disclosure 47 CHAPTER FOUR 48 EXPERIMENT METHOD 48 4.1 Experiment Design 48 4.2 Python Libraries and Algorithms 49 4.2.1 Major Python Libraries 49 4.3 RSI Pattern Backtesting 50 4.4 Algorithm Predictions 53 4.5 Algorithm prediction in trends 58 4.6 Simulation trading conditions 62 4.7 Trading Strategies 63 4.8 Real-Time stock analysis 68 4.9 Simulation trading based on ER and EL 69 CHAPTER FIVE 72 RESULTS AND DISCUSSION 72 5.1 Simulation results and discussion 72 5.2 Highest Return under ER and EL Strategy 76 5.3 Simulation trading based on algorithm predictions. 77 5.4 Simulation trading During a Volatile Marker Period 80 5.5 Considering the ER and EL to simulate trading 81 5.6 Considering weighted Algorithm predicted ER and EL to simulate trading 82 5.7 Using Algorithm-Weighted ER and EL as Selling Conditions 83 5.8 Correlation between Company Fundamentals and Returns of the ER-EL Strategy 84 5.9 Examine Operation Efficiency Ratio 86 5.10 Summary and Insights from Simulation Results 88 5.11 Stock Rating Framework for Investment Decision-Making 89 5.12 MVC Web Page 90 5.13 Summary of Chapter Five 91 CHAPTER SIX 93 FIELD TEST 93 6.1 Applying the Analytical Predictive System to Short a Stock 93 6.3 Trading a stock based on Analytical Predictive System 94 6.4 Actual Trading Opportunity Based on Algorithm Prediction 95 6.5 System Optimization 96 6.6 Suggestions for Future Research 97 6.7 Conclusions 99 References 100 Appendix 102 Appendix A Algorithm Training Model Python Script 102 XGBoost Training Model Python Script 102 SVM Training Model Python Script 104 LSTM Training Model Python Script 107 Appendix B Python Script for Calculating Algorithm prediction Accuracies and Sample Size 110 Appendix C Simulation Trading Python Script 160 Appendix D List of Ensemble-Predicted Probability Abbreviation 165 Appendix E System Environment 166

    [1] "台灣散戶每年賠1880億?網曝「只有1投資」穩賺錢," in 聯合新聞網, ed, 2024.
    [2] 尤詮富, "XGBOOST模型於台股均線價格突破策略之運用," 碩士, 財務管理學系研究所, 國立中山大學, 高雄市, 2023. [Online]. Available: https://hdl.handle.net/11296/6c2t3y
    [3] Jessica. "RSI 是什麼?RSI 怎麼看?RSI 指標教學!." 預見. https://www.stockfeel.com.tw/%E6%95%99%E4%BD%A0%E7%9C%8B%E6%87%82rsi%E7%9B%B8%E5%B0%8D%E5%BC%B7%E5%BC%B1%E6%8C%87%E6%A8%99/ (accessed.
    [4] Z. West. "Using the Stochastic Oscillator in Python for Algorithmic Trading." https://www.alpharithms.com/stochastic-oscillator-in-python-483214/ (accessed.
    [5] 許繼元. "MACD教學-MACD是什麼?如何判斷MACD指標的意思?." https://rich01.com/what-is-macd-indicator/ (accessed.
    [6] 林典南, "使用AdaBoost之臺股指數期貨當沖交易系統," 碩士, 資訊網路與多媒體研究所, 國立臺灣大學, 台北市, 2008. [Online]. Available: https://hdl.handle.net/11296/g67qtr
    [7] 羅生暉, "成交量及技術指標綜合策略之研究," 碩士, 資訊管理學系, 東吳大學, 台北市, 2013. [Online]. Available: https://hdl.handle.net/11296/vt6n5z
    [8] 沈慧臻, "台灣股市技術分析實證研究:多重技術分析指標之應用," 碩士, 會計學系, 國立彰化師範大學, 彰化縣, 2021. [Online]. Available: https://hdl.handle.net/11296/q862p2
    [9] 葉廷遠, "結合籌碼與技術分析建構臺股當沖交易策略," 碩士, 財務金融研究所, 國立臺灣科技大學, 台北市, 2023. [Online]. Available: https://hdl.handle.net/11296/f5q79n
    [10] 周一華, "技術分析有效性之研究- 以 KD、RSI、MACD、MTM 指標為例," 碩士, 財務金融技術學系, 國立彰化師範大學, 彰化縣, 2022. [Online]. Available: https://hdl.handle.net/11296/83c2kk
    [11] 黃上錤, "應用技術分析於股票投資超額報酬之研究," 碩士, 會計學系, 東吳大學, 台北市, 2023. [Online]. Available: https://hdl.handle.net/11296/k9fn74
    [12] 郭浩, 股市小白的第一本技術分析教科書. 大樂文化有限公司 (in Traditional Chinese), 2022, p. 197.
    [13] A. Schroeder, The Snowball: Warren Buffett and the Business of Life. Bantam (in English), 2008.
    [14] M. Market市場先生. "頭肩型態(Head and Shoulders)." https://rich01.com/what-is-head-and-shoulders-technical-analysis/ (accessed 2023).
    [15] 台灣指數股份有限公司. "臺灣證券交易所發行量加權股價指數成分股暨市值比重." 台灣指數股份有限公司. https://www.taifex.com.tw/cht/2/weightedPropertion (accessed.
    [16] 研究小編. "ADR是什麼?台積電ADR如何影響台積電?台積電ADR換算?除了台積電,台灣在美國上市的公司還有這些!." 永豐金證卷風雲學堂. https://www.sinotrade.com.tw/richclub/hotstock/ADR%E6%98%AF%E4%BB%80%E9%BA%BC-%E5%8F%B0%E7%A9%8D%E9%9B%BBADR%E5%A6%82%E4%BD%95%E5%BD%B1%E9%9F%BF%E5%8F%B0%E7%A9%8D%E9%9B%BB-%E5%8F%B0%E7%A9%8D%E9%9B%BBADR%E6%8F%9B%E7%AE%97-%E9%99%A4%E4%BA%86%E5%8F%B0%E7%A9%8D%E9%9B%BB-%E5%8F%B0%E7%81%A3%E5%9C%A8%E7%BE%8E%E5%9C%8B%E4%B8%8A%E5%B8%82%E7%9A%84%E5%85%AC%E5%8F%B8%E9%82%84%E6%9C%89%E9%80%99%E4%BA%9B--65ee65f65c389e5cf0a92cc1 (accessed.
    [17] C. Cortes, & Vapnik, V. (1995), "Support-vector networks," Machine Learning, vol. 20, pp. 273-297, 1995.
    [18] A. M. Deris, A. M. Zain, and R. Sallehuddin, "Overview of Support Vector Machine in Modeling Machining Performances," Procedia Engineering, vol. 24, pp. 308-312, 2011/01/01/ 2011, doi: https://doi.org/10.1016/j.proeng.2011.11.2647.
    [19] S.-W. WANG, "利用SVM結合交易策略對加密貨幣績效之研究," 國立高雄科技大學, 2012.
    [20] 楊人豪, "利用SVM結合交易策略對加密貨幣績效之研究," 碩士, 金融資訊系, 國立高雄科技大學, 高雄市, 2022. [Online]. Available: https://hdl.handle.net/11296/qcndab
    [21] 童韋傑, "配對交易結合SVM 於台股市場之應用研究," 碩士, 統計學系, 國立臺北大學, 新北市, 2020. [Online]. Available: https://hdl.handle.net/11296/hvvzf2
    [22] 蔡易霖. "機器學習常勝軍 - XGBoost." https://ithelp.ithome.com.tw/articles/10273094 (accessed.
    [23] Y. Gao. "Federated XGBoost with bagging aggregation." https://flower.ai/blog/2023-11-29-federated-xgboost-with-bagging-aggregation/ (accessed.
    [24] 劉家宏, "XGBoost模型在小型台灣指數期貨價格預測之實證分析," 碩士, 財務管理學系研究所, 國立中山大學, 高雄市, 2023. [Online]. Available: https://hdl.handle.net/11296/58u42p
    [25] S. Hochreiter and J. Schmidhuber, "Long Short-Term Memory," Neural Computation, vol. 9, no. 8, pp. 1735-1780, 1997, doi: 10.1162/neco.1997.9.8.1735.
    [26] 林逸青, "以深度學習建構股價預測模型:以台灣股票市場為例," 碩士, 財務金融研究所碩士班, 國立臺中科技大學, 台中市, 2019. [Online]. Available: https://hdl.handle.net/11296/625d39
    [27] 陳同力, "運用機器學習預測台股股價走勢," 碩士, 財務金融組, 國立臺灣大學, 台北市, 2019. [Online]. Available: https://hdl.handle.net/11296/pj7y3c
    [28] 林怡汝, "以機器學習預測元大臺灣50的股價," 碩士, 國際企業學研究所, 國立臺灣大學, 台北市, 2022. [Online]. Available: https://hdl.handle.net/11296/9h7c3j
    [29] 洪浩博, "集成學習於股價預測之應用," 碩士, 資訊網路與多媒體研究所, 國立臺灣大學, 台北市, 2022. [Online]. Available: https://hdl.handle.net/11296/wtrdgz
    [30] 廖婕珊, "技術分析結合長短期記憶模型應用於TWSE0050走勢預測實證," 碩士, 資訊傳播工程學系碩士班, 銘傳大學, 台北市, 2023. [Online]. Available: https://hdl.handle.net/11296/q95w4x
    [31] 趙芷儀, "以XGboost模型預測股票報酬率下方風險," 碩士, 財務金融學系碩士班, 國立屏東大學, 屏東縣, 2023. [Online]. Available: https://hdl.handle.net/11296/x45a3f
    [32] A. Jacobs. "Raspberry Pi Zero 2 W temperature and power consumption." https://andrejacobs.org/b24/electronics/raspberry-pi-zero-2-w-temperature-and-power-consumption/ (accessed 2025/3/24, 2025).

    無法下載圖示 校內:2027-08-31公開
    校外:2027-08-31公開
    電子論文尚未授權公開,紙本請查館藏目錄
    QR CODE