Search
Search Results
Found one item.
1 - 1 of 1 items
The article presents a hybrid method for predicting the direction of bond price movements, combining the XGBoost machine learning method with hyperparameter optimization using a genetic algorithm. The research is aimed at solving the problem of binary classification of the direction of the price of the Russian Railways bond on the next trading day. The research methodology includes the formation of an expanded feature space of 18 technical indicators calculated on the basis of daily OHLCV data. To configure XGBoost hyperparameters, a genetic algorithm is implemented using the DEAP library. The study was conducted on three time horizons: 01.01.21-31.10.25, 01.01.23-31.10.25, from 01.01.24-31.10.25.
As a result, a significant dependence of the effectiveness of the model on the time horizon of the training data is shown. The best quality was demonstrated by a model trained on data from 2024-2025, with an accuracy of 64.4% in the test sample, balanced precision and recall metrics, as well as high F1-score scores for both classes. Models trained over longer periods (2021-2025 and 2023-2025) showed a decrease in generalizing ability, which indicates that the relevance of the data prevails over its volume in the context of changes in Russia's monetary policy in 2021-2025. To maintain the predictive power of the model in changing market conditions, it is recommended to use a sliding learning window of 1.5–2 years. The comparison with the "Buy & Hold" strategy confirmed the effectiveness of the proposed hybrid approach