anandanand84 / technicalindicators

A javascript technical indicators written in typescript with pattern recognition right in the browser
MIT License
2.18k stars 563 forks source link

Trouble using CCI #62

Closed jaggedsoft closed 7 years ago

jaggedsoft commented 7 years ago

Hi, thanks for this awesome library. You rock!

Having trouble getting CCI working in the latest release 10.0.16 const CCI = require('technicalindicators').CCI; TypeError: Cannot read property 'calculate' of undefined

const CCI = require('technicalindicators/lib/oscillators/CCI').CCI; (function (exports, require, module, filename, dirname) { import { Indicator, IndicatorInput } from '../indicator/indicator'; ^^^^^^ SyntaxError: Unexpected token import

Thanks in advance!!

anandanand84 commented 7 years ago

Fixed. It was not added in the index. It should work in latest release. use const CCI = require('technicalindicators').CCI or const cci = require('technicalindicators').cci