Artificial Counselor System for Stock Investment.

Hadi NekoeiQachkanloo, Benyamin Ghojogh, Ali Saheb Pasand, Mark Crowley

TL;DR

This paper introduces an "artificial counselor" for stock investment that goes beyond mere price prediction. It uses Support Vector Regression to forecast future stock prices and then leverages two distinct methods – Markowitz portfolio theory and a novel Fuzzy Investment Counselor (FIC) – to recommend optimal budget allocations across stocks, considering investor risk tolerance. The system demonstrates effectiveness on NYSE data, offering a more comprehensive approach to automated trading.

What Problem Does This Paper Address?

The core challenge addressed is how to optimally divide an investment budget among various stocks to maximize expected profit while managing risk. Traditional approaches often focus on either predicting stock prices or suggesting portfolio allocations, but rarely combine these into a cohesive, intelligent system. Investors face the complex task of balancing technical indicators, fundamental company health, and their personal risk appetite. This paper aims to build an automated system that acts as a sophisticated financial advisor, guiding these decisions.

Methods

The proposed system has a two-stage approach:

  1. Price Prediction: Support Vector Regression (SVR) is employed to forecast future stock prices. This involves preprocessing time-series data (opening, closing, high, low prices, volume) using moving averages and Z-score normalization. Crucially, two technical indicators, Average Directional Index (ADX) and Parabolic Stop and Reverse (SAR), are calculated and incorporated into the prediction model. The highest price is specifically targeted for prediction due to its perceived impact on investment decisions.
  2. Weight Suggestion: Two methods are used to recommend investment weights:
  3. Markowitz Portfolio Theory: This is a classic optimization-based approach that aims to maximize expected return for a given level of risk (variance). It uses predicted prices and historical covariance to construct an efficient frontier of optimal portfolios.
  4. Fuzzy Investment Counselor (FIC): This is the paper's novel contribution. It's a two-part fuzzy logic system:
  5. Technical Part: This further breaks down into a "self-stock" system (evaluating each stock individually based on its expected return, risk, and investor's risk tolerance) and a "pairwise-stocks" system (evaluating the relationship between pairs of stocks, considering their correlation and mutual risk).
  6. Fundamental Part: This incorporates fundamental company features (like account receivable, gross margin, etc.) using predefined coefficients that reflect their impact on expected returns. The FIC combines technical and fundamental insights, aiming to mimic an expert investor's decision-making process.

Datasets

The paper utilizes the New York Stock Exchange (NYSE) dataset. This dataset contains information for 140 stocks from 2010 to 2016, including:

  • Prices: Opening, closing, lowest, highest prices, and trading volume.
  • Fundamental Attributes: Numeric metrics such as account receivable, capital expenditure, inventory, gross margin, and income tax.

For evaluation, 25 well-known stocks were selected. The data was split into an 80% training set (2010-2014) and a 20% test set (2015-2016). Fundamental features from 2013-2015 were used as inputs to the FIC.

Key Insights and Ideas

  • Beyond Prediction: A Holistic Counselor: The most significant insight is the shift from simply predicting prices to providing actionable investment advice. The system acts as a counselor, integrating prediction with allocation strategies.
  • Fuzzy Logic for Nuanced Decisions: The Fuzzy Investment Counselor (FIC) is a key innovation. It allows for the incorporation of both technical and fundamental factors, as well as subjective elements like investor risk tolerance, in a structured, rule-based manner that can mimic expert intuition.
  • Technical + Fundamental Synergy: The FIC's ability to combine technical analysis (price trends, volatility) with fundamental analysis (company health metrics) offers a more robust approach than relying on either alone.
  • Risk Tolerance as a First-Class Citizen: The system explicitly models and uses investor risk tolerance (η) to tailor recommendations, which is crucial for practical investment advice.
  • Comparative Performance: The paper demonstrates that their combined approach can outperform simpler methods like random investment and even specialized trend prediction models in terms of budget growth.

Key Results

  • Price Prediction Accuracy: The SVR model achieved good performance, with relatively small Mean Absolute Error (MAE), Root Mean Square Error (RMSE), and Mean Absolute Percentage Error (MAPE) on the test set. Hit Rates (HR) for predicting price trends were also reported as fairly high.
  • Weight Suggestion Effectiveness: In a 30-day simulation with an initial budget of $1000 and a 30% risk tolerance, the proposed methods (Markowitz and FIC) significantly outperformed random investment. The Markowitz portfolio theory resulted in a slightly higher final budget ($1078.88) compared to the FIC ($1072.26), but both were substantially better than random ($1059.98).
  • FIC's Modeling Capability: The FIC's performance being close to Markowitz theory suggests it effectively models optimized portfolio behavior while incorporating additional factors.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that the FIC's performance is closely aligned with Markowitz theory, suggesting that further work might be needed to fully differentiate its unique advantages beyond technical and fundamental features.
  • The dataset used for fundamental features was limited to specific metrics and years.
  • The prediction of only the "highest price" might be a simplification.
  • Future Work:
    • Incorporate more advanced financial concepts like short selling and Elliott waves.
  • Integrate additional data sources, such as news sentiment or social media impact, to further enhance the "expert broker" like capabilities of the FIC.
  • Explore other machine learning techniques for price prediction and fuzzy logic models for the counselor.

Summary updated

Abstract

This paper proposes a novel trading system which plays the role of an artificial counselor for stock investment. In this paper, the stock future prices (technical features) are predicted using Support Vector Regression. Thereafter, the predicted prices are used to recommend which portions of the budget an investor should invest in different existing stocks to have an optimum expected profit considering their level of risk tolerance. Two different methods are used for suggesting best portions, which are Markowitz portfolio theory and fuzzy investment counselor. The first approach is an optimization-based method which considers merely technical features, while the second approach is based on Fuzzy Logic taking into account both technical and fundamental features of the stock market. The experimental results on New York Stock Exchange (NYSE) show the effectiveness of the proposed system.
BibTeX
@inproceedings{nekoeiqachkanloo2019artificial,
  author = {Hadi NekoeiQachkanloo and Benyamin Ghojogh and Ali Saheb Pasand and Mark Crowley},
  title = {{Artificial Counselor System for Stock Investment.}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33019558},
}
Figure