🦕deno-talib
Technical Analysis written in Typescript for Deno
Installation
deno install https://deno.land/x/talib/index.ts
# or force to upgrade
deno install -f https://deno.land/x/talib/index.ts
# or specific version
deno install -f https://deno.land/x/talib@0.0.9/index.tsBasic Usage
There are three ways you can use to get the indicator results.
1. calculate
Every indicator has a static method calculate which can be used to calculate the indicator without creating an object.
2. nextValue
nextValue method is used to get the next indicator value.
3. getResult
This a merge of calculate and nextValue. The usual use case would be
Initialize indicator with available price value
Get results for initialized values
Use nextValue to get next indicator values for further tick.
Note: Calling nextValue will not update
getResult()value.
Precision
This uses regular javascript numbers, so there can be rounding errors which are negligible for a technical indicators, you can set precision by using the below config. By default there is no precision set.
Bullish or Bearish Indicator
Search for all bullish or bearish using
Available Indicators
Other Utils
Chart Types
CandleStick Pattern
Reference
Deno Url
Documentation
Contribute
Create issues about anything you want to report, change of API's, or request for adding new indicators. You can also create pull request with new indicators.
Thanks
Original node package is from anandanand84. Thanks to https://github.com/anandanand84/technicalindicators
Last updated
