Closed snoop244 closed 4 years ago
What is windowLength
?
Can you post a complete example? (i.e. define all variables)
Alternatively, log to console all your inputs, options, and outputs, then post the results here.
By the way, KVO will return an output array that is 1 shorter than the input array. It doesn't matter what your options are. You can see that math at: https://tulipindicators.org/kvo
Ok. That would explain it. I thought KVO would be a single value based those input values. I'll have a look at the math. Thanks for your help.
I'm new to all of this, so apologies if it is a stupid question.
I used your example to get SMA working. I feed it a rolling window of 7 values on each run and get a singe value back. It is the accurate SMA and behaves as expected.
With KVO I feed it the same rolling window object, but with 54 values, and run exactly the same code (but provide the proper parameters). Instead of a single value, I get 54 values back - none of which match the KVO that IBKR provides. Before I try to address the Tulip vs IBKR problem, I'm trying to figure out why I'm not just getting a single KVO back. Here is my code: