IDEAS home Printed from https://ideas.repec.org/a/gam/jjrfmx/v13y2020i4p78-d347179.html
   My bibliography  Save this article

Contracts for Difference: A Reinforcement Learning Approach

Author

Listed:
  • Nico Zengeler

    (Hochschule Ruhr West, University of Applied Sciences, 46236 Bottrop, Germany)

  • Uwe Handmann

    (Hochschule Ruhr West, University of Applied Sciences, 46236 Bottrop, Germany)

Abstract

We present a deep reinforcement learning framework for an automatic trading of contracts for difference (CfD) on indices at a high frequency. Our contribution proves that reinforcement learning agents with recurrent long short-term memory (LSTM) networks can learn from recent market history and outperform the market. Usually, these approaches depend on a low latency. In a real-world example, we show that an increased model size may compensate for a higher latency. As the noisy nature of economic trends complicates predictions, especially in speculative assets, our approach does not predict courses but instead uses a reinforcement learning agent to learn an overall lucrative trading policy. Therefore, we simulate a virtual market environment, based on historical trading data. Our environment provides a partially observable Markov decision process (POMDP) to reinforcement learners and allows the training of various strategies.

Suggested Citation

  • Nico Zengeler & Uwe Handmann, 2020. "Contracts for Difference: A Reinforcement Learning Approach," JRFM, MDPI, vol. 13(4), pages 1-12, April.
  • Handle: RePEc:gam:jjrfmx:v:13:y:2020:i:4:p:78-:d:347179
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1911-8074/13/4/78/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1911-8074/13/4/78/
    Download Restriction: no
    ---><---

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Perry Sadorsky, 2021. "Predicting Gold and Silver Price Direction Using Tree-Based Classifiers," JRFM, MDPI, vol. 14(5), pages 1-21, April.
    2. Maximilian Wehrmann & Nico Zengeler & Uwe Handmann, 2021. "Observation Time Effects in Reinforcement Learning on Contracts for Difference," JRFM, MDPI, vol. 14(2), pages 1-15, January.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jjrfmx:v:13:y:2020:i:4:p:78-:d:347179. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.