§ 瀏覽學位論文書目資料
  
系統識別號 U0002-2806202122325300
DOI 10.6846/TKU.2021.00783
論文名稱(中文) 大數據分析與LSTM模型於股市投資策略之研究-以台灣各類股為例
論文名稱(英文) Big Data analysis and LSTM Model investment strategy in the stock market – take Taiwan corporate stocks as Examples
第三語言論文名稱
校院名稱 淡江大學
系所名稱(中文) 資訊管理學系碩士班
系所名稱(英文) Department of Information Management
外國學位學校名稱
外國學位學院名稱
外國學位研究所名稱
學年度 109
學期 2
出版年 110
研究生(中文) 蔣明哲
研究生(英文) Ming-Zhe Jiang
學號 609630016
學位類別 碩士
語言別 繁體中文
第二語言別
口試日期 2021-06-10
論文頁數 48頁
口試委員 指導教授 - 李鴻璋
委員 - 戴敏育
委員 - 張應華
委員 - 李鴻璋
關鍵字(中) 大數據
深度學習
LSTM
技術指標
RSI
KD
台股
關鍵字(英) Big Data
LSTM
KD
RSI
Taiwan Stock Market
第三語言關鍵字
學科別分類
中文摘要
低薪及低利率已成為台灣社會的常態,使得民眾開始尋找報酬較高的風險性資產投資,而台灣股票市場擁有報酬率高且進入門檻低等特性,使得進入股票市場投資的人數日益漸增。
    股票投資的諸多決策以基本分析及技術分析為主,其中,基本分析需具備相關專業知識,而技術面則可較簡易的透過技術指標進行進出場決策,加上近年來隨者AI技術的發展,使得AI預測股價的方式興起,因此本研究將以技術指標策略,與AI股價漲跌預測兩部分作為探討。
    本研究分兩部份探討,第一部份為探討對加權指數、各產業類股,所有上市櫃公司,以10種單一技術指標(RSI、KD)策略,於2004年~2019年進行模擬分析。第二部份則為探討長短期記憶模型(LSTM)之最佳模型參數與最佳交易策略,以2009~2015年為訓練期,價、量與技術指標(RSI、KD)為參數訓練LSTM模型,並回測2016~2019年類股資料,。
    第一部份結果得出,於加權指數上,每年買入持有策略可獲得高於技術指標之報酬。於產業類股上,沒有單一技術指標策略可使所有產業之報酬率皆高於大盤。但於其中2個產業上(如存託憑證、農業科技業等)使用特定指標策略,卻可勝過加權指數及買入持有之報酬率。於個股上,使用技術指標策略之年化報酬率皆低於買入持有(7.09%),但於股市下跌期間可使用RSI交叉策略獲得較買入持有高的報酬。
     第二部分結果得出,在純價、量LSTM模型預測股價漲跌中,加入技術指標為參數,能提高模型預測之準確率,其中,於價、量模型加入RSI12指標後,測試準確率達77.62%,為最高準確率之參數組合。此外,本研究使用之7種模型,平均報酬率皆高於單一技術指標與買入持有策略之報酬率,而使用價、量與RSI12參數組合之模型,擁有13.33%之最佳報酬率,高出純價、量模型近2.2%之年化報酬率。
英文摘要
Low salaries and low interest rates have become the norm in Taiwan’s society, making people start looking for risky asset with higher profit. Taiwan’s stock market has features such as high profit and low entry gap, which makes the number of investors entering the stock market increasing.
Many stock investment decisions are based on fundamental analysis and technical analysis. Among them, fundamental analysis requires relevant professional knowledge in human domain, while technical analysis can be much easier to make buy-sell decisions through pure technical indicators. Recently, with the development of AI modling, AI modle combines with technical parameters to depict stock price become more and more popular. 
This study includes two parts. The first part is to discuss all the Taiwan Capitalization Weighted Stock Index(TAIEX), various industry indexes, and all listed companies etc., by using 10 kinds of technical indicators (e.g., RSI, KD) strategies, and conducts simulation analysis by using the historical datas from 2004 to 2019. The second part is to discuss the parameters and trading strategies in the long short-term memory model (LSTM). Seven kinds of the the parameters such as the price, volume and technical indicators (RSI, KD) are feed into the LSTM model as a training data for the period from 2009 to 2015 , and back-test the stock data for the period from 2016 to 2019.
The result of first part show that on TAIEX, using pure buy-and-hold strategy can get higher annual profit than those using technical indicators. As for kinds of industry indexes, technical indicators might get better result than that of buy-and-hold strategy, but these indicators vary among them. However, using specific technical indicator strategy in two of these industry indexes (e.g, depository receipts, agricultural technology) can get higher profit than TAIEX. For individual stocks, using the technical indicator strategy is lower annual profit than that of buy-and-hold, but during the downturn of the stock market, the RSI cross strategy can be used to obtain higher profit than that of buy-and-hold.
The second part of the results shows that adding technical indicators along with the price and volume, LSTM model can both improve the accuracy of the model prediction and get better results than those of using buy-and-hold strategy. Among them, after adding the RSI12 indicator to the price and volume model, the test accuracy is up to 77.62% is the parameter combination with the highest accuracy. In addition, the average profit of the seven kinds of input data combination obtain higher annual profit thanthose coming from both the profit of single technical indicator and buy-and-hold strategy. Among these seven ones, the input data compose with price, volume, and RSI12 get the best annual profit by 13.33%. This is nearly 20% increase than that of input data with the pure price and volume, which is previous studied.
第三語言摘要
論文目次
目錄
第一章 緒論	1
1.1研究背景	1
1.2研究動機與目的	1
1.3研究限制	2
第二章 文獻探討	3
2.1基本分析	3
2.2技術分析	3
  2.2.1相對強弱指標(Relative Strength Index,RSI)	3
  2.2.2隨機指標(Stochastic Oscillator,KD)	4
