You can install the library via npm:
npm install financial-indicator
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);
import { ADX } from "financial-indicator";
const result = ADX.calculate({
adxPeriod: 10,
diPeriod: 14,
close: closes,
low: lows,
high: highs,
});
console.log(result);
You can find the detailed documentation here.
Contributions are welcome! Please check the Contribution Guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.