Coder Social home page Coder Social logo

timestamp's Introduction

Introducing TradeBot

Hello there ๐Ÿ‘‹! Thanks for your interest in TradeBot by Dan Healy.

TradeBot is a two tiered system to

  1. predict the direction Bitcoin prices will go in the future and
  2. trade on those predictions for profit.

From 2/11/2019 to 1/31/2020, we've made predictions in real time every 15 minutes, recorded and and time stamped the results on the Bitcoin blockchain. This repo has the time stamped files so you can examine the results yourself.

The primary strategy has made a return of 188%, a 30% higher return than Bitcoin.

If you're skeptical of these results--who doesn't make money in a bull market?-- we performed walk forward tests for Bitcoin and Ether for the year 2018, when BTC lost 65% of its value and ETH lost 80% of its value.

The results: a 3% loss in BTC and an 11% gain in ETH. That's a relative performance of 277% and 556% ๐Ÿค‘.

Detailed supplementary analysis is available in PredictingBitcoin.pdf, Backtesting.pdf, and Volatility.pdf. Our technical methods are described in TechnicalPresentation.pdf.

Finally, correlation.mp4 shows the scatterplot of relative frequency of prediction vs change in price, over 30 days. Take a look to see the direct relationship between predictions and price change.

For a walk through the presentation, or questions about any of the above, email me at [email protected].

Usage:

To easily use this package, you will probably need to:

  1. Install pipenv--pip install pipenv
  2. pipenv shell
  3. pipenv install pandas
  4. pipenv install matplotlib

It may work by default if you have an existing python environment.

The basic suite of commands is in run.py. This includes simulating all variants based on 1/0 buy/sell values, and plotting/animating the moving average of the predictions.

Uncomment "adjust_arrays" in plot_moving_average.py in order to see the predictions shifted to the right. This has been a useful way to visualize future price change for the 10 day MA.

Note on the "translator" function in run: the original names for the strategy variants are confusing and don't match those used in the write up, which are superior. So, the translator functions translate the time stamped file names into the more understandable and accurate ones used in the paper.

All OTS files/zips containing predictions are in /stamps; the unzipped CSVs are in /variants, for your convenience.

Stamp Erratum: Note: Around 1/31/2020, TradeBot began to suffer infrastructure issues that led to performance degradation and made the data unusable, which is why we halt there. The data is left available for verification. For June 3, there is no timestamp; June 21 has a stamp that is improperly named as June 22; and June 22 is stamped around 12 hours later than it should be. All others are stamped at 11:55 PM UTC the night of the date they are named for.

timestamp's People

Stargazers

 avatar

Watchers

Dan Healy avatar

Forkers

joemccann wlanez

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.