Exploring the Impact of Magnitude- and Direction-based Loss Function on the Profitability using Predicted Prices from Deep Learning

Authors

  • Chihcheng Hsu Associate Professor, Department of Information Management, National Central University, TAIWAN
  • Lichen Tai Master, Department of Information Management, National Central University, TAIWAN

DOI:

https://doi.org/10.31033/ijemr.10.1.19

Keywords:

Deep Learning, Price Prediction, Program Trading, Time Sequence, LSTM, TCN

Abstract

Researches on predicting prices (as time series) from deep learning models usually use a magnitude-based error measurement (such as ).  However, in trading, the error in the predicted direction could affect trading results much more than the magnitude error.  Few works consider the impact of ill-predicted trading direction as part of the error measurement.

In this work, we first find parameter sets of LSTM and TCN models with low magnitude-based error measurement, and then calculate the profitability using program trading. Relationships between profitability and error measurements are analyzed. 

We also propose a new loss function considering both directional and magnitude error for previous models for re-evaluation. Three commodities are tested: gold, soybean, and crude oil (from GLOBEX). Our findings are: with given parameter sets, if merchandise (gold and soybean) is of low averaged magnitude error, then its profitability is more stable. The proposed loss function can further improve profitability.  If it is of larger magnitude error (crude oil), then its profitability is unstable, and the proposed loss function cannot improve nor stabilize the profitability. 

Furthermore, the relationship between profitability and error measurement for models of LSTM and TCN with or without customized loss function is not, as commonly believed, highly positively correlated (i.e., the more precise the predicted value, the more trading profit) since the correlation coefficients are rarely higher than 0.5 in all our experiments. However, the customized loss functions perform better in TCN than in LSTM.

Downloads

Download data is not yet available.

Downloads

Published

2020-02-29

How to Cite

Chihcheng Hsu, & Lichen Tai. (2020). Exploring the Impact of Magnitude- and Direction-based Loss Function on the Profitability using Predicted Prices from Deep Learning. International Journal of Engineering and Management Research, 10(1), 116–125. https://doi.org/10.31033/ijemr.10.1.19