Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots. Bokeh output can be obtained in various mediums like notebook, html and server. It is possible to embed bokeh plots in Django and flask apps.
Here, I have deployed it on my website using flask, it was cool right!? 🗺️
The graph which is plotted in this financial web graph is called as candlestick chart
A candlestick chart (also called Japanese candlestick chart) is a style of financial chart used to describe price movements of a security, derivative, or currency. Each "candlestick" typically shows one day, thus a one-month chart may show the 20 trading days as 20 candlesticks.
A candlestick is composed of three parts; the upper shadow, lower shadow and body. The body is colored green or red. Each candlestick represents a segmented period of time. The candlestick data summarizes the executed trades during that specific period of time. For example a 5-minute candle represents 5 minutes of trades data. There are four data points in every candlestick: the open, high, low and close. The open is the very first trade for the specific period and the close is the very last trade for the period. The open and close is considered the body of the candle. The high is the highest priced trade and low is the lowest price trade for that period.
The high is represents by a vertical line extending from the top of the body to the highest price called a shadow, tail or wick. The low of the candle is the lower shadow or tail, represented by a vertical line extending down from the body. If the close is higher than the open, then the body is colored green representing a net price gain. If the open is higher than the close, then the body is colored red as it represents a net price decline.
Here are some steps to follow:
- Fork this repo.
- Install all the requirements in your system. (Visit
requirements.txt
file)- pip install python
- pip install bokeh
- pip install flask
- pip install pandas_datareader
- Run
script1.py
in your local system..
👨💻😉 Have a nice day!