ta.js is a JavaScript module for dealing with financial technical analysis.
A react compatible version of this package is available here: https://github.com/Bitvested/ta.web
Use the package manager npm to install ta.js.
npm install ta.js --save
<script src="https://unpkg.com/ta.js/ta.min.js"></script>
const ta = require('ta.js');
https://github.com/Bitvested/ta.js/blob/main/EXAMPLES.md
- Simple Moving Average
- Smoothed Moving Average
- Weighted Moving Average
- Exponential Moving Average
- Hull Moving Average
- Least Squares Moving Average
- Volume Weighted Moving Average
- Volume Weighted Weighted Moving Average
- Wilder's Smoothing Moving Average
- Parabolic Weighted Moving Average
- Hyperbolic Weighted Moving Average
- Kaufman Adaptive Moving Average
- Custom Weighted Moving Average
- Moving Average Convergence / Divergence
- MACD Signal
- MACD Bars
- Relative Strength Index
- Wilder's Relative Strength Index
- True Strength Index
- Balance Of Power
- Force Index
- Accumulative Swing Index
- Alligator Indicator
- Williams %R
- Stochastics
- Fibonacci Retracement
- Bollinger Bandwidth
- Ichimoku Cloud
- Average True Range
- Aroon Up
- Aroon Down
- Money Flow Index
- Rate Of Change
- Coppock Curve
- Know Sure Thing
- On-Balance Volume
- Volume-Weighted Average Price
- Fractals
- Crossover
- Momentum
- HalfTrend
- ZigZag
- Parabolic SAR
- SuperTrend
- Elder Ray Index
- Historical Volatility
- Relative Vigor Index
- Relative Vigor Index Signal
- RSI Divergence
- Divergence
- Alligator Oscillator
- Chande Momentum Oscillator
- Chaikin Oscillator
- Aroon Oscillator
- Awesome Oscillator
- Accelerator Oscillator
- Fisher Transform
- Sum
- Standard Deviation
- Variance
- Normal CDF
- Inverse Normal Distribution
- Monte Carlo Simulation
- Percentile
- Correlation
- Covariance
- Percentage Difference
- Expected Return
- Abnormal Return
- Kelly Criterion
- Martingale
- Anti-Martingale
- Permutations
- Expected Trails
- Winratio
- Average Win
- Average Loss
- Return Positive
- Return Negative
- Drawdown
- Median
- Recent High
- Recent Low
- Median Absolute Deviation
- Average Absolute Deviation
- Standard Error
- Sum Squared Differences
- Logarithm
- Exponent
- Normalize
- Denormalize
- Normalize Pair
- Normalize From
- Standardize
- Z-Score
- P-Value
- K-means Clustering
- Mean Squared Error
- Cumulative
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.