@strong-roots-capital/ichimoku-moving-average
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

ichimoku-moving-average Build status npm version codecov

Average of high and low over a lookback period

Install

npm install @strong-roots-capital/ichimoku-moving-average

Use

import IchimokuMovingAverage from '@strong-roots-capital/ichimoku-moving-average'

const tenkan = new IchimokuMovingAverage(9)
const kijun = new IchimokuMovingAverage(26)

for (const value of getValues()) {
    tenkan.push(value)
    kijun.push(value)
    console.log(tenkan.value() > kijun.value() ? 'uptrend' : 'downtrend')
}

Readme

Keywords

Package Sidebar

Install

npm i @strong-roots-capital/ichimoku-moving-average

Weekly Downloads

1

Version

2.0.1

License

ISC

Unpacked Size

6.43 kB

Total Files

4

Last publish

Collaborators

  • amchelle
  • hamroctopus