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.

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

Python Multi-Broker Library for Algomojo – Trade Automation

Presenting a functional python wrapper for algomojo trading api. Algomojo is a multi broker python library for the Algomojo Free API + Free Algo...
Rajandran R
1 min read

Hurst Exponent – Checking for Trend Persistance – Python…

Hurst exponent is originally developed by the famous hydrologist Harold Edwin Hurst to study the Long-Term Storage Capacity of Reservoirs. Hurst is developed to...
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