DEV Community

dennislwm
dennislwm

Posted on • Originally published at fxgit.netlify.app on

My Inspiration for a Chart class came from the trendet Python package

My idea from the trendet Python package is to create a general method for a ChartCls class, that conveniently draws a span of vertical lines to highlight up and down trends on a given chart.

Read to the end of article for the SPOILER.

What is trendet?

The trendet Python package comes with an easy trend detection tool. It conveniently plots a chart that highlights both the uptrend regions and downtrend regions, in green color and red color, respectively.

Prerequisites

  • trendet - Python package to detect trends
  • matplotlib - Python package to plot charts
  • seaborn - Python package to plot lines

Step 1 - Understand the trendet code sample

trendet is a Python package to automatically detect trends for any given time series data, e.g. S&P 500. This package has been created to support investpy features when it comes to data retrieval.

The full blog post can be found here.

Top comments (0)