ILIB is a library of technical indicators that can be used to build trading strategies. It is written in Python and uses the Pandas and Numpy library for data manipulation and Matplotlib for charting.
- Implements various popular technical indicators for financial analysis.
- Simple and intuitive API for easy integration into your trading systems.
- Supports Python 3.7 and above.
- Well-documented codebase and example usage for each indicator.
pip install ilib
- Average True Range
- Average Directional Index
- Bollinger Bands
- Commodity Channel Index
- Exponential Moving Average
- Moving Average Convergence Divergence
- Relative Strength Index
- Simple Moving Average
- Stochastic Oscillator
- Stochastic RSI
- Volume Weighted Average Price
import ilib as ti
#data
prices = [45.15, 46.02, 45.89, 46.29, 45.94, 46.03, 45.71, 45.63, 45.36, 45.81, 46.10, 45.77, 45.95, 45.61, 45.27, 44.17, 44.12, 44.36, 44.54, 44.23, 44.29, 44.15, 44.34, 44.58, 44.69, 44.76, 44.62, 44.57, 44.45, 44.38, 44.23, 44.17, 44.04, 44.22, 44.57, 43.42, 42.66, 43.13, 43.43, 43.70, 43.88, 44.22]
#RSI
rsi = ti.rsi(14, prices)
print(rsi.get_rsi())
rsi.add_data(44.57)
print(rsi.get_rsi())