Code Monkey home page Code Monkey logo

crypto-trading's Introduction

crypto-trading

A repository for my crypto-trading experimentation. This repository can be divided into four main areas of functionality; data collection and storage, data analysis, backtesting and strategy execution.

Data collection and storage

The current state of the price database is trivial; a folder of enormous csv files. It ought to be converted into an SQL database.

Data analysis

Current functionality:

  • display OHLC data
  • trend definition: the price extrema in intervals defined by derivatve of MA
  • display the distribution of trend price-changes, time-changes and their correlations
  • search for abitrage opportunities

Desired functionality:

  • analyse pair: applies all analyses and displays the results with matplotlib and outputs results file
  • analyse pairs: applies cross-pair analyses and displays the results with matplotlib and outputs results file
  • time analysis: search for predictability in price change and volatility at particular times of day, week, month and year
  • introduce alternate datapoints: sentiment and basic indicators such as RSI and bollinger bands
  • clean data: categorise datapoints where data is missing or exchange is offline

Backtesting

Current functionality:

Desired functionality:

  • to run strategy execution of historic OHLC data and output trades.json and stats.json
  • basic stats includes win/loss ratio, profit/loss ratio, average win, average loss, number of trades, variance of these numbers
  • also alpha, beta, information ratio, maximum adverse excursion, average true range, skewness, kurtosis, ulcer index and conditional value at risk

Strategy execution

Current functionality:

  • manage a simple algorithm buying and selling around a stable midpoint
  • mobile notifications
  • output trades.json Desired functionality:
  • analyse trades.json
  • execute algorithm with variable midpoint
  • risk management
  • execute arbitrage algorithm

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.