2.3深度學習	4
2.2.1循環神經網路(Recurrent Neural Networks,RNN)	5
2.2.2長短期記憶(Long Short-Term Memory,LSTM)	5
第三章 研究架構與交易策略	7
3.1研究架構	7
3.2評估方式及定義	8
3.3技術指標選擇	9
3.4技術指標交易策略	9
3.4.1 RSI技術交易策略	9
3.4.2 KD技術交易策略	10
3.5 LSTM模型與模型交易策略	12
3.5.1 模型資料之輸入與輸出	12
3.5.2 模型建立	12
3.5.3 模型交易策略	13
第四章 技術指標策略之模擬與分析	14
4.1大盤交易策略分析	14
4.1.1大盤交易策略比較	14
4.1.2大盤與個股	15
4.2各產業交易策略分析	15
4.2.1各產業與大盤	16
4.2.2各產業間	17
4.3個股交易策略分析	18
4.3.1個股不同資本額比較	18
4.3.2個股間比較	18
4.4近期各產業交易策略分析	20
第五章 長短期記憶模型之模擬與分析	21
5.1模型參數之準確率比較	21
5.2 LSTM模型交易策略之參數調整	21
5.3與技術指標交易策略進行比較	23
第六章 結論與建議	24
參考文獻	26
附錄	28
 
圖目錄
圖2-1循環神經網路展開示意圖	5
圖2-2長短期記憶模型內部結構示意圖	6
圖3-1研究流程架構圖	7
圖3-2模型架構圖	12
 

表目錄
表3-1 模型建構參數表	12
表4-1 大盤指數分析表	14
表4-2 大盤指數與個股分析表	15
表4-3 各產業與大盤分析表一	16
表4-4 各產業與大盤分析表二	16
表4-5 各產業間分析表一	17
表4-6 各產業間分析表二	17
表4-7 個股不同資本額分析表	18
表4-8 個股間比較分析表一	18
表4-9 個股間比較分析表二	19
表4-10 近期各產業間分析表一	20
表4-11 近期各產業間分析表二	20
表5-1 模型準確率比較表	21
表5-2 策略參數d分析表	22
表5-3 策略參數q分析表	22
表5-4 策略報酬率比較表	23
參考文獻
英文文獻
[1] Nguyen Lu Dang Khoa, Kazutoshi Sakakibara and Ikuko Nishikawa, Stock Price Forecasting using Back Propagation Neural Networks with Time and Profit Based Adjusted Weight Factors, page 5, 2006.
[2] Stefan Angrick1 & Naoko Nemoto1, Central banking below zero: the implementation of negative interest rates in Europe and Japan, pages 4-23, 2017.
[3] Luca Di Persio and Oleksandr Honchar, Recurrent neural networks approach to the financial forecast of Google assets, pages 10-12, 2017.
[4] G.E. Hinton and R.R. Salakhutdinov. Reducing the dimensionality of data with neural networks.Science, 313(5786):504–507, 2006.
[5] J. Welles Wilder Jr., New Concepts In The Technical Trading Systems, pages 63-70, 1978.
[6] Yann LeCun,Yoshua Bengio & Geoffrey Hinton. Deep Learning. Neural 521, pages 436–442, 2015.
[7] S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
中文文獻
[8] 杜金龍「最新技術指標在台灣股市應用的訣竅增訂三版」,財訊出版社,2006,頁78。
[9] 杜金龍「基本分析在台灣股市應用的訣竅增訂版」,財信出版,2010,頁11。
[10] 廖怡晴「技術指標之實證研究-以台指五十成分股為例」,淡江大學國際貿易學系國際企業學碩士在職專班學位論文,2006,頁62-64。
[11] 程定國「短中期技術面整合之研究」,國立臺灣大學管理學院碩士在職專班財務金融組碩士論文,2009,頁47-49。
[12] 陳耀華「加權指數之買賣策略之研究」,淡江大學資訊管理學系碩士班學位論文,2020,頁31。
[13] 鄭宇喬「常用技術指標之實證分析—以台灣股票市場為例」,國立虎尾科技大學經營管理研究所碩士論文,2015,頁32。
[14] 鐘仁甫「技術分析簡單法則於台灣電子個股之應用」,東海大學企業管理學系碩士班碩士論文,2001,頁42。
[15] 周照偉,鄭榮祿,蔡賢亮,楊崇宏,牟聖遠,「臺灣股市技術分析實證:以隨機指標、相對強弱指標、指數平滑異同平均線指標及趨向指標為例」,高雄應用科技大學人文與社會科學學刊1卷2期,2015,頁131。
[16] 李愷莉,「與時變動之系統風險探討-以轉換迴歸模型為例」,Journal of Innovation and Management Vol.9 No.1 (2012) pp.55-88.
[17] 倪衍森,廖怡晴,黃寶玉,「技術指標之實證研究:以台灣50成分股為例」,中華管理評論國際學報,第19卷,第1期,頁1-29。
[18] 黃彤緹,「台灣股票技術分析投資績效實證研究:以KD指標、MACD指標、BBands指標為例」,淡江大學國際企業學系碩士在職專班碩士論文,2019,頁1-76。
論文全文使用權限
校內
校內紙本論文立即公開
同意電子論文全文授權校園內公開
校內電子論文立即公開
校外
同意授權
校外電子論文立即公開

如有問題,歡迎洽詢!
圖書館數位資訊組 (02)2621-5656 轉 2487 或 來信