Giter Club home page Giter Club logo

oandapybot's Introduction

oandapybot

============

Simple python bot for trading forex on oanda.com

It can only trade one instrument

Built on top of https://github.com/oanda/oandapy

This is only a sample for your robot with simple sample strategy. You NEED to implement better logic, otherwise you WILL loose money.

I have my own strategies that I run this bot with, you need to implement your own logic in logic/strategy.py.

Currently there is a sample moving average cross over as an example.

To install:

If you do not have TA-Lib installed, follow these steps:

1. Get build essentials

$ sudo apt-get install build-essential
$ sudo apt-get install python2.7-dev
$ sudo apt-get install python-pip

2. Build TA-Lib

$ wget http://sourceforge.net/projects/ta-lib/files/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz/download?use_mirror=iweb
$ tar zxfv ta-lib-0.4.0-src.tar.gz
$ cd ta-lib
$ ./configure --prefix=/usr
$ make
$ sudo make install

1.3 Install python wrapper

$ sudo pip install Cython
$ sudo pip install numpy
$ sudo pip install TA-Lib

2. Install the rest of dependencies

$ pip install requirements.txt

To backtest:

1. Modify settings.py to point your bot to a datafile
2. python backtest.py

To make money:

1. Modify logic/strategy.py till you happy with backtest results
2. Deposit money into your oanda account

To run:

1. Modify settings.py with your oanda credentials
2. python main.py

oandapybot's People

Contributors

im15andproud avatar petermalkin avatar

Watchers

James Cloos avatar Jakub 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.