Giter Club home page Giter Club logo

algobot's Introduction

Algobot

Algobot is a Python trading bot that using the FXCM ForexConnect API.

How does it work?

Algobot repeatedly monitors the charts at set timeframes looking for MACD crossovers. When it finds a suitable crossover, it will watch the trade looking for confirmation and significant movement. If the potential trade is confirmed, Algobot will send you a notification so that you can review it and place the trade if it meets your criteria. If not, then Algobot drops the watched traded and keeps looking.

Installation

  1. Spin up a Ubuntu box on Digital Ocean (you will need at least 1GB of RAM to build the necessary libraries, although you can scale this down once installed)
  2. Install Boost 1.54 (Follow the third comment here: https://stackoverflow.com/questions/12578499/how-to-install-boost-on-ubuntu)
  3. Follow installation instructions for the python-forexconnect API (https://github.com/neka-nat/python-forexconnect)
  4. Install PostgreSQL
  5. Clone this project git clone https://github.com/spencerldixon/algobot.git
  6. cd algobot
  7. Install the packages pip install -r requirements.txt
  8. Create a .env and fill out the environment variables (these can be found at the top of algo.py)

Configuration

You can specify which currency pairs and chart timeframes you want Algobot to watch in config.py

Run it

Just run the file and let it go

python algo.py

Trade Alerts

You can receive alerts whenever Algobot spots a potential juicy trade. This can be done by sending a JSON payload to a custom endpoint (this lands nicely in my AI personal assistant which is then sent via a notification to me)

When it fucks up on Digital Ocean...

For some reason the API breaks whenever the server is restarted, to fix this, run...

export FOREXCONNECT_ROOT=~/ForexConnectAPI-1.4.1-Linux-x86_64 && export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/ForexConnectAPI-1.4.1-Linux-x86_64/lib && cd python-forexconnect/build/ && cmake .. -DDEFAULT_FOREX_URL="http://www.fxcorporate.com/Hosts.jsp" && make install

algobot's People

Contributors

spencerldixon 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.