以機器學習方法預測台灣加權股價指數月平均-應用於台指期交易策略
Futures Trading Strategy based on Monthly Average Prediction of TAIEX by using Machine Learning Methods
摘要
台指期貨(TAIEX) 自1998年起已經推出了超過20年,是目前最常被投資人操作的期貨之一。期貨因具有高槓桿的特點,投資者因此可以用少量的資金進行投資。如果投資者有良好的交易策略,便可以獲得高報酬。
在本篇論文中,我們提出了使用機器學習預測模型來預測台灣加權指數。我們使用各國指數,貨幣和能源作為可能會對台灣加權指數有所影響的因素。透過相關性分析找出影響指數較高的特徵,使用這些挑出來的特徵建立預測模型來預測不同月份後的台灣加權指數月均價。此外,我們使用網格搜索來找出適合不同月份的回溯長度和批量大小來訓練模型。
最後,我們提出一年期的交易策略,並使用小台指期貨進行一年的模擬交易。實驗結果表明,所有的預測模型均選擇了最佳的期貨合約。我們還提出了一個停損策略,此策略可以讓一整年下來的投資可以獲利,讓交易策略更加穩定可靠。
在本篇論文中,我們提出了使用機器學習預測模型來預測台灣加權指數。我們使用各國指數,貨幣和能源作為可能會對台灣加權指數有所影響的因素。透過相關性分析找出影響指數較高的特徵,使用這些挑出來的特徵建立預測模型來預測不同月份後的台灣加權指數月均價。此外,我們使用網格搜索來找出適合不同月份的回溯長度和批量大小來訓練模型。
最後,我們提出一年期的交易策略,並使用小台指期貨進行一年的模擬交易。實驗結果表明,所有的預測模型均選擇了最佳的期貨合約。我們還提出了一個停損策略,此策略可以讓一整年下來的投資可以獲利,讓交易策略更加穩定可靠。
Taiwan Stock Exchange Capitalization Weighted Stock Index Futures (TAIEX) has been running for more than 20 years since 1998. Futures trading has the characteristic of high leverage, which means that investors can invest with a small amount of money, and with a good trading strategy, they can gain high returns.
In this paper, we proposed some forecasting models to predict TAIEX using machine learning models. Major world indices, currencies, and energy resource units are used as possible factors that may influence the TAIEX. Through correlation analysis, selected factors are used to build models to forecast the monthly average price of the TAIEX after different months. Suitable lookback length and batch size for different month is found by a grid search to train the models.
Finally, a one-year trading strategy is proposed and a trading simulation is conducted using Mini-TAIEX futures. The experiment results showed that all the models select the best futures contract and with a suitable stop-loss strategy, all models can generate positive cumulative returns throughout the year.
In this paper, we proposed some forecasting models to predict TAIEX using machine learning models. Major world indices, currencies, and energy resource units are used as possible factors that may influence the TAIEX. Through correlation analysis, selected factors are used to build models to forecast the monthly average price of the TAIEX after different months. Suitable lookback length and batch size for different month is found by a grid search to train the models.
Finally, a one-year trading strategy is proposed and a trading simulation is conducted using Mini-TAIEX futures. The experiment results showed that all the models select the best futures contract and with a suitable stop-loss strategy, all models can generate positive cumulative returns throughout the year.