Coder Social home page Coder Social logo

webclinic017 / crypto-analysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dbogatic/crypto-analysis

0.0 0.0 0.0 45.04 MB

An attempt to determine the direction of crypto asset price movement based on selected market information as well as to identify if there are leading indicators that could point the direction of movement.

License: MIT License

Jupyter Notebook 100.00%

crypto-analysis's Introduction

Crypto Analysis

image

  • This repo attempts to determine the direction of crypto asset movement based on selected market information as well as to identify if there are leading indicators that could point the direction of movement.

  • Data obtained from Coinmetrics community (free) level API, Vectorbt, Pytrends, yfinance and Investing.com using Beautiful Soup to scrape HTML tables.

Data Analyzed

  • Velocity (VelCur1yr) - The ratio of the value transferred (i.e., the aggregate "size" of all transfers) in the trailing 1 year divided by the current supply on that day. It can be thought of as a rate of turnover -- the number of times that an average native unit has been transferred in the past 1 year.

  • Network Value to Transaction (NVTAdj) - The ratio of the network value (or market capitalization, current supply) divided by the adjusted transfer value. Also referred to as NVT.

  • Transaction Count (TxCnt) - The sum count of transactions that day.

  • Transaction Volume (TxTfrValAdjUSD) - The USD value of the sum of native units transferred that day removing noise and certain artifacts.

  • Exponential Moving Average (EMA) - Technical analysis to determine price movement compared to its average as well as crossing points that could point to trend reversal.

  • Hash Rate, Mean (HashRate) - Hash rate is derived from difficulty (DiffMean), the rate at which block came in (BlkIntMean) and depending on the protocols, some other pieces of data. It gives an estimate of how much hash power is mining a given chain.

  • MVRV - (CapMVRVCur) - The ratio of the sum USD value of the current supply to the sum "realized" USD value of the current supply. This ratio potentially indicates periods of overvaluation (when network value far exceeds its historical relationship to realized cap) and undervaluation.

  • Additionally, I compared BTC and ETH with main market indexes S&P 500, Dow Jones Industrial Average and Nasdaq-100 to determine cumulative return, volatility, Sharpe and Sortino ratios.

  • Added backtesting SMA strategy for BTC and ETH using Vectorbt API.

  • Used Random Forest Classifier to predict price direction from Coinmetrics API metrics as well EMA trading signals as model features.

  • Pulled ETH and BTC Google trends from Pytrends API and compared to the price movements.

  • Market index data pulled using yfinance API.

  • Scraped hourly HTML technical indicators for BTC and ETH from Investing.com using Beautiful Soup.

  • Used pandas-ta library to obtain ETH and BTC technical indicators used as features in Random Forest Classifier.

© 2021 Author: Dragan Bogatic

crypto-analysis's People

Contributors

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