Closed maximusign closed 4 years ago
have you tried this?
HA = new HeikinAshi({period : 2, open: HAInput.open, high: HAInput.high, low: HAInput.low, close: HAInput.close});
I think it takes open, high, low, close
values by themselves instead of in a values
object
That worked! Thanks for the help @jaggedsoft!
Hi there,
I'm trying to implement the Heikin Ashi chart type, but getting an "Cannot read property 'forEach' of undefined" error. I'm sure it's something I'm doing, and would appreciate any help!
Is giving me this error.
$ node test.js /Users/ep/Documents/ft/Node/Vertical/node_modules/technicalindicators/dist/index.js:2616 input.low.forEach((tick, index) => { ^
TypeError: Cannot read property 'forEach' of undefined at new HeikinAshi (/Users/ep/Documents/ft/Node/Vertical/node_modules/technicalindicators/dist/index.js:2616:19)