Bitvested/ta.js

Function Return NaN regardless of values?

Closed this issue · 2 comments

There was an errors in

SMA

SMMA

those return NaN to me.

changing
for(q in pl) average += pl[q];

to
for(q in pl) average += Number(pl[q]);

is worked.

Are you inputting your values as strings?

I think so. It is working good now.