Abstract

The new concept of forecasting market movements is introduced to fill the gap in stock price forecasting that uses a fixed time window. The candlestick data are grouped into waves before being input into the Transformer model to capture many different chart patterns and provide longer price movement patterns for better feature extraction. This work is divided into two main parts. The first part is wave extraction, for which we propose a new algorithm for grouping candlestick data into waves. The second part deals with Transformer modeling. The result of this work has shown that the Transformer model trained using wave series can help traders reduce their losses and choose a suitable trading strategy based on the prediction results. The model trading result of the test set has earned about 19.8% (using fixed 1 contract size per order) which is better than using MACD signal which can give earning of 12.5%.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.