Abstract
This master’s thesis examines the evaluation and backtesting of machine learning models in algorithmic trading strategies. The central question is how classical supervised
learning models can be integrated into rule-based trading strategies and which method
ological requirements must be fulfilled in order to assess their contribution in a realistic
and robust manner.
The thesis is based on historical OHLCV data of the cryptocurrency pairs
BTC/USDT, ETH/USDT, and XRP/USDT at a 5-minute interval. From these data,
technical indicators and additional features are derived, which are used both for the
rule-based trading strategies and for training the machine learning models. The model
types examined include Logistic Regression, Random Forest, and XGBoost. To ensure
temporally consistent validation, a walk-forward approach with rolling model training is
applied, preventing future information from entering the training process. In addition,
the backtesting frameworks Backtrader, Backtesting.py, and vectorbt are compared with
regard to implementation effort, execution speed, simulation realism, analysis capabili
ties, and the integration of machine learning models.
The evaluation shows that XGBoost achieves the most consistent predictive perfor
mance across the different forms of integration and is therefore selected as the model
type for the subsequent strategy comparison. The comparison of backtesting frameworks
shows that Backtrader is particularly well suited for the integration of machine learning
models due to its event-driven and state-dependent architecture, while vectorbt offers
advantages for extensive comparisons of strategy variants. However, the backtesting
results demonstrate that machine learning cannot automatically transform a funda
mentally weak base strategy into a profitable trading strategy. Although the extent of
losses could be reduced through the integration of machine learning in the examined
cases, the trading strategies remained unprofitable overall. However, it was also shown
that, in two of the three forms of integration, the reduction in losses was not solely
attributable to a general reduction in trading activity, but that the machine learning
models were able to generate measurable added value within the trading strategies.
The results show that machine learning models can filter, confirm, or weight existing
trading signals, while their economic value strongly depends on the specific application
context. Key factors include the quality of the underlying base strategy, the specific
form of integration, temporally correct model validation, and a realistic backtesting
environment.
| Date of Award | 2026 |
|---|---|
| Original language | German (Austria) |
| Awarding Institution |
|
| Supervisor | Philipp Fleck (Supervisor) |
Studyprogram
- Information Engineering and -Management
Cite this
- Standard