Rajandran R Founder of Marketcalls and Co-Founder Algomojo. Full-Time Derivative Trader. Expert in Designing Trading Systems (Amibroker, Ninjatrader, Metatrader, Python, Pinescript). Trading the markets since 2006. Mentoring Traders on Trading System Designing, Market Profile, Orderflow and Trade Automation.

How to Plot Candlestick Charts using Python

49 sec read

In the last tutorial we had seen how to import data from NSEindia using NSEpy library and how to compute co-integration. In this tutorial we will be using plotly – a library to visualize your data interactively and pandas – library to manage time series data to build interactive candle stick charts.

Plotly provides a web-service for hosting graphs and currently Public hosting is free. Just create the account and get the API key for authentication to host your data visualization stuff.

Create your account with plotly and Get the Plotly API Key here in order to use plotly service.

API Key

 

Installation
In the CLI terminal, copy and paste the following to install the Plotly library and set your user credentials.

https://gist.github.com/8725c260deb32fceecff

You’ll need to replace ‘DemoAccount’ and ‘lr1c37zw81’ with your Plotly username and API key.

It is recommended to upgrade to the latest version of Pandas and Plotly libraries.

Sample IPython Notebook using Plotly to plot Interactive Candlestick Charts :

Rajandran R Founder of Marketcalls and Co-Founder Algomojo. Full-Time Derivative Trader. Expert in Designing Trading Systems (Amibroker, Ninjatrader, Metatrader, Python, Pinescript). Trading the markets since 2006. Mentoring Traders on Trading System Designing, Market Profile, Orderflow and Trade Automation.

How to Retrieve Opening Balance, Total Turnover, Realized and…

This tutorial explores how to access the limits API functionality in Algomojo using python to retrieve the Account Balance, Total Turnover, Realized, UnRealized PNL,...
Rajandran R
1 min read

Introduction to Backtrader – Creating your First Trading Strategy…

Backtrader is an open-source python framework for backtesting, optimizing, and deploying live algorithmic trading strategies.
Rajandran R
54 sec read

Getting Started with Google Colab

Google Colab also known as Google Colaboratory is a product from Google Research which allows user to run their python code from their browser...
Rajandran R
1 min read

One Reply to “How to Plot Candlestick Charts using Python”

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More