Skip to content

Latest commit

 

History

History
28 lines (10 loc) · 458 Bytes

README.md

File metadata and controls

28 lines (10 loc) · 458 Bytes

READEME

This is a package that return different indicators for your trading bot strategies.

Usage

const Rsi = require('@madeindreams/ai-for-tradeBot')

const rsiInstance = new Rsi()

Once the Rsi instance initiated, feed it with every close price, after 14 prices, it will start returning the rsi index.

let rsi = rsiInstance.rsi(price)

will return null until it 15 prices are received.

To run a test

npm run test