Code Monkey home page Code Monkey logo

futures_trading's Introduction

How Does News Data Impacts Trading Decisions?

Repository Details:

This repository has the RL framework for performing futures trading in stock market. The trading environment currently supports trading in near month contracts. Discrete action space is supported for Q learning, SARSA and DQN. Continous action space is supported for PPO. Continuous observation space is supported for DQN and PPO. Discrete obeservation space is supported for Q learning and SARSA.

  1. deep_rl_trading: This folder consists of the PPO and DQN based RL models.
  2. rl_trading: This folder consists of the Q learning and SARSA based RL models.
Data Source:
  1. Price data: https://www.kaggle.com/datasets/nishanthsalian/indian-stock-index-1minute-data-2008-2020
  2. News data: https://economictimes.indiatimes.com/archive.cms?from=mdr
Evaluation Metrics:
  1. Total Profit
  2. Return (%)
  3. Maximum Drawdown
  4. Volatility
  5. Sharpe Ratio
  6. Sortino Ratio
Prerequisite Libraries:
  1. stable-baselines3==1.7.0
  2. TA-Lib==0.4.25
  3. rich==13.3.1
  4. torch==1.13.0
Preliminary Reading:
  1. Futures trading: https://zerodha.com/varsity/module/futures-trading/
  2. Technical Indicator: https://www.fidelity.com/learning-center/trading-investing/technical-analysis/technical-indicator-guide/overview
  3. FinBERT: https://arxiv.org/abs/1908.10063
  4. PPO: https://spinningup.openai.com/en/latest/algorithms/ppo.html
  5. DQN: https://arxiv.org/abs/1312.5602
  6. Q Learning: https://blog.floydhub.com/an-introduction-to-q-learning-reinforcement-learning/
  7. SARSA: https://builtin.com/machine-learning/sarsa

futures_trading's People

Contributors

surupendu avatar irlplab avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.