Saturday, July 9, 2022

How to Draw Graph for Stocks (Python)

How to Draw Graph for Stocks (Python)

There are lot of online tools available for draw graph. Most of them are not free and limited number of date range. In this blog I am going to share my python experience with financial graph implementation. I wrote 3 python codes for several graph types. Which are

  • Candle Graph
  • Line Grap
  • Ohlc Graph
Those graphs are helpful for financial analyzers to do their analysis. Technical traders use a variety of stock charts to analyze market data in order to pinpoint optimum entry and exit points for their trades. By setting up efficient charts and workspace, you'll gain quick access to the data you need to make profitable trading decisions.

Clone the graph source code from GitHub repository. Sample data sheet also available. Data should be in that format along with column names. 


You may need to install several python packages before continuing.

Candle Graph

Execute "get-candle-graph.py" script to generate candle graph

# python3 get-candle-graph.py

Line Graph

Execute "get-line-graph.py" script to generate line graph

# python3 get-line-graph.py












OHLC Graph

Execute "get-ohlc-graph.py" script to generate OHLC graph

# python3 get-ohlc-graph.py





No comments:

Post a Comment