Giter VIP home page Giter VIP logo

bitcoin-rainbow-chart's Introduction

Bitcoin Rainbow Price Chart ๐ŸŒˆ

This is a simple Python script that generates a price chart for Bitcoin using the rainbow chart method. The rainbow chart is a logarithmic chart that shows the price of Bitcoin in different colors based on the logarithmic price scale. This can be used as an indicator to determine when to buy or sell Bitcoin. The chart is generated using the matplotlib library in Python.

Supported versions License Code style: black


Introduction

I have seen this indicator many times on the internet and I wanted to create a simple Python script that generates this chart. I used the version found on coinglass as a reference. The data is fetched using Nasdaq's Data Link as they had the oldest data available. I used Binance's API to get the most recent data, as Nasdaq's data only goes up to the beginning of 2024.

Installation โš™๏ธ

The required packages to run this code can be found in the requirements.txt file. To run this file, execute the following code block after cloning the repository:

pip install -r requirements.txt

Usage โŒจ๏ธ

To generate the chart, simply run the script using the following command:

python src/main.py

Example ๐Ÿ“Š

The following chart is an example of the output generated by the script. The vertical lines represent the halving events of Bitcoin. Bitcoin Rainbow Chart

References ๐Ÿ“š

The following image was used as a reference for the color scale. Bitcoin Rainbow Chart Reference

Other references

The following websites also provide information about the rainbow chart:

TradingView Indicators ๐Ÿ“ˆ

The following TradingView indicators do a similar thing:

Acknowledgements ๐Ÿ™

I used the code from coinmonks' Medium post as an inspiration for this.

bitcoin-rainbow-chart's People

Contributors

stephanakkerman avatar imgbotapp avatar

Stargazers

HeisenBerg? avatar Wsa Leon avatar SongLai Yi avatar

Watchers

 avatar

Forkers

wanghaisheng

bitcoin-rainbow-chart's Issues

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.