'use strict'; import chai from 'chai'; const assert = chai.assert; import _ from 'underscore'; import TRIX from '../../lib/indicator/triple-exponential-average.js'; describe('TRIX', function () { let data = [ 102.32, 105.54, 106.59, 107.39, 107.45, 109.08, 109.07, 109.10, 106.09, 106.72, 107.90, 106.50, 108.88, 109.82, 110.97, 110.96, 110.24, 109.70, 109.68, 112.16, ]; it('should find the lowest and highest price', () => { (async () => { let trix = new TRIX(); trix.setValues(data); let results = await trix.calculate(); console.log(results); })(); }); });