Top 4 Python libraries for technical analysis
With an example of calculating Bollinger Bands
Nowadays, more and more people are interested in finance and investing. One of the sub-fields of that wide domain is technical analysis. Wikipedia defines it as
[…] an analysis methodology for forecasting the direction of prices through the study of past market data, primarily price and volume.
The increased interest in technical analysis (TA) also resulted in the creation of multiple libraries used for it, for pretty much all modern programming languages. In this short article, we cover the top 4 Python libraries.
Setup and data
Before we start calculating technical indicators, we need to prepare a bit. First, we import the required libraries. The only one that might be tricky to install (or at least not as simple as running pip install
) is TA-Lib. I will refer you to the library’s GitHub repository for more information on the installation process.