Rajandran R Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in and Co-Creator of Algomojo (Algorithmic Trading Platform for DIY Traders)

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
[wp_ad_camp_5]

 

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 Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in and Co-Creator of Algomojo (Algorithmic Trading Platform for DIY Traders)

Twitter Based Sentiment Analysis using Natural Language Processing (NLP)…

In this tutorial, we will be fetching REDBOXINDIA Twitter timeline and we will be doing NLP-based text sentiment analysis based on that. And give...
Rajandran R
4 min read

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

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

Leave a Reply

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