Installation

You can install the library via npm:

npm install financial-indicator

Usage

Here's how you can use the library in your projects:

import { EMA } from "financial-indicator";

// Example usage of SomeFunction
const result = EMA.calculate({ period: 14, values: closes });
console.log(result);

Example

import { ADX } from "financial-indicator";

const result = ADX.calculate({
  adxPeriod: 10,
  diPeriod: 14,
  close: closes,
  low: lows,
  high: highs,
});
console.log(result);

Documentation

You can find the detailed documentation here.

Contributing

Contributions are welcome! Please check the Contribution Guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.