A Python library for computing commonly used technical indicators in financial markets. This repository provides efficient and easy-to-use implementations of indicators that are vital for analyzing market trends, generating signals, and backtesting strategies.
Currently, the library includes the following technical indicators:
- Supertrend: Identifies trends and generates buy/sell signals based on volatility.
- RSI (Relative Strength Index): Measures the magnitude of recent price changes to evaluate overbought or oversold conditions.
- Stochastic Oscillator: Compares a specific closing price to a range of its prices over time.
- ADX (Average Directional Index): Quantifies trend strength and direction.
- Bollinger Bands: Identifies overbought or oversold market conditions using a simple moving average and standard deviation.
- Heikin Ashi: Smooths out price action for clearer trend identification.
🚀 Planned Additions:
This library is a work in progress. We aim to continuously expand it by adding more indicators, including:
- Moving Average Convergence Divergence (MACD)
- Fibonacci Retracement Levels
- Ichimoku Cloud
- Pivot Points
- Average True Range (ATR)
-
Clone the Repository
Start by cloning this repository to your local system:git clone https://github.com/your-username/technical-indicators.git cd technical-indicators
-
Install Dependencies
Install the required Python libraries using therequirements.txt
file:pip install -r requirements.txt
-
Run an Indicator Script
Execute one of the indicator scripts to calculate values. For example:python indicators/rsi.py
-
Integrate with Your Project
Import the indicator functions into your own trading strategy or application.
Example:from indicators.supertrend import calculate_supertrend # Example usage: supertrend_df = calculate_supertrend(data, period=10, multiplier=3)
This repository aims to:
- Provide accurate implementations of commonly used technical indicators.
- Grow into a comprehensive library for building and testing trading systems.
- Help traders and developers learn, experiment, and innovate in financial markets.
We welcome contributions to help grow this library!
If you would like to contribute:
- Fork the repository.
- Add your implementation in the
indicators/
directory. - Create a pull request explaining the added indicator and its use.
Feel free to suggest new indicators or enhancements by opening an issue.
This project is licensed under the MIT License. See the LICENSE file for more details.
For questions, feedback, or suggestions, please open an issue in the repository or reach out to the maintainer.
Stay tuned for updates as we continue to enhance and expand this library of technical indicators. 🚀