Application of the XGBoost algorithm and Bayesian optimization for the Bitcoin price prediction during the COVID-19 period
Jakub Drahokoupil
No 4.006, FFA Working Papers from Prague University of Economics and Business
Abstract:
Aim of this paper is to use Machine Learning algorithm called XGBoost developed by Tianqi Chen and Carlos Guestrin in 2016 to predict future development of the Bitcoin (BTC) price and build an algorithmic trading strategy based on the predictions from the model. For the final algorithmic strategy, six XGBoost models are estimated in total, estimating following n-th day BTC Close predictions: 1,2,5,10,20,30. Bayesian optimization techniques are used twice during the development of the trading strategy. First, when appropriate hyperparameters of the XGBoost model are selected. Second, for the optimization of each model prediction weight, in order to obtain the most profitable trading strategy. The paper shows, that even though the XGBoost model has several limitations, it can fairly accurately predict future development of the BTC price, even for further predictions. The paper aims specifically for the potential of algorithmic trading during the COVID-19 period, where BTC cryptocurrency suffered extremely volatile period, reaching its new all-time highest prices as well as 50% losses during few consecutive months. The applied trading strategy shows promising results, as it beats the B&H strategy both from the perspective of total profit, Sharpe ratio or Sortino ratio.
Keywords: XGBoost; Bayesian Optimization; Bitcoin; Algorithmic trading (search for similar items in EconPapers)
JEL-codes: C11 C39 C61 G11 (search for similar items in EconPapers)
Pages: 35 pages
Date: 2022-03-24, Revised 2022-05-09
New Economics Papers: this item is included in nep-big, nep-cmp and nep-pay
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (3)
Downloads: (external link)
http://wp.ffu.vse.cz/artkey/wps-202201-0006_applic ... -during-the-covi.php (text/html)
http://wp.ffu.vse.cz/pdfs/wps/2022/01/06.pdf (application/pdf)
free of charge
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:prg:jnlwps:v:4:y:2022:id:4.006
Ordering information: This working paper can be ordered from
Faculty of Finance and Accounting, University of Economics, Prague, nám. W. Churchilla 4, 130 67 Prague 3, Czech Republic
http://wp.ffu.vse.cz
Access Statistics for this paper
More papers in FFA Working Papers from Prague University of Economics and Business Contact information at EDIRC.
Bibliographic data for series maintained by Stanislav Vojir ().