# fnnc

> All in one financial calculation functions

Latest version **1.0.3** (published 2022-12-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install fnnc
pnpm add fnnc
yarn add fnnc
bun add fnnc
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2022-12-24 |
| First published | 2022-12-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 31.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Mustafa Onur Çelik |
| Maintainers | onurcelik |
| Keywords | financial, calculations, javascript, rsi, macd, stoch |

## Links

- npm: https://www.npmjs.com/package/fnnc
- Repository: https://github.com/onur-celik/fnnc-npm-package
- Homepage: https://github.com/onur-celik/fnnc-npm-package#readme
- Issues: https://github.com/onur-celik/fnnc-npm-package/issues
- npm.io page: https://npm.io/package/fnnc

## Recent versions

- 1.0.3 (latest) — 2022-12-24
- 1.0.2 — 2022-12-24
- 1.0.1 — 2022-12-24
- 1.0.0 — 2022-12-24

## README

# FNNC
## All in one financial calculation functions
👉🏻 [Package Link](https://www.npmjs.com/package/fnnc)

### Functions List;
- [RSI](https://medium.com/@onurcelik.dev/calculating-the-relative-strength-index-rsi-with-javascript-587976949d78)
- [MACD](https://medium.com/@onurcelik.dev/calculating-the-moving-average-convergence-divergence-macd-with-javascript-646fa2ad5b1)
- MA
- [EMA](https://medium.com/@onurcelik.dev/calculating-the-exponential-moving-average-ema-with-javascript-64db548aa74c)
- SMA
- [STOCH](https://medium.com/@onurcelik.dev/calculating-the-stochastic-oscillator-stoch-with-javascript-bd89a118e7dd)
- [Uptrend](https://medium.com/@onurcelik.dev/calculating-an-up-trend-with-javascript-f8c6fc698e6f)
- [WilliamsPercentR](https://medium.com/@onurcelik.dev/calculating-the-williams-r-with-javascript-51cf24da56a4)
- StandardDeviation
- [BollingerBands](https://medium.com/@onurcelik.dev/calculate-the-bollinger-bands-with-javascript-785c3d74034e)
- AveragePrice
- [Volatility](https://medium.com/@onurcelik.dev/calculating-the-volatility-of-a-stock-with-javascript-a355decbba21)
- [DMI](https://medium.com/@onurcelik.dev/calculating-dmi-directional-movement-index-with-javascript-b65548c6649a)
- [ATR](https://medium.com/@onurcelik.dev/calculating-atr-average-true-range-using-javascript-40e0fc919725)

### 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
```

---
_Source: https://npm.io/package/fnnc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
