How To Draw Candlestick Charts Using Python?

27 December 2016, 14:00
Ahmad Hassam
1
1 933

If you are learning Python then this post can help you a lot.

In this new post I show how you will download daily stock quotes data from Yahoo Finance.

Then how you are going to draw the candlestick chart.

We will be using matplotlib library.

If you use R, then quantmod package can make the candlestick charts easily once you convert the data to an xts object.

But in Python things are a bit complicated.

Matplotlib library doesn't accept the Pandas DataFrame object.

It only accepts the data in a tuple format and the date is also in epoch format.

This post is good for educational purpose and will show you how things work in Python.

Share it with friends: