A Julia wrapper for TA-Lib (Technical Analysis Library) that provides a comprehensive collection of technical analysis indicators and pattern recognition tools.
- Comprehensive implementation of TA-Lib functions
- DataFrame-based interface
- Automatic column naming based on function parameters
- Support for all major technical analysis categories:
- Overlap Studies (Moving Averages, Bollinger Bands, etc.)
- Momentum Indicators (RSI, MACD, Stochastic, etc.)
- Volume Indicators (OBV, etc.)
- Volatility Indicators (ATR, etc.)
- Price Transform (Average/Median Price, etc.)
- Cycle Indicators (Hilbert Transform)
- Pattern Recognition (Candlestick Patterns)
- Statistic Functions (Linear Regression, Standard Deviation, etc.)
using Pkg
Pkg.add("TechnicalAnalysis")
Note: This package requires TA-Lib to be installed on your system. Installation instructions for TA-Lib can be found here.
using TechnicalAnalysis
using DataFrames
# Create or load your data
df = DataFrame(
open = [...],
high = [...],
low = [...],
close = [...],
volume = [...]
)
# Calculate indicators
SMA(df, period=20) # Simple Moving Average
RSI(df, period=14) # Relative Strength Index
BBANDS(df, period=20) # Bollinger Bands
# Results are added as new columns to the DataFrame (i.e. treat every function as a ! function)
- HMA (Hull Moving Average)
- BBANDS (Bollinger Bands)
- DEMA (Double Exponential Moving Average)
- EMA (Exponential Moving Average)
- MAMA (MESA Adaptive Moving Average)
- MAVP (Moving Average with Variable Period)
- And many more...
- ADX (Average Directional Movement Index)
- MACD (Moving Average Convergence/Divergence)
- RSI (Relative Strength Index)
- STOCH (Stochastic)
- And many more...
- AD (Chaikin A/D Line)
- ADOSC (Chaikin A/D Oscillator)
- OBV (On Balance Volume)
- ATR (Average True Range)
- NATR (Normalized Average True Range)
- TRANGE (True Range)
- Various candlestick patterns (Doji, Hammer, Engulfing, etc.)
- Price Transforms
- Cycle Indicators
- Statistical Functions
Contributions are welcome! Please feel free to submit a Pull Request.