talib.js
talib.js copied to clipboard
Cant interpret output
Hi,
When I use a TA function, it doesn't return outBegIdx and outNBElement info, so I can't synchronize output with the timeline.
For example a simple MA function, assume these are the inputs inReal : [1,2,3,4,5,6,7,9,10] (10 items) timePeriod: 2
expected output should be:
output = [1.5 , 2.5 , 3.5 , 4.5 , 5.5 , 6.5 , 7.5 , 8.5 , 9.5 ] (9 items)
or
output = [0 , 1.5 , 2.5 , 3.5 , 4.5 , 5.5 , 6.5 , 7.5 , 8.5 , 9.5 ] (10 items) outBegIdx = 1 outNBElement = 9
but the functions returns: output = [1.5 , 2.5 , 3.5 , 4.5 , 5.5 , 6.5 , 7.5 , 8.5 , 9.5 , 5] (10 items)
only with that output array I cant determine which 9 items are the real output so I cant synchronize output with the timeline
@ripref Sorry for late reply. Thank you for spotting this issue. I'll look into it and get back to you.