Giter VIP home page Giter VIP logo

opentrade's Introduction

OpenTrade

OpenSource Algo-Trading Bots

OpenTrade is an open source project that consist of Popular strategies and backtest.

  • Popular strategies
  • Backtest
  • Open sourse
  • Easy to run

List of strategies

  • Martingale
  • Grid Trading
  • Infinity Grid
  • Rebalance
  • SmartTrade
  • Spot-Future arbintage
  • TWAP
  • Reverse Grid
  • Trailing Buy/Sell

Some strtegies are implemented based on Pionex blog page

What about backtest:

A built-in backtest is used to test strategies ,so you need to download historical data for testing. You can make strategies for Spot and future markets by yourself.

How to use?

By running Strategies file in base folder you can run demo files. but if you download or clone project you can use this approach:

git clone https://github.com/mertz1999/OpenTrade.git
cd Opentrade

Then you can load OpenTrade in you python file:

from OpenTrade.strategy_list.martingale import Martingale
import pandas as pd

data = pd.read_csv('./data/BTC_2020.csv')
data = pd.DataFrame(data.values[::-1], data.index, data.columns)

st = Martingale(1, -1, 3, data, 700, 1)
st.run()

Todo:

  • Make Auto sell at certain price
  • Make Auto buy at certain price
  • Set fee value to hole positions
  • Set volume
  • Plotting
  • Volume based backtest beside orderbased
  • Make plot
  • Future trading
  • Leverage

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.