JSPM

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

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q20042F
  • License ISC

Average of high and low over a lookback period

Package Exports

  • @strong-roots-capital/ichimoku-moving-average

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@strong-roots-capital/ichimoku-moving-average) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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')
}