Enhancing long-term forex market forecasting using transformer-based time series models: A comparative analysis with ensemble tree methods

preprint OA: closed
Full text JSON View at publisher
Full text 29,074 characters · extracted from preprint-html · click to expand
Enhancing long-term forex market forecasting using transformer-based time series models: A comparative analysis with ensemble tree methods | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Research Article Enhancing long-term forex market forecasting using transformer-based time series models: A comparative analysis with ensemble tree methods Bich-Ngoc. Mach, Hoa-Cuc. Nguyen, Thanh Q. Nguyen This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-7733769/v1 This work is licensed under a CC BY 4.0 License Status: Posted Version 1 posted You are reading this latest preprint version Abstract Accurate long-term forecasting in the foreign exchange (Forex) market remains a challenging task due to the inherent volatility, nonlinearity, and periodic trends of currency data. This study proposes a novel forecasting framework that integrates state-of-the-art Transformer-based time series models—Informer, Autoformer, FEDformer, and PatchTST—to capture complex temporal patterns and improve predictive performance. Utilizing enriched historical data from Yahoo Finance with engineered technical indicators (RSI, ATR, SMA, slope features), we benchmark these models against classical ensemble learning approaches including random forest, gradient boosting machines (GBM), and XGBoost. Experimental evaluations demonstrate that Transformer models, particularly FEDformer and PatchTST, outperform ensemble baselines in multi-step forecasting horizons, reducing MAPE and RMSE by significant margins. Furthermore, attention-based mechanisms enhance model interpretability while offering superior generalization to volatility shifts. This study highlights the potential of deep Transformer architectures in advancing financial time series forecasting, offering robust decision-making tools for traders and market analysts. Transformer-based forecasting Forex market Informer Autoformer FEDformer PatchTST time series prediction ensemble learning long-term trends attention mechanisms Full Text Additional Declarations No competing interests reported. Supplementary Files floatimage1.png Cite Share Download PDF Status: Posted Version 1 posted You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-7733769","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":534237401,"identity":"3a35304f-2ecd-4da5-a53c-31f66e97de4b","order_by":0,"name":"Bich-Ngoc. Mach","email":"","orcid":"","institution":"Thu Dau Mot University","correspondingAuthor":false,"prefix":"","firstName":"Bich-Ngoc.","middleName":"","lastName":"Mach","suffix":""},{"id":534237403,"identity":"507053a6-2d43-4eb7-aa38-891ec55fb65f","order_by":1,"name":"Hoa-Cuc. Nguyen","email":"","orcid":"","institution":"Thu Dau Mot University","correspondingAuthor":false,"prefix":"","firstName":"Hoa-Cuc.","middleName":"","lastName":"Nguyen","suffix":""},{"id":534237404,"identity":"6f4a2318-6923-4734-89e7-93d5d32fd4c3","order_by":2,"name":"Thanh Q. Nguyen","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAxElEQVRIiWNgGAWjYHACNiA+IIdgEwbMYC3GDGzMJGpJbCBaizl7/rEHP3fcSd8u33+A4UPZYQaD2w34tVj2PGY37D3zLHdnGzMD44xzQC13DuDXYnAjmU2Ct+1w7oZjzAzMQAaD5IwEwlok/7YdTjcAaflLrBZpoOEJYC2MQC38EoS0nHlsJi3bdthww7Fkg4M959J5CGs5nvhM8m3bYXmDwwcfPvhRZi3HRkgLAwOSggNAzENIPaqWUTAKRsEoGAVYAQBNw0Myx4RK/QAAAABJRU5ErkJggg==","orcid":"","institution":"Nguyen Tat Thanh University","correspondingAuthor":true,"prefix":"","firstName":"Thanh","middleName":"Q.","lastName":"Nguyen","suffix":""}],"badges":[],"createdAt":"2025-09-28 10:38:27","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-7733769/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-7733769/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":94598704,"identity":"f3248cbd-61bf-437c-b2d0-e160fe8aad0a","added_by":"auto","created_at":"2025-10-28 18:55:50","extension":"docx","order_by":0,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":6828751,"visible":true,"origin":"","legend":"","description":"","filename":"EnhancingLong.docx","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/d9ddd743b6d5698c238b87a5.docx"},{"id":94598806,"identity":"6953510c-6105-48da-a574-545c2427a9bd","added_by":"auto","created_at":"2025-10-28 18:56:19","extension":"json","order_by":1,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":5300,"visible":true,"origin":"","legend":"","description":"","filename":"4086a140d8a9488aa63f194af27c4d89.json","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/7535635b36d5bba7ca2132fd.json"},{"id":94598891,"identity":"201a53f6-7a34-43e8-bc1e-1fcc90fca2a5","added_by":"auto","created_at":"2025-10-28 18:57:45","extension":"xml","order_by":2,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":216339,"visible":true,"origin":"","legend":"","description":"","filename":"4086a140d8a9488aa63f194af27c4d891enriched.xml","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/55eb0e5e0baafe0167964760.xml"},{"id":94598880,"identity":"5a377ddb-eebb-44c6-906a-d1e47e34924e","added_by":"auto","created_at":"2025-10-28 18:57:31","extension":"png","order_by":4,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":525626,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage10.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/74087c57a2a2ad23dd58ca7f.png"},{"id":94598882,"identity":"8784d42d-d324-4ea8-9b1f-637d82b4d493","added_by":"auto","created_at":"2025-10-28 18:57:32","extension":"png","order_by":5,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":303367,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage11.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/0626125dac0c64bfd27eec65.png"},{"id":94598549,"identity":"2cb0ee24-3239-4400-ad18-74f6937f92c3","added_by":"auto","created_at":"2025-10-28 18:54:21","extension":"png","order_by":6,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":208468,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage12.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/08512c84c60c9d415ecc5fb3.png"},{"id":94598606,"identity":"acec83fe-1495-48ad-9163-99f78d24bc73","added_by":"auto","created_at":"2025-10-28 18:54:39","extension":"png","order_by":7,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":113161,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage13.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/7382b15e2480477b0da805c8.png"},{"id":94598414,"identity":"6375cb61-44f5-4d23-a8c5-fe47b5c07e21","added_by":"auto","created_at":"2025-10-28 18:52:55","extension":"png","order_by":8,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":65299,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage14.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/4ec83647b1e222a642b905e4.png"},{"id":94598720,"identity":"4a8e75f3-3153-4dcd-be2b-0985521470e1","added_by":"auto","created_at":"2025-10-28 18:55:56","extension":"png","order_by":9,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":216299,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage15.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/5f6e28db9d03146729e0f655.png"},{"id":94598731,"identity":"eb24bbde-bea1-4e39-a312-be46b1c95832","added_by":"auto","created_at":"2025-10-28 18:56:00","extension":"png","order_by":10,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":253298,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage16.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/b5ac80c091447320771e0ea1.png"},{"id":94598528,"identity":"dd7fa675-5d23-4764-8d7c-9e5c591bea5c","added_by":"auto","created_at":"2025-10-28 18:54:16","extension":"png","order_by":11,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":194282,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage17.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/489ccdd11329272521045f0d.png"},{"id":94598556,"identity":"38cbbba3-d7de-4e31-b9e9-634ebd9623b2","added_by":"auto","created_at":"2025-10-28 18:54:23","extension":"png","order_by":12,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":100769,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage18.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/fc1f7415a58f5de363fb8e9b.png"},{"id":94598651,"identity":"c962f8e7-2477-4f10-a2d7-f1a5bfc3610b","added_by":"auto","created_at":"2025-10-28 18:55:27","extension":"png","order_by":13,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":254724,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage19.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/133c301c61d13851a0237f92.png"},{"id":94598485,"identity":"99a8f94c-ba48-4f42-93ca-9ff0bb1b3b18","added_by":"auto","created_at":"2025-10-28 18:53:42","extension":"png","order_by":14,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":323921,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage2.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/d52b23bbc11bb9ccbfdf54d1.png"},{"id":94598491,"identity":"2d432c91-b83f-4f91-9a25-6c2b5ec3db40","added_by":"auto","created_at":"2025-10-28 18:53:51","extension":"png","order_by":15,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":178058,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage20.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/1bf8d477d56bc99f82e1bffc.png"},{"id":94598890,"identity":"2e27d8d6-ce84-40c6-be06-c6b935491e36","added_by":"auto","created_at":"2025-10-28 18:57:45","extension":"png","order_by":16,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":163531,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage3.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/c7ca756ad6f08f7854cf518e.png"},{"id":94598862,"identity":"8be34106-43da-4952-be60-8f8fd224db58","added_by":"auto","created_at":"2025-10-28 18:57:09","extension":"png","order_by":17,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":307716,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage4.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/621dd96c1fee4df06ff27f10.png"},{"id":94598721,"identity":"c1c8427c-7fcc-4236-a442-2970f07304dc","added_by":"auto","created_at":"2025-10-28 18:55:56","extension":"png","order_by":18,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":420863,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage5.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/e5edfa049d23ece9a3538077.png"},{"id":94598736,"identity":"d9d30386-0fbd-49f1-9f36-0cf868c7ffa2","added_by":"auto","created_at":"2025-10-28 18:56:03","extension":"png","order_by":19,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":249242,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage6.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/c2fc862af13fa50a5a31a73e.png"},{"id":94598892,"identity":"0d1fef4c-85bc-4d37-a108-8dfc31748300","added_by":"auto","created_at":"2025-10-28 18:57:46","extension":"png","order_by":20,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":491136,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage7.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/7766beccdd3ea91591799db8.png"},{"id":94598363,"identity":"d29927e8-31d5-42ef-8869-3030d03dcd0a","added_by":"auto","created_at":"2025-10-28 18:52:33","extension":"png","order_by":21,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":189434,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage8.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/898544877384ab7b608a8c96.png"},{"id":94598887,"identity":"9ebe27b2-1738-4686-8045-8b43844bf845","added_by":"auto","created_at":"2025-10-28 18:57:42","extension":"png","order_by":22,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":866704,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage9.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/a9a83b60cdbef3dc6547ea59.png"},{"id":94598734,"identity":"9bf7178f-1a9d-4f3d-9aee-839ee3566729","added_by":"auto","created_at":"2025-10-28 18:56:03","extension":"png","order_by":23,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":84670,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage1.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/8808aa8752f9bb9af9c116c7.png"},{"id":94598608,"identity":"29bbd9e7-c439-4799-87f5-c44e1869aedd","added_by":"auto","created_at":"2025-10-28 18:54:39","extension":"png","order_by":24,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":64005,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage10.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/0d6fcbf7e81e466fb5222576.png"},{"id":94598658,"identity":"ea346b8a-102c-4779-a88c-3719343baefd","added_by":"auto","created_at":"2025-10-28 18:55:31","extension":"png","order_by":25,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":27724,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage11.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/69209b4469ca1924483eb062.png"},{"id":94598798,"identity":"5fe1b0ac-cdcd-41d9-a63c-054c6fd00b40","added_by":"auto","created_at":"2025-10-28 18:56:18","extension":"png","order_by":26,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":40641,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage12.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/bb8fd8c5d4d0aa3503c63cd2.png"},{"id":94598886,"identity":"19c18cdc-1858-4cb0-a2bb-550a909beb0d","added_by":"auto","created_at":"2025-10-28 18:57:40","extension":"png","order_by":27,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":26042,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage13.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/94fcdc72517b011c5408cb70.png"},{"id":94598534,"identity":"2c1b0a71-7c6a-4456-9967-baa09e08e70c","added_by":"auto","created_at":"2025-10-28 18:54:18","extension":"png","order_by":28,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":11764,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage14.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/5c004a51481e94dd122079a0.png"},{"id":94598540,"identity":"478fa6c5-885c-49c0-a8d9-0c50e0368d52","added_by":"auto","created_at":"2025-10-28 18:54:19","extension":"png","order_by":29,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":44898,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage15.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/f894ff78dbde1fd5f2cff484.png"},{"id":94598875,"identity":"1ce9d81f-29a1-4398-9328-88680c550740","added_by":"auto","created_at":"2025-10-28 18:57:20","extension":"png","order_by":30,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":56445,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage16.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/86f7f845ff5d75fb5c576f54.png"},{"id":94598553,"identity":"51349971-1570-413d-9c9a-71cc54fe093e","added_by":"auto","created_at":"2025-10-28 18:54:22","extension":"png","order_by":31,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":32208,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage17.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/3a9dacfb448891bdad1832a7.png"},{"id":94598722,"identity":"1100f57a-aaf9-457d-baae-979c68b6bd81","added_by":"auto","created_at":"2025-10-28 18:55:57","extension":"png","order_by":32,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":21220,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage18.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/4dcc1137dbdd21ccb44f3335.png"},{"id":94598290,"identity":"803ab180-d9e0-4789-bc33-6e1c0090b2c0","added_by":"auto","created_at":"2025-10-28 18:52:24","extension":"png","order_by":33,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":51231,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage19.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/8bdec4192456a863514a759c.png"},{"id":94598794,"identity":"e3e98406-d436-4d46-ae23-e335014e79be","added_by":"auto","created_at":"2025-10-28 18:56:17","extension":"png","order_by":34,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":22237,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage2.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/67d838cd588bbc4f744e6e69.png"},{"id":94598287,"identity":"c27037e8-d8a3-4b8a-ac3f-9d2e5b1bd7e9","added_by":"auto","created_at":"2025-10-28 18:52:22","extension":"png","order_by":35,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":38230,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage20.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/95c8d8f3fc757a27daa65957.png"},{"id":94598495,"identity":"02295e3d-e80e-4ded-a034-c84e2282097c","added_by":"auto","created_at":"2025-10-28 18:53:56","extension":"png","order_by":36,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":39334,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage3.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/d8d495390afd2a28c2771b3c.png"},{"id":94598881,"identity":"d11eecb4-860a-40e0-8d34-3c1bca667ee5","added_by":"auto","created_at":"2025-10-28 18:57:31","extension":"png","order_by":37,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":63804,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage4.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/9f49fc6dcfd95a37eb29e43c.png"},{"id":94598877,"identity":"f024fd5f-a0a9-4d19-905f-00be03772578","added_by":"auto","created_at":"2025-10-28 18:57:24","extension":"png","order_by":38,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":67596,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage5.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/f76fd0f60c24ad9508e0c017.png"},{"id":94598557,"identity":"91853c29-e086-4532-9d51-e835e8885077","added_by":"auto","created_at":"2025-10-28 18:54:23","extension":"png","order_by":39,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":44395,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage6.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/5ff56bd595ea5799ec5e388d.png"},{"id":94598654,"identity":"ed08b2db-2926-454c-b94f-4dd9d04df8e4","added_by":"auto","created_at":"2025-10-28 18:55:29","extension":"png","order_by":40,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":20049,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage7.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/aa5bbc87ab63b0abf62b0484.png"},{"id":94598497,"identity":"202877d2-8de2-421b-a323-a03d2aaed5cb","added_by":"auto","created_at":"2025-10-28 18:53:57","extension":"png","order_by":41,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":40157,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage8.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/8b320c8660f49c5d07af2808.png"},{"id":94598550,"identity":"d924f77e-0e40-4338-bc48-40490140bda1","added_by":"auto","created_at":"2025-10-28 18:54:21","extension":"png","order_by":42,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":41806,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage9.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/aa964defdec39e9fd54539f3.png"},{"id":94598889,"identity":"8d81b560-da25-45e9-8aa7-5f46f7981d9d","added_by":"auto","created_at":"2025-10-28 18:57:44","extension":"xml","order_by":43,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":215491,"visible":true,"origin":"","legend":"","description":"","filename":"4086a140d8a9488aa63f194af27c4d891structuring.xml","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/efb4647c540d5385448a249e.xml"},{"id":94598867,"identity":"3e0040ad-0a65-4db8-8061-a49225dae94d","added_by":"auto","created_at":"2025-10-28 18:57:11","extension":"html","order_by":44,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":233666,"visible":true,"origin":"","legend":"","description":"","filename":"earlyproof.html","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/7d2dc6824f1b732b67bdaaba.html"},{"id":98731799,"identity":"8a30f05f-3861-4f42-8650-dba2f628fee4","added_by":"auto","created_at":"2025-12-22 05:25:09","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":1774428,"visible":true,"origin":"","legend":"","description":"","filename":"EnhancingLong.pdf","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1_covered_13c4be13-2482-49d2-8d50-97e77f52a68a.pdf"},{"id":94598699,"identity":"9775d35d-22ee-4797-96bf-8ecce10f15fa","added_by":"auto","created_at":"2025-10-28 18:55:47","extension":"png","order_by":1,"title":"","display":"","copyAsset":false,"role":"supplement","size":1273033,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage1.png","url":"https://assets-eu.researchsquare.com/files/rs-7733769/v1/b855fcef88d8fa9bcdd12bd7.png"}],"financialInterests":"No competing interests reported.","formattedTitle":"Enhancing long-term forex market forecasting using transformer-based time series models: A comparative analysis with ensemble tree methods","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":true,"highlight":"","institution":"","isAcceptedByJournal":false,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true},"keywords":"Transformer-based forecasting, Forex market, Informer, Autoformer, FEDformer, PatchTST, time series prediction, ensemble learning, long-term trends, attention mechanisms","lastPublishedDoi":"10.21203/rs.3.rs-7733769/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-7733769/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eAccurate long-term forecasting in the foreign exchange (Forex) market remains a challenging task due to the inherent volatility, nonlinearity, and periodic trends of currency data. This study proposes a novel forecasting framework that integrates state-of-the-art Transformer-based time series models—Informer, Autoformer, FEDformer, and PatchTST—to capture complex temporal patterns and improve predictive performance. Utilizing enriched historical data from Yahoo Finance with engineered technical indicators (RSI, ATR, SMA, slope features), we benchmark these models against classical ensemble learning approaches including random forest, gradient boosting machines (GBM), and XGBoost. Experimental evaluations demonstrate that Transformer models, particularly FEDformer and PatchTST, outperform ensemble baselines in multi-step forecasting horizons, reducing MAPE and RMSE by significant margins. Furthermore, attention-based mechanisms enhance model interpretability while offering superior generalization to volatility shifts. This study highlights the potential of deep Transformer architectures in advancing financial time series forecasting, offering robust decision-making tools for traders and market analysts.\u003c/p\u003e","manuscriptTitle":"Enhancing long-term forex market forecasting using transformer-based time series models: A comparative analysis with ensemble tree methods","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2025-10-28 18:20:58","doi":"10.21203/rs.3.rs-7733769/v1","editorialEvents":[{"type":"communityComments","content":0}],"status":"published","journal":{"display":true,"email":"[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"8524b298-713d-4970-a9c5-0b8d73dc9c2d","owner":[],"postedDate":"October 28th, 2025","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[],"tags":[],"updatedAt":"2025-12-22T05:24:44+00:00","versionOfRecord":[],"versionCreatedAt":"2025-10-28 18:20:58","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-7733769","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-7733769","identity":"rs-7733769","version":["v1"]},"buildId":"8U1c8b4HqxoKbykW_rLl7","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00