0% found this document useful (0 votes)
13 views

Stock Market Dashboard in Python

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Stock Market Dashboard in Python

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Implementing a Stock Market Dashboard in

Python
AARON DE LA ROSA

Heat maps are one of the most traditional ways of creating market monitoring dashboards. But since
we want to check the rotation relative to one another, we need a way to standardize the performance.
We will accomplish this by calculating performance relative to the S&P 500 (SPY), a broad-based index
that represents the US market.

Here are the steps required:

1) Retrieve pricing information for all tickers and the benchmark.

2) Standardize the prices relative to SPY.

3) Calculate the percentiles for each period.

4) Plot the heat map where each column represents a time period. I’ve set this up to work with either
weekly or monthly returns.

You might also like