Giter VIP home page Giter VIP logo

galp's Introduction

Galp

Trading platform written in Matlab for Interactive Brokers (IB) API

Note: Currently this only supports FX spot trading

Introduction

This trading platform allows users to create their own trading strategies and trade with IB through its ActiveX API. The platform is written in Matlab, and the user-defined trading strategies should also be written in Matlab.

Prerequisite

  1. Matlab
  2. IB Trader Workstation/Gateway
  3. IB API
  4. IBController (optional)

Creating your own strategy

Each trading strategy requires at least one Signal, and exactly one Strategy. A Signal class should be derived from the SignalFactoryBase class; a Strategy class should be derived from the StrategyBase class.

See SF_CloseUpDown and Strat_BuyUpSellDown for how to create derived Signal/Strategy classes.

What's the entry point/how do I actually use Galp?

Suppose you have already created your signal and strategy (if not, you can always use SF_CloseUpDown and Strat_BuyUpSellDown to experiment). All you have to do is to fill in the details in GalpSetup.xlsx, and then open a Matlab session and type 'Galp.start'.

How does Galp differ from other similar projects?

The term 'trading platform' is not exactly well-defined. As a result, many projects claiming to be 'trading platforms' are in fact no more than a thin wrapper layer wrapping around the IB API to expose it to a different coding language (e.g. Matlab). I am not criticizing those projects - in fact I think a lot of them do the wrapper job very well. Galp, on the other hand, does more than that. The user can focus on creating signals and strategies, while leaving lower level tasks to Galp (e.g. talking to IB API, requesting bars, keeping track of positions, reporting PnL etc.).

Is Galp fit for live trading?

At your own risk. It has been used for medium to low frequency strategies.

galp's People

Contributors

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