Strategy Modeling and Classifier Training for Share Trading

Yain-Whar Si, Weng-Lon Lei, Chi-Chong ChiuFGIT-DTA/BSBT 2010

TL;DR

This paper proposes a novel data mining approach to resolve conflicting trading signals generated by multiple technical analysis strategies. By simulating these strategies on historical data and using the outcomes to train classifiers, the system can provide unified buy/sell recommendations, effectively eliminating strategy conflicts and potentially improving trading decisions.

What Problem Does This Paper Address?

Technical analysis is a popular method for making trading decisions, often relying on predefined trading strategies. However, when multiple strategies are applied to a single stock, they can produce conflicting buy/sell signals. This ambiguity forces traders to make difficult choices, where a wrong decision can lead to significant financial losses. Existing systems often lack the flexibility to handle these conflicts effectively. This paper aims to address this by developing a unified approach that integrates the outcomes of various user-defined strategies to generate a single, coherent trading recommendation.

Methods

The core of the proposed method involves a two-stage process:

  1. Strategy Simulation and Outcome Extraction:
    • Users define complex trading strategies by combining technical indicators and trading signals. These strategies consist of "Signal Appear Conditions" (SAC) and "Signal Termination Conditions" (STC).
  2. The system simulates these user-defined strategies on historical stock price data.
  3. During the simulation, the system extracts the "states" (e.g., "Appear," "Ongoing," "Terminated," "Nil") of each strategy over specific time periods. These states represent the outcomes of applying each strategy.
  4. Classifier Training and Recommendation:
    • The extracted strategy outcomes, along with changes in stock price (CSP), are used as input features to train classification models.
  5. The target output for the classifier is a recommended action: "Buy," "Sell," or "Nil."
    • The system uses a data mining approach, specifically training classifiers using algorithms like J48, Multi-layer Perceptron, and Naïve Bayes.
  6. The final recommendation is determined by comparing the overall return from the simulated trading period against user-defined Buy Action Threshold (BAT) and Sell Action Threshold (SAT) values.

Datasets

The paper uses historical price data from the Hong Kong Stock Market for evaluation. Specifically, they tested their approach on three stocks:

  • 00001.HK: CHEUNG KONG
  • 00005.HK: HSBC Holdings
  • 00941.HK: China Mobile

For training, data from January 1, 2005, to February 28, 2009, was used. For testing, data from March 1, 2009, to May 31, 2010, was utilized.

Key Insights and Ideas

  • Unified Decision Making: The primary insight is that by treating the outcomes of multiple strategies as features for a classifier, the system can learn to reconcile conflicting signals and provide a single, actionable recommendation. This moves beyond simply aggregating signals to a more sophisticated decision-making process.
  • Flexibility in Strategy Definition: The framework allows users to define complex, incremental strategies, offering a level of customization not typically found in standard trading systems.
  • Tunable Risk/Reward Profile: The use of BAT and SAT thresholds allows traders to fine-tune the system's risk-taking behavior. Higher thresholds lead to fewer trades and potentially less risk, while lower thresholds can result in more frequent, potentially riskier, trading.
  • Data-Driven Recommendations: The approach leverages historical data to train models, allowing the system to adapt to market dynamics and the specific characteristics of different stocks.

Key Results

The experiments demonstrated promising results, with the performance of the algorithms varying across different stocks.

  • For stock 00001.HK, the J48 algorithm achieved the highest return (77.64%) with BAT 2% and SAT -2%.
  • For stock 00005.HK, Naïve Bayes yielded the best result (24.79%) with BAT 2% and SAT -2%.
  • For stock 00941.HK, Naïve Bayes also performed best (30.15%) with BAT 2% and SAT -2%.

The results also indicated that the choice of BAT and SAT values significantly impacts trading frequency and profitability. Larger BAT/SAT values led to reduced trading frequencies, while smaller values could result in more risk-taking behavior.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that the performance of the recommendation system depends on the chosen BAT and SAT values.
  • The performance of different classification algorithms varies from stock to stock, suggesting that a one-size-fits-all approach might not be optimal.
  • The current approach primarily relies on technical indicators and trading signals.
  • Future Work:
    • The authors are currently testing other data mining techniques for stock trading recommendations.
  • They plan to improve performance by including additional market-related attributes (e.g., fundamental data, news sentiment) for training classifiers.
  • Further exploration of the impact of BAT and SAT values on trading strategies is also suggested.

Summary updated

BibTeX
@inproceedings{si2010strategy,
  author = {Yain-Whar Si and Weng-Lon Lei and Chi-Chong Chiu},
  title = {{Strategy Modeling and Classifier Training for Share Trading}},
  booktitle = {FGIT-DTA/BSBT},
  year = {2010},
  doi = {10.1007/978-3-642-17622-7\_7},
}
Figure