Hands Down the Easiest Way to Create Technical Indicators (Python) πππ
Stockstats is a hidden gem of a Python library that every algo trader should know about. Itβs simply a wrapper around dataframes of the popular data analysis library pandas that letβs you create common statistics and technical indicators on the fly.
Want to find out how ridiculously convenient it is to create indicators with stockstats? Then this post is for you!
This story is solely for general information purposes, and should not be relied upon for trading recommendations or financial advice. Source code and information is provided for educational purposes only, and should not be relied upon to make an investment decision. Please review my full cautionary guidance before continuing.
What is stockstats?
stockstats is a small Python library thatβs creates a wrapper around a pandas dataframe to easily access common OHLC statistics and technical indicators.
This little gem has provides access to over 60 statistics and technical indicators, has over 1.2k stars on GitHub, 9 contributors and 294 forks.
Here are a couple of examples:
delta
log return
min/max in range
SMA
EMA
MACD
Bollinger Bands
RSI
ATR
Choppiness Index
ROC
PPO
Ichimoku Cloud and many more.
For a complete list of supported stats and indicators check out the docs.
But enough of the small talk, letβs see how to use this library.