optional, a string that specifies the location of wasm binary file
A promise that resolves to the emscripten runtime Module
object. See https://emscripten.org/docs/api_reference/module.html.
Average Deviation
Time Period Number of period. (Integer, min: 2, max: 100000)
Average Price
Median Price
Typical Price
Weighted Close Price
Beta
Time Period Number of period. (Integer, min: 1, max: 100000)
Pearson's Correlation Coefficient (r)
Time Period Number of period. (Integer, min: 1, max: 100000)
Linear Regression
Time Period Number of period. (Integer, min: 2, max: 100000)
Linear Regression Angle
Time Period Number of period. (Integer, min: 2, max: 100000)
Linear Regression Intercept
Time Period Number of period. (Integer, min: 2, max: 100000)
Linear Regression Slope
Time Period Number of period. (Integer, min: 2, max: 100000)
Standard Deviation
Deviations Nb of deviations. (Double, min: -3e+37, max: 3e+37)
Time Period Number of period. (Integer, min: 2, max: 100000)
Time Series Forecast
Time Period Number of period. (Integer, min: 2, max: 100000)
Variance
Deviations Nb of deviations. (Double, min: -3e+37, max: 3e+37)
Time Period Number of period. (Integer, min: 1, max: 100000)
Average True Range
Time Period Number of period. (Integer, min: 1, max: 100000)
Normalized Average True Range
Time Period Number of period. (Integer, min: 1, max: 100000)
True Range
Chaikin A/D Line
Chaikin A/D Oscillator
Fast Period Number of period for the fast MA. (Integer, min: 2, max: 100000)
Slow Period Number of period for the slow MA. (Integer, min: 2, max: 100000)
On Balance Volume
Average Directional Movement Index
Time Period Number of period. (Integer, min: 2, max: 100000)
Average Directional Movement Index Rating
Time Period Number of period. (Integer, min: 2, max: 100000)
Absolute Price Oscillator
MA Type Type of Moving Average. (MAType)
Fast Period Number of period for the fast MA. (Integer, min: 2, max: 100000)
Slow Period Number of period for the slow MA. (Integer, min: 2, max: 100000)
Aroon
Time Period Number of period. (Integer, min: 2, max: 100000)
Aroon Oscillator
Time Period Number of period. (Integer, min: 2, max: 100000)
Balance Of Power
Commodity Channel Index
Time Period Number of period. (Integer, min: 2, max: 100000)
Chande Momentum Oscillator
Time Period Number of period. (Integer, min: 2, max: 100000)
Directional Movement Index
Time Period Number of period. (Integer, min: 2, max: 100000)
Intraday Momentum Index
Time Period Number of period. (Integer, min: 2, max: 100000)
Moving Average Convergence/Divergence
Fast Period Number of period for the fast MA. (Integer, min: 2, max: 100000)
Signal Period Smoothing for the signal line (nb of period). (Integer, min: 1, max: 100000)
Slow Period Number of period for the slow MA. (Integer, min: 2, max: 100000)
MACD with controllable MA type
Fast MA Type of Moving Average for fast MA. (MAType)
Fast Period Number of period for the fast MA. (Integer, min: 2, max: 100000)
Signal MA Type of Moving Average for signal line. (MAType)
Signal Period Smoothing for the signal line (nb of period). (Integer, min: 1, max: 100000)
Slow MA Type of Moving Average for slow MA. (MAType)
Slow Period Number of period for the slow MA. (Integer, min: 2, max: 100000)
Moving Average Convergence/Divergence Fix 12/26
Signal Period Smoothing for the signal line (nb of period). (Integer, min: 1, max: 100000)
Money Flow Index
Time Period Number of period. (Integer, min: 2, max: 100000)
Minus Directional Indicator
Time Period Number of period. (Integer, min: 1, max: 100000)
Minus Directional Movement
Time Period Number of period. (Integer, min: 1, max: 100000)
Momentum
Time Period Number of period. (Integer, min: 1, max: 100000)
Plus Directional Indicator
Time Period Number of period. (Integer, min: 1, max: 100000)
Plus Directional Movement
Time Period Number of period. (Integer, min: 1, max: 100000)
Percentage Price Oscillator
MA Type Type of Moving Average. (MAType)
Fast Period Number of period for the fast MA. (Integer, min: 2, max: 100000)
Slow Period Number of period for the slow MA. (Integer, min: 2, max: 100000)
Rate of change : ((price/prevPrice)-1)*100
Time Period Number of period. (Integer, min: 1, max: 100000)
Rate of change Percentage: (price-prevPrice)/prevPrice
Time Period Number of period. (Integer, min: 1, max: 100000)
Rate of change ratio: (price/prevPrice)
Time Period Number of period. (Integer, min: 1, max: 100000)
Rate of change ratio 100 scale: (price/prevPrice)*100
Time Period Number of period. (Integer, min: 1, max: 100000)
Relative Strength Index
Time Period Number of period. (Integer, min: 2, max: 100000)
Stochastic
Fast-K Period Time period for building the Fast-K line. (Integer, min: 1, max: 100000)
Slow-D MA Type of Moving Average for Slow-D. (MAType)
Slow-D Period Smoothing for making the Slow-D line. (Integer, min: 1, max: 100000)
Slow-K MA Type of Moving Average for Slow-K. (MAType)
Slow-K Period Smoothing for making the Slow-K line. Usually set to 3. (Integer, min: 1, max: 100000)
Stochastic Fast
Fast-D MA Type of Moving Average for Fast-D. (MAType)
Fast-D Period Smoothing for making the Fast-D line. Usually set to 3. (Integer, min: 1, max: 100000)
Fast-K Period Time period for building the Fast-K line. (Integer, min: 1, max: 100000)
Stochastic Relative Strength Index
Fast-D MA Type of Moving Average for Fast-D. (MAType)
Fast-D Period Smoothing for making the Fast-D line. Usually set to 3. (Integer, min: 1, max: 100000)
Fast-K Period Time period for building the Fast-K line. (Integer, min: 1, max: 100000)
Time Period Number of period. (Integer, min: 2, max: 100000)
1-day Rate-Of-Change (ROC) of a Triple Smooth EMA
Time Period Number of period. (Integer, min: 1, max: 100000)
Ultimate Oscillator
First Period Number of bars for 1st period.. (Integer, min: 1, max: 100000)
Second Period Number of bars fro 2nd period. (Integer, min: 1, max: 100000)
Third Period Number of bars for 3rd period. (Integer, min: 1, max: 100000)
Williams' %R
Time Period Number of period. (Integer, min: 2, max: 100000)
Hilbert Transform - Dominant Cycle Period
Hilbert Transform - Dominant Cycle Phase
Hilbert Transform - Phasor Components
Hilbert Transform - SineWave
Hilbert Transform - Trend vs Cycle Mode
Acceleration Bands
Time Period Number of period. (Integer, min: 2, max: 100000)
Bollinger Bands
MA Type Type of Moving Average. (MAType)
Deviations down Deviation multiplier for lower band. (Double, min: -3e+37, max: 3e+37)
Deviations up Deviation multiplier for upper band. (Double, min: -3e+37, max: 3e+37)
Time Period Number of period. (Integer, min: 2, max: 100000)
Double Exponential Moving Average
Time Period Number of period. (Integer, min: 2, max: 100000)
Exponential Moving Average
Time Period Number of period. (Integer, min: 2, max: 100000)
Hilbert Transform - Instantaneous Trendline
Kaufman Adaptive Moving Average
Time Period Number of period. (Integer, min: 2, max: 100000)
Moving average
MA Type Type of Moving Average. (MAType)
Time Period Number of period. (Integer, min: 1, max: 100000)
MESA Adaptive Moving Average
Fast Limit Upper limit use in the adaptive algorithm. (Double, min: 0.01, max: 0.99)
Slow Limit Lower limit use in the adaptive algorithm. (Double, min: 0.01, max: 0.99)
Moving average with variable period
MA Type Type of Moving Average. (MAType)
Maximum Period Value higher than maximum will be changed to Maximum period. (Integer, min: 2, max: 100000)
Minimum Period Value less than minimum will be changed to Minimum period. (Integer, min: 2, max: 100000)
MidPoint over period
Time Period Number of period. (Integer, min: 2, max: 100000)
Midpoint Price over period
Time Period Number of period. (Integer, min: 2, max: 100000)
Parabolic SAR
Acceleration Factor Acceleration Factor used up to the Maximum value. (Double, min: 0, max: 3e+37)
AF Maximum Acceleration Factor Maximum value. (Double, min: 0, max: 3e+37)
Parabolic SAR - Extended
AF Init Long Acceleration Factor initial value for the Long direction. (Double, min: 0, max: 3e+37)
AF Init Short Acceleration Factor initial value for the Short direction. (Double, min: 0, max: 3e+37)
AF Long Acceleration Factor for the Long direction. (Double, min: 0, max: 3e+37)
AF Max Long Acceleration Factor maximum value for the Long direction. (Double, min: 0, max: 3e+37)
AF Max Short Acceleration Factor maximum value for the Short direction. (Double, min: 0, max: 3e+37)
AF Short Acceleration Factor for the Short direction. (Double, min: 0, max: 3e+37)
Offset on Reverse Percent offset added/removed to initial stop on short/long reversal. (Double, min: 0, max: 3e+37)
Start Value Start value and direction. 0 for Auto, >0 for Long, <0 for Short. (Double, min: -3e+37, max: 3e+37)
Simple Moving Average
Time Period Number of period. (Integer, min: 2, max: 100000)
Triple Exponential Moving Average (T3)
Volume Factor Volume Factor. (Double, min: 0, max: 1)
Time Period Number of period. (Integer, min: 2, max: 100000)
Triple Exponential Moving Average
Time Period Number of period. (Integer, min: 2, max: 100000)
Triangular Moving Average
Time Period Number of period. (Integer, min: 2, max: 100000)
Weighted Moving Average
Time Period Number of period. (Integer, min: 2, max: 100000)
Two Crows
Three Black Crows
Three Inside Up/Down
Three-Line Strike
Three Outside Up/Down
Three Stars In The South
Three Advancing White Soldiers
Abandoned Baby
Penetration Percentage of penetration of a candle within another candle. (Double, min: 0, max: 3e+37)
Advance Block
Belt-hold
Breakaway
Closing Marubozu
Concealing Baby Swallow
Counterattack
Dark Cloud Cover
Penetration Percentage of penetration of a candle within another candle. (Double, min: 0, max: 3e+37)
Doji
Doji Star
Dragonfly Doji
Engulfing Pattern
Evening Doji Star
Penetration Percentage of penetration of a candle within another candle. (Double, min: 0, max: 3e+37)
Evening Star
Penetration Percentage of penetration of a candle within another candle. (Double, min: 0, max: 3e+37)
Up/Down-gap side-by-side white lines
Gravestone Doji
Hammer
Hanging Man
Harami Pattern
Harami Cross Pattern
High-Wave Candle
Hikkake Pattern
Modified Hikkake Pattern
Homing Pigeon
Identical Three Crows
In-Neck Pattern
Inverted Hammer
Kicking
Kicking - bull/bear determined by the longer marubozu
Ladder Bottom
Long Legged Doji
Long Line Candle
Marubozu
Matching Low
Mat Hold
Penetration Percentage of penetration of a candle within another candle. (Double, min: 0, max: 3e+37)
Morning Doji Star
Penetration Percentage of penetration of a candle within another candle. (Double, min: 0, max: 3e+37)
Morning Star
Penetration Percentage of penetration of a candle within another candle. (Double, min: 0, max: 3e+37)
On-Neck Pattern
Piercing Pattern
Rickshaw Man
Rising/Falling Three Methods
Separating Lines
Shooting Star
Short Line Candle
Spinning Top
Stalled Pattern
Stick Sandwich
Takuri (Dragonfly Doji with very long lower shadow)
Tasuki Gap
Thrusting Pattern
Tristar Pattern
Unique 3 River
Upside Gap Two Crows
Upside/Downside Gap Three Methods
Vector Arithmetic Add
Vector Arithmetic Div
Highest value over a specified period
Time Period Number of period. (Integer, min: 2, max: 100000)
Index of highest value over a specified period
Time Period Number of period. (Integer, min: 2, max: 100000)
Lowest value over a specified period
Time Period Number of period. (Integer, min: 2, max: 100000)
Index of lowest value over a specified period
Time Period Number of period. (Integer, min: 2, max: 100000)
Lowest and highest values over a specified period
Time Period Number of period. (Integer, min: 2, max: 100000)
Indexes of lowest and highest values over a specified period
Time Period Number of period. (Integer, min: 2, max: 100000)
Vector Arithmetic Mult
Vector Arithmetic Substraction
Summation
Time Period Number of period. (Integer, min: 2, max: 100000)
Vector Trigonometric ACos
Vector Trigonometric ASin
Vector Trigonometric ATan
Vector Ceil
Vector Trigonometric Cos
Vector Trigonometric Cosh
Vector Arithmetic Exp
Vector Floor
Vector Log Natural
Vector Log10
Vector Trigonometric Sin
Vector Trigonometric Sinh
Vector Square Root
Vector Trigonometric Tan
Vector Trigonometric Tanh
TAFuncs object is a collection of all functions. It is very easy to call functions dynamically without additional import statements.
Initialize wasm module
To use the lib, you must first call
init()
to load and compile the wasm binary file in the JS runtime. Because of the async nature of wasm binary loading/compilation process, you must wait until the compilation complete before calling any functions.init()
is idempotent, that means calling it multiple times will NOT re-initialize or create new instance of the wasm module.Usage
Normally you would just want to be notified when ready:
import { init, EMA } from 'talib-web'; await init(); EMA(...);
In case you want to directly interact with the emscripten wasm Module API, just obtain the
Module
object from the promise.const Module = await init() Module.ccall(...) Module._malloc(...) Module.HEAPF64