{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,18]],"date-time":"2026-08-18T05:06:38Z","timestamp":1787029598468,"version":"build-2736575974"},"reference-count":26,"publisher":"MDPI AG","issue":"19","license":[{"start":{"date-parts":[[2021,9,30]],"date-time":"2021-09-30T00:00:00Z","timestamp":1632960000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"Key R&amp;D Program of Zhejiang Province under Grant","award":["No. 2020C05005"],"award-info":[{"award-number":["No. 2020C05005"]}]},{"name":"National Nature Science Foundation of China under Grant","award":["Nos. U2033215 and 91638301"],"award-info":[{"award-number":["Nos. U2033215 and 91638301"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>In recent years, machine learning for trading has been widely studied. The direction and size of position should be determined in trading decisions based on market conditions. However, there is no research so far that considers variable position sizes in models developed for trading purposes. In this paper, we propose a deep reinforcement learning model named LSTM-DDPG to make trading decisions with variable positions. Specifically, we consider the trading process as a Partially Observable Markov Decision Process, in which the long short-term memory (LSTM) network is used to extract market state features and the deep deterministic policy gradient (DDPG) framework is used to make trading decisions concerning the direction and variable size of position. We test the LSTM-DDPG model on IF300 (index futures of China stock market) data and the results show that LSTM-DDPG with variable positions performs better in terms of return and risk than models with fixed or few-level positions. In addition, the investment potential of the model can be better tapped by the reward function of the differential Sharpe ratio than that of profit reward function.<\/jats:p>","DOI":"10.3390\/s21196571","type":"journal-article","created":{"date-parts":[[2021,10,10]],"date-time":"2021-10-10T21:37:49Z","timestamp":1633901869000},"page":"6571","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":10,"title":["LSTM-DDPG for Trading with Variable Positions"],"prefix":"10.3390","volume":"21","author":[{"given":"Zhichao","family":"Jia","sequence":"first","affiliation":[{"name":"School of Electronics and Information Engineering, Beihang University, Beijing 100191, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Qiang","family":"Gao","sequence":"additional","affiliation":[{"name":"School of Electronics and Information Engineering, Beihang University, Beijing 100191, China"},{"name":"Hangzhou Innovation Institute, Beihang University, Hangzhou 310051, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Xiaohong","family":"Peng","sequence":"additional","affiliation":[{"name":"Faculty of Computing, Engineering and the Built Environment, Birmingham City University, Birmingham B5 5JU, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2021,9,30]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"1456","DOI":"10.1109\/72.728395","article-title":"Comparative study of stock trend prediction using time delay, recurrent and probabilistic neural networks","volume":"9","author":"Saad","year":"1998","journal-title":"IEEE Trans. Neural Netw."},{"key":"ref_2","unstructured":"Jiang, Z., Xu, D., and Liang, J. (2017). A deep reinforcement learning framework for the financial portfolio man-agement problem. arXiv."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3309547","article-title":"Temporal Relational Ranking for Stock Prediction","volume":"37","author":"Feng","year":"2019","journal-title":"ACM Trans. Inf. Syst."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"212","DOI":"10.1016\/j.eswa.2014.07.059","article-title":"Stock trading rule discovery with an evolutionary trend following model","volume":"42","author":"Hu","year":"2015","journal-title":"Expert Syst. Appl."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"114553","DOI":"10.1016\/j.eswa.2020.114553","article-title":"Deep reinforcement learning based trading agents: Risk curiosity driven learning for financial rules-based policy","volume":"170","author":"Hirchoua","year":"2021","journal-title":"Expert Syst. Appl."},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Li, Q., Jiang, L., Li, P., and Chen, H. (2015, January 25\u201330). Tensor-based learning for predicting stock movements. Proceedings of the AAAI Conference on Artificial Intelligence, Austin, TX, USA.","DOI":"10.1609\/aaai.v29i1.9452"},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Imajo, K., Minami, K., Ito, K., and Nakagawa, K. (2021, January 2\u20139). Deep Portfolio Optimization via Distributional Prediction of Residual Factors. Proceedings of the AAAI Conference on Artificial Intelligence, New York, NY, USA.","DOI":"10.1609\/aaai.v35i1.16095"},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Nakagawa, K., Abe, M., and Komiyama, J. (2020, January 6\u20139). Ric-nn: A robust transferable deep learning framework for cross-sectional in-vestment strategy. Proceedings of the 2020 IEEE 7th International Conference on Data Science and Advanced Analytics (DSAA), Sydney, Australia.","DOI":"10.1109\/DSAA49011.2020.00051"},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Pun, C.S., Wang, L., and Wong, H.Y. (2021, January 7\u201315). Financial thought experiment: A GAN-based approach to VAST Robust portfolio se-lection. Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, Yokohama, Japan.","DOI":"10.24963\/ijcai.2020\/637"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"593","DOI":"10.1137\/19M1274924","article-title":"Deep-Learning Solution to Portfolio Selection with Serially Dependent Returns","volume":"11","author":"Tsang","year":"2020","journal-title":"SIAM J. Financ. Math."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"653","DOI":"10.1109\/TNNLS.2016.2522401","article-title":"Deep Direct Reinforcement Learning for Financial Signal Representation and Trading","volume":"28","author":"Deng","year":"2017","journal-title":"IEEE Trans. Neural Netw. Learn. Syst."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"783","DOI":"10.1016\/j.asoc.2018.09.017","article-title":"Reinforcement learning applied to Forex trading","volume":"73","author":"Neves","year":"2018","journal-title":"Appl. Soft Comput."},{"key":"ref_13","unstructured":"Huang, C.-Y. (2018). Financial Trading as a Game: A Deep Reinforcement Learning Approach. arXiv."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"112872","DOI":"10.1016\/j.eswa.2019.112872","article-title":"Time-driven feature-aware jointly deep reinforcement learning for financial signal representation and algorithmic trading","volume":"140","author":"Lei","year":"2020","journal-title":"Expert Syst. Appl."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"441","DOI":"10.1002\/(SICI)1099-131X(1998090)17:5\/6<441::AID-FOR707>3.0.CO;2-#","article-title":"Performance functions and reinforcement learning for trading systems and portfolios","volume":"17","author":"Moody","year":"1998","journal-title":"J. Forecast."},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Sutton, R.S. (1998). Introduction to Reinforcement Learning, MIT Press.","DOI":"10.1109\/TNN.1998.712192"},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Puterman, M.L. (1994). Markov Decision Processes: Discrete Stochastic Dynamic Programming, John Wiley & Sons.","DOI":"10.1002\/9780470316887"},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Spaan, M.T. (2012). Partially observable Markov decision processes. Reinforcement Learning, Springer.","DOI":"10.1007\/978-3-642-27645-3_12"},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"119","DOI":"10.1086\/294846","article-title":"Mutual fund performance","volume":"39","author":"Sharpe","year":"1966","journal-title":"J. Bus."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"25","DOI":"10.1016\/j.eswa.2018.03.002","article-title":"Forecasting the volatility of stock price index: A hybrid model integrating LSTM with multiple GARCH-type models","volume":"103","author":"Kim","year":"2018","journal-title":"Expert Syst. Appl."},{"key":"ref_21","unstructured":"Lillicrap, T.P., Hunt, J.J., Pritzel, A., Heess, N., Erez, T., Tassa, Y., Silver, D., and Wierstra, D. (2015). Continuous control with deep reinforcement learning. arXiv."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"68","DOI":"10.1016\/j.tre.2019.09.013","article-title":"A novel CNN-DDPG based AI-trader: Performance and roles in business operations","volume":"131","author":"Luo","year":"2019","journal-title":"Transp. Res. Part E Logist. Transp. Rev."},{"key":"ref_23","first-page":"952","article-title":"Optimal asset allocation using adaptive dynamic programming","volume":"8","author":"Neuneier","year":"1996","journal-title":"Adv. Neural Inf. Process. Syst."},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Liu, Y., Liu, Q., Zhao, H., Pan, Z., and Liu, C. (2020, January 7\u201312). Adaptive Quantitative Trading: An Imitative Deep Reinforcement Learning Approach. Proceedings of the AAAI Conference on Artificial Intelligence, New York, NY, USA.","DOI":"10.1609\/aaai.v34i02.5587"},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"108014","DOI":"10.1109\/ACCESS.2019.2932789","article-title":"Deep Robust Reinforcement Learning for Practical Algorithmic Trading","volume":"7","author":"Li","year":"2019","journal-title":"IEEE Access"},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"125","DOI":"10.1016\/j.eswa.2018.09.036","article-title":"Improving financial trading decisions using deep Q-learning: Predicting the number of shares, action strategies, and transfer learning","volume":"117","author":"Jeong","year":"2019","journal-title":"Expert Syst. Appl."}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/21\/19\/6571\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T07:08:15Z","timestamp":1760166495000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/21\/19\/6571"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,9,30]]},"references-count":26,"journal-issue":{"issue":"19","published-online":{"date-parts":[[2021,10]]}},"alternative-id":["s21196571"],"URL":"https:\/\/doi.org\/10.3390\/s21196571","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,9,30]]}}}