bollinger-bands
bollinger-bands copied to clipboard
Incremental calculation
Is it possible to incrementally feed one point to the function and get the next result?
Like this, https://github.com/anandanand84/technicalindicators#nextvalue
Im not going to introduce new features to this package because the performance of JavaScript is really bad especially for science mathematics.
I have migrated all my JavaScript projects for fintech to Python.
If you have interests, maybe you could check https://github.com/kaelzhang/stock-pandas, which is based on pandas
and numpy
To support incremental calculation, there must be a manager to maintain kline data which is obviously not the duty of this package.
pandas
is born to manage series data, and numpy
is born to do mathematical calculation with N-dimensional arrays.
They implement science calculation by visiting memory addresses directly which has much much much much higher performance than JavaScript.
Understandable.
Maybe @deviavir would be interested in implementing this, since he published an absolutely identical package on NPM?
Off-topic: it's ages ago, but iirc I published that to grab a new version to use in zenbot. If you look at the homepage on that NPM package you'll see that it all links back to this repo.