All Projects β†’ 5ymph0en1x β†’ Heptet

5ymph0en1x / Heptet

Licence: MIT license
Pair Trading - Reinforcement Learning - with Oanda Trading API

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Heptet

AutoTrader
A Python-based development platform for automated trading systems - from backtesting to optimisation to livetrading.
Stars: ✭ 227 (+345.1%)
Mutual labels:  trading, oanda, forex
Pytrader Python Mt4 Mt5 Trading Api Connector Drag N Drop
End-to-End solution connecting Metatrader4 & Metatrader5 πŸ’Ή with Python with a simple drag and drop EA. Fully tested bug free & efficient solution for live & paper trading⭐ Full Documentation ready.
Stars: ✭ 93 (+82.35%)
Mutual labels:  trading, forex
Backtesting.py
πŸ”Ž πŸ“ˆ 🐍 πŸ’° Backtest trading strategies in Python.
Stars: ✭ 1,124 (+2103.92%)
Mutual labels:  trading, forex
dukascopy-tools
✨ Download historical price tick data for Crypto, Stocks, ETFs, CFDs, Forex via CLI and Node.js ✨
Stars: ✭ 128 (+150.98%)
Mutual labels:  trading, forex
Ta4j
A Java library for technical analysis.
Stars: ✭ 948 (+1758.82%)
Mutual labels:  trading, forex
Siis
Trading bot including terminal, for crypto and traditionals markets. Assisted or fully automated strategy.
Stars: ✭ 45 (-11.76%)
Mutual labels:  trading, forex
Bot18
Bot18 is a high-frequency cryptocurrency trading bot developed by Zenbot creator @carlos8f
Stars: ✭ 157 (+207.84%)
Mutual labels:  trading, forex
Oanda Api V20
OANDA REST-V20 API wrapper. Easy access to OANDA's REST v20 API with oandapyV20 package. Checkout the Jupyter notebooks!
Stars: ✭ 325 (+537.25%)
Mutual labels:  trading, forex
Jiji2
Forex algorithmic trading framework using OANDA REST API.
Stars: ✭ 211 (+313.73%)
Mutual labels:  trading, forex
oanda api
A ruby client for the Oanda REST API.
Stars: ✭ 35 (-31.37%)
Mutual labels:  oanda, forex
ROandaAPI
R Code API for Forex Trading with OANDA Broker
Stars: ✭ 22 (-56.86%)
Mutual labels:  oanda, forex
Gym Anytrading
The most simple, flexible, and comprehensive OpenAI Gym trading environment (Approved by OpenAI Gym)
Stars: ✭ 627 (+1129.41%)
Mutual labels:  trading, forex
Stocksharp
Algorithmic trading and quantitative trading open source platform to develop trading robots (stock markets, forex, crypto, bitcoins, and options).
Stars: ✭ 4,601 (+8921.57%)
Mutual labels:  trading, forex
binaryapi
Binary.com & Deriv.com API for Python
Stars: ✭ 32 (-37.25%)
Mutual labels:  trading, forex
Ta4j Origins
A Java library for technical analysis ***Not maintained anymore, kept for archival purposes, see #192***
Stars: ✭ 354 (+594.12%)
Mutual labels:  trading, forex
Oandapyv20 Examples
Examples demonstrating the use of oandapyV20 (oanda-api-v20)
Stars: ✭ 102 (+100%)
Mutual labels:  trading, forex
gym-mtsim
A general-purpose, flexible, and easy-to-use simulator alongside an OpenAI Gym trading environment for MetaTrader 5 trading platform (Approved by OpenAI Gym)
Stars: ✭ 196 (+284.31%)
Mutual labels:  trading, forex
Lean
Lean Algorithmic Trading Engine by QuantConnect (Python, C#)
Stars: ✭ 5,675 (+11027.45%)
Mutual labels:  trading, forex
Argo
Quest in pursuit of the Golden Fleece in Forex chaos
Stars: ✭ 260 (+409.8%)
Mutual labels:  trading, forex
Trading Server
A multi-asset, multi-strategy, event-driven trade execution and management platform for running many algorithms/bots at many venues simultaneously with unified risk management and reporting. Uses MongoDB for storage and Telegram for user notifications/trade consent.
Stars: ✭ 191 (+274.51%)
Mutual labels:  trading, forex

Pair Trading - Reinforcement Learning - with Oanda Trading API

A TensorFlow implemention in Reinforcement Learning and Pairs Trading. The current status of the project covers implementation of RL in cointegration pair trading based on 1-minute forex market data. For the Reinforcement Learning here we use the N-armed bandit approach. The code is expandable so you can plug any strategies, data API or machine learning algorithms into the tool if you follow the style.

Guidance

  • Medium - The corresponding article for this project.

Data Source

  • HistData - Run 'python formater_piphist.py' (EXAMPLE/Symphoenix) after modifying 'symbol = USDCAD' to match the one you want to retrieve data from (covers 2019).

Examples

See the folder EXAMPLE for more details. Please initiate your own virtual environment and move the scripts you want to the root folder before running them.

Idea of Usage

Start by retrieving data for EURJPY and GBPJPY by running 'formater_piphist.py' with the correct 'symbol' setting. Train a model with 'Training_Model.py' after editing the first two lines of the 'Read prices' section (lines 23-24) to match the data you have just downloaded. Edit 'CONFIG/config_trading.yml' with your personal ids and tokens. Start trading the 2 pairs by running 'Trading_Model.py'. That's all !

Going Deeper...

  • You can download multiple pairs historical data and run 'Analysis.py' (EXAMPLE/Symphoenix) to explore correlation and cointegration values and graphs.

  • By running 'Training_Model.py', you get a backtest result at the end which allows tuning strategies.

Disclaimer

The article and the relevant codes and content are purely informative and none of the information provided constitutes any recommendation regarding any security, transaction or investment strategy for any specific person. The implementation described in the article could be risky and the market condition could be volatile and differ from the period covered above. All trading strategies and tools are implemented at the users’ own risk.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].