1.0.3 ā¢ Published 1 year ago
fnnc v1.0.3
FNNC
All in one financial calculation functions
šš» Package Link
Functions List;
- RSI
- MACD
- MA
- EMA
- SMA
- STOCH
- Uptrend
- WilliamsPercentR
- StandardDeviation
- BollingerBands
- AveragePrice
- Volatility
- DMI
- ATR
How to use?
First import a function that you want from the package
import { EMA } from "fnnc";
And then use the function wherever you want.
let closingPrices = [ 12, 34, 56, 32, 54, 65];
let period = 12;
const exponentialMovingAverage = EMA(closingPrices, period);
console.log(exponentialMovingAverage) // 33.66031139827575