EconPapers    
Economics at your fingertips  
 

Transformer-based forecasting for intraday trading in the Shanghai crude oil market: Analyzing open-high-low-close prices

Wenyang Huang, Tianxiao Gao, Yun Hao and Xiuqing Wang

Energy Economics, 2023, vol. 127, issue PA

Abstract: The Shanghai crude oil futures market exudes distinct speculative attributes, underscoring the pivotal significance of precise price forecasts. Accurate forecasting of Shanghai crude oil futures prices assumes vital importance for investors to optimize their portfolios profitably, for producers to mitigate production risks in the crude oil spot market, and for providing cogent decision-making support to government entities. This study implements a groundbreaking unbiased structural forecasting for Shanghai crude oil futures' open-high-low-close (OHLC) prices leveraging the Transformer framework coupled with the model-driven and penalty term-based loss function designs. Based on OHLC forecasts, this study devises three intraday trading strategies. Notably, our results evince that the forecasting accuracy of the Transformer outperforms the Naïve method, vector autoregression (VAR) and vector error correction model (VECM), multiple linear regression (MLR), support vector regression (SVR), and long short-term memory (LSTM) neural network when applied to different temporal granularities of Shanghai crude oil futures OHLC data. Furthermore, the three proposed intraday trading strategies exhibit higher annualized return rates and Sharpe ratios, alongside lower maximum drawdowns and standard deviations of returns in comparison to the conventional close-to-close strategy relying solely on the close price. Remarkably, the forecasting process and intraday trading strategies explicated in this study can equally apply to other futures products in the energy sector, including electricity, coal, and natural gas.

Keywords: Shang crude oil futures; OHLC data; Transformer; Trading strategies; Structural forecasting (search for similar items in EconPapers)
Date: 2023
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (6)

Downloads: (external link)
http://www.sciencedirect.com/science/article/pii/S0140988323006047
Full text for ScienceDirect subscribers only

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:eee:eneeco:v:127:y:2023:i:pa:s0140988323006047

DOI: 10.1016/j.eneco.2023.107106

Access Statistics for this article

Energy Economics is currently edited by R. S. J. Tol, Beng Ang, Lance Bachmeier, Perry Sadorsky, Ugur Soytas and J. P. Weyant

More articles in Energy Economics from Elsevier
Bibliographic data for series maintained by Catherine Liu (repec@elsevier.com).

 
Page updated 2025-03-19
Handle: RePEc:eee:eneeco:v:127:y:2023:i:pa:s0140988323006047