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

Average of high and low over a lookback period
Install
npm install @strong-roots-capital/ichimoku-moving-averageUse
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')
}