Python For Finance - Python, finance and getting them to play nicely together…
Python For Finance - Python, finance and getting them to play nicely together…
Uncategorized

Stock Return Heatmap using Seaborn

Hi all, this post is going to be a relatively short and to the point run through of creating an annotated heatmap for the Dow 30 stock returns using the Python Seaborn package.

Let’s start with what is a heatmap actually is; it’s defined as “a representation of data in the form of a map or diagram in which data values are represented as colours.”

This makes it a great tool to quickly visualise the magnitude of stock returns over time in a matrix/grid format, using a colour map/scale to represent the size and direction of each stock’s percentage change over that period of time.

Creating a heatmap without stock ticker labels annotated, i.e. a heatmap annotated with just the numerical value of the relevant cell is a very easy process, thanks to the power and ease of use of Seaborn.

Continue reading

It's only fair to share...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someonePin on PinterestShare on Reddit
February 7, 2018by s666

Share My Content

Archives

  • February 2018
  • October 2017
  • July 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • September 2016
  • July 2016
  • May 2016
  • April 2016
  • March 2016

Popular Posts

Investment Portfolio Optimisation with Python

Moving Average Crossover Trading Strategy Backtest in Python

Intraday Stock Mean Reversion Trading Backtest in Python With Short Selling

Scraping ETF data from the web and sticking it in an SQLite3 database

Bollinger Band Trading Strategy Backtest in Python

Blog Stats

  • 92,704 hits

Trading Strategy Posts

  • Bollinger Band Trading Strategy Backtest in Python

  • Intraday Stock Mean Reversion Trading Backtest in Python With Short Selling

  • Intraday Stock Mean Reversion Trading Backtest in Python

  • Optimisation of Moving Average Crossover Trading Strategy In Python

  • Moving Average Crossover Trading Strategy Backtest in Python – V 2.0

  • Analysis of Moving Average Crossover Strategy Backtest Returns Using Pandas

  • Moving Average Crossover Trading Strategy Backtest in Python

  • Python Backtesting Mean Reversion – Part 4

  • Python Backtesting Mean Reversion – Part 3

  • Python Backtesting Mean Reversion – Part 2

Recent Posts

Trading Strategy Analysis using Python and the FFN Package – Part 1

Stock Clusters Using K-Means Algorithm in Python

Stock Return Heatmap using Seaborn

Stochastic Oscillator Trading Strategy Backtest in Python

Bollinger Band Trading Strategy Backtest in Python

 

Privacy Policy