{'fraction_non_alphanumeric': 0.017400761283306143, 'fraction_numerical': 0.001087547580206634, 'mean_word_length': 5.237288135593221, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Machine Trading by Time Series Models and Portfolio Optimization

Machine learning algorithms such as Support Vector Machine (SVM) and Artificial Neural Network (ANN) are used for machine trading. The problem with SVM and ANN is that it is difficult to determine appropriated features for both models; moreover, it is also time consuming to perform backpropagation for ANN when a number of both features and data increase. However, machine trading is not confined only these two algorithms, but also time series models. In this study, we will employ time series models namely Autoregressive Integrated Moving Average (ARIMA) and Holt – Winters’ Exponential Smoothing (HW) as the guidance for trading since time series models only require time series as an input. We will perform time series analysis to snatch the trading opportunity in the Stock Exchange of Thailand (SET). There are fifty companies on the list of SET50 index; we will choose five amongst them to invest measured by Sharpe Ratio; the top five from this measurement will be selected as invested assets in simulated portfolio. Furthermore, the well-known portfolio optimization framework by Harry Markowitz will be used to ensure that the combination of the invested assets is located on the efficient frontier; the result from this study is favorable as the return generated by these activities outperforms market return; furthermore, manipulating time series into different time lags yields higher return and as well as combining both ARIMA and HW models to help predict stock prices also improves power of prediction of time series models. This study will help retail investor who has limited resource overthrow bias and intuition throughout investment decision process ranging from finding the stocks for investment to capturing market movement for trading opportunity.