A javascript technical indicator written in typescript with pattern recognition right in the browser. Every indicator has a static method calculated which can be used to calculate the indicator without creating an object. Initialize the indicator with the available price value. Get results for initialized values. Use nextValue to get the next indicator values for further tick. This uses regular javascript numbers, so there can be rounding errors that are negligible for a technical indicators, you can set precision by using the below config. By default, there is no precision set. TechnicalIndicators depend on the canvas package, which requires some dependencies to be installed. Add tests for the indicator and make them pass. (It would be better if a sample of the stock charts excel is used for the test case.)
Features
- For nodejs version below 10 use 1.x versions of this library
- For browsers install using npm
- For ES5 support it is necessary to include the babel-polyfill and respective file browser.js
- Pattern detection is removed from version 3.0, if you need pattern detection use v2.0
- All indicators will be available in window object
- Many available indicators