|
4 | 4 | Author: TexasCoding |
5 | 5 | Date: June 2025 |
6 | 6 |
|
7 | | -A comprehensive technical analysis library similar to TA-Lib, built on Polars DataFrames. |
8 | | -Provides both class-based and function-based interfaces for technical indicators. |
9 | | -
|
10 | | -Example usage: |
| 7 | +Overview: |
| 8 | + ProjectX Indicators provides a comprehensive, extensible technical analysis library |
| 9 | + similar to TA-Lib, built on Polars DataFrames. It offers both class-based and |
| 10 | + function-based interfaces for over 60 technical indicators, with seamless integration |
| 11 | + for vectorized backtesting and strategy development in ProjectX and beyond. |
| 12 | +
|
| 13 | +Key Features: |
| 14 | + - Wide range of indicators: trend/overlap, momentum, volatility, volume, and patterns |
| 15 | + - Class-based and TA-Lib-style function interface for flexible usage |
| 16 | + - All indicators operate on Polars DataFrames for speed and modern analytics |
| 17 | + - Utilities for indicator discovery, grouping, and docstring access |
| 18 | + - Clean API and naming convention for easy scripting and research |
| 19 | +
|
| 20 | +Example Usage: |
| 21 | + ```python |
11 | 22 | # Class-based interface |
12 | | - >>> from project_x_py.indicators import RSI, SMA |
13 | | - >>> rsi = RSI() |
14 | | - >>> data_with_rsi = rsi.calculate(ohlcv_data, period=14) |
| 23 | + from project_x_py.indicators import RSI, SMA |
| 24 | + rsi = RSI() |
| 25 | + data_with_rsi = rsi.calculate(ohlcv_data, period=14) |
15 | 26 |
|
16 | 27 | # Function-based interface (TA-Lib style) |
17 | | - >>> from project_x_py.indicators import calculate_rsi, calculate_sma |
18 | | - >>> data_with_rsi = calculate_rsi(ohlcv_data, period=14) |
19 | | - >>> data_with_sma = calculate_sma(ohlcv_data, period=20) |
| 28 | + from project_x_py.indicators import calculate_rsi, calculate_sma |
| 29 | + data_with_rsi = calculate_rsi(ohlcv_data, period=14) |
| 30 | + data_with_sma = calculate_sma(ohlcv_data, period=20) |
| 31 | + ``` |
| 32 | +
|
| 33 | +See Also: |
| 34 | + - `project_x_py.indicators.base` (abstract base classes/utilities) |
| 35 | + - `project_x_py.indicators.momentum` |
| 36 | + - `project_x_py.indicators.overlap` |
| 37 | + - `project_x_py.indicators.volume` |
| 38 | + - `project_x_py.indicators.volatility` |
| 39 | + - `project_x_py.indicators.order_block` |
| 40 | + - `project_x_py.indicators.fvg` |
| 41 | + - `project_x_py.indicators.waddah_attar` |
20 | 42 | """ |
21 | 43 |
|
22 | 44 | import polars as pl |
|
0 commit comments