English

Mean Absolute Directional Loss as a New Loss Function for Machine Learning Problems in Algorithmic Investment Strategies

Computational Finance 2023-09-20 v1 Artificial Intelligence Machine Learning General Finance Portfolio Management

Abstract

This paper investigates the issue of an adequate loss function in the optimization of machine learning models used in the forecasting of financial time series for the purpose of algorithmic investment strategies (AIS) construction. We propose the Mean Absolute Directional Loss (MADL) function, solving important problems of classical forecast error functions in extracting information from forecasts to create efficient buy/sell signals in algorithmic investment strategies. Finally, based on the data from two different asset classes (cryptocurrencies: Bitcoin and commodities: Crude Oil), we show that the new loss function enables us to select better hyperparameters for the LSTM model and obtain more efficient investment strategies, with regard to risk-adjusted return metrics on the out-of-sample data.

Keywords

Cite

@article{arxiv.2309.10546,
  title  = {Mean Absolute Directional Loss as a New Loss Function for Machine Learning Problems in Algorithmic Investment Strategies},
  author = {Jakub Michańków and Paweł Sakowski and Robert Ślepaczuk},
  journal= {arXiv preprint arXiv:2309.10546},
  year   = {2023}
}

Comments

12 pages, 6 figures

R2 v1 2026-06-28T12:26:00.428Z