Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Enumerations

Initialization Functions

Price Transform Functions

Statistic Functions Functions

Volatility Indicators Functions

Volume Indicators Functions

Momentum Indicators Functions

Cycle Indicators Functions

Overlap Studies Functions

Pattern Recognition Functions

Math Operators Functions

Math Transform Functions

Object literals

Initialization Functions

init

  • init(wasmBinaryFilePath?: string): Promise<any>
  • 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
    

    Parameters

    • Optional wasmBinaryFilePath: string

      optional, a string that specifies the location of wasm binary file

    Returns Promise<any>

    A promise that resolves to the emscripten runtime Module object. See https://emscripten.org/docs/api_reference/module.html.

Price Transform Functions

AVGDEV

  • AVGDEV(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Average Deviation

    alias

    avgDev

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

AVGPRICE

  • AVGPRICE(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Average Price

    alias

    avgPrice

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

MEDPRICE

  • MEDPRICE(params: { high: number[]; low: number[] }): { output: number[] }
  • Median Price

    alias

    medPrice

    Parameters

    • params: { high: number[]; low: number[] }
      • high: number[]
      • low: number[]

    Returns { output: number[] }

    • output: number[]

TYPPRICE

  • TYPPRICE(params: { close: number[]; high: number[]; low: number[] }): { output: number[] }
  • Typical Price

    alias

    typPrice

    Parameters

    • params: { close: number[]; high: number[]; low: number[] }
      • close: number[]
      • high: number[]
      • low: number[]

    Returns { output: number[] }

    • output: number[]

WCLPRICE

  • WCLPRICE(params: { close: number[]; high: number[]; low: number[] }): { output: number[] }
  • Weighted Close Price

    alias

    wclPrice

    Parameters

    • params: { close: number[]; high: number[]; low: number[] }
      • close: number[]
      • high: number[]
      • low: number[]

    Returns { output: number[] }

    • output: number[]

Statistic Functions Functions

BETA

  • BETA(params: { inReal0: number[]; inReal1: number[]; timePeriod?: number }): { output: number[] }
  • Beta

    alias

    beta

    Parameters

    • params: { inReal0: number[]; inReal1: number[]; timePeriod?: number }
      • inReal0: number[]
      • inReal1: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 1, max: 100000)

        defaultvalue

        5

    Returns { output: number[] }

    • output: number[]

CORREL

  • CORREL(params: { inReal0: number[]; inReal1: number[]; timePeriod?: number }): { output: number[] }
  • Pearson's Correlation Coefficient (r)

    alias

    correl

    Parameters

    • params: { inReal0: number[]; inReal1: number[]; timePeriod?: number }
      • inReal0: number[]
      • inReal1: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 1, max: 100000)

        defaultvalue

        30

    Returns { output: number[] }

    • output: number[]

LINEARREG

  • LINEARREG(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Linear Regression

    alias

    linearReg

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

LINEARREG_ANGLE

  • LINEARREG_ANGLE(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Linear Regression Angle

    alias

    linearRegAngle

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

LINEARREG_INTERCEPT

  • LINEARREG_INTERCEPT(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Linear Regression Intercept

    alias

    linearRegIntercept

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

LINEARREG_SLOPE

  • LINEARREG_SLOPE(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Linear Regression Slope

    alias

    linearRegSlope

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

STDDEV

  • STDDEV(params: { inReal: number[]; nbDev?: number; timePeriod?: number }): { output: number[] }
  • Standard Deviation

    alias

    stdDev

    Parameters

    • params: { inReal: number[]; nbDev?: number; timePeriod?: number }
      • inReal: number[]
      • Optional nbDev?: number

        Deviations Nb of deviations. (Double, min: -3e+37, max: 3e+37)

        defaultvalue

        1

      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        5

    Returns { output: number[] }

    • output: number[]

TSF

  • TSF(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Time Series Forecast

    alias

    tsf

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

VAR

  • VAR(params: { inReal: number[]; nbDev?: number; timePeriod?: number }): { output: number[] }
  • Variance

    alias

    variance

    Parameters

    • params: { inReal: number[]; nbDev?: number; timePeriod?: number }
      • inReal: number[]
      • Optional nbDev?: number

        Deviations Nb of deviations. (Double, min: -3e+37, max: 3e+37)

        defaultvalue

        1

      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 1, max: 100000)

        defaultvalue

        5

    Returns { output: number[] }

    • output: number[]

Volatility Indicators Functions

ATR

  • ATR(params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }): { output: number[] }
  • Average True Range

    alias

    atr

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 1, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

NATR

  • NATR(params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }): { output: number[] }
  • Normalized Average True Range

    alias

    natr

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 1, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

TRANGE

  • TRANGE(params: { close: number[]; high: number[]; low: number[] }): { output: number[] }
  • True Range

    alias

    trueRange

    Parameters

    • params: { close: number[]; high: number[]; low: number[] }
      • close: number[]
      • high: number[]
      • low: number[]

    Returns { output: number[] }

    • output: number[]

Volume Indicators Functions

AD

  • AD(params: { close: number[]; high: number[]; low: number[]; volume: number[] }): { output: number[] }
  • Chaikin A/D Line

    alias

    ad

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; volume: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • volume: number[]

    Returns { output: number[] }

    • output: number[]

ADOSC

  • ADOSC(params: { close: number[]; fastPeriod?: number; high: number[]; low: number[]; slowPeriod?: number; volume: number[] }): { output: number[] }
  • Chaikin A/D Oscillator

    alias

    adOsc

    Parameters

    • params: { close: number[]; fastPeriod?: number; high: number[]; low: number[]; slowPeriod?: number; volume: number[] }
      • close: number[]
      • Optional fastPeriod?: number

        Fast Period Number of period for the fast MA. (Integer, min: 2, max: 100000)

        defaultvalue

        3

      • high: number[]
      • low: number[]
      • Optional slowPeriod?: number

        Slow Period Number of period for the slow MA. (Integer, min: 2, max: 100000)

        defaultvalue

        10

      • volume: number[]

    Returns { output: number[] }

    • output: number[]

OBV

  • OBV(params: { inReal: number[]; volume: number[] }): { output: number[] }
  • On Balance Volume

    alias

    obv

    Parameters

    • params: { inReal: number[]; volume: number[] }
      • inReal: number[]
      • volume: number[]

    Returns { output: number[] }

    • output: number[]

Momentum Indicators Functions

ADX

  • ADX(params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }): { output: number[] }
  • Average Directional Movement Index

    alias

    adx

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

ADXR

  • ADXR(params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }): { output: number[] }
  • Average Directional Movement Index Rating

    alias

    adxr

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

APO

  • APO(params: { MAType?: MAType; fastPeriod?: number; inReal: number[]; slowPeriod?: number }): { output: number[] }
  • Absolute Price Oscillator

    alias

    apo

    Parameters

    • params: { MAType?: MAType; fastPeriod?: number; inReal: number[]; slowPeriod?: number }
      • Optional MAType?: MAType

        MA Type Type of Moving Average. (MAType)

        defaultvalue

        MAType.SMA=0

      • Optional fastPeriod?: number

        Fast Period Number of period for the fast MA. (Integer, min: 2, max: 100000)

        defaultvalue

        12

      • inReal: number[]
      • Optional slowPeriod?: number

        Slow Period Number of period for the slow MA. (Integer, min: 2, max: 100000)

        defaultvalue

        26

    Returns { output: number[] }

    • output: number[]

AROON

  • AROON(params: { high: number[]; low: number[]; timePeriod?: number }): { aroonDown: number[]; aroonUp: number[] }
  • Aroon

    alias

    aroon

    Parameters

    • params: { high: number[]; low: number[]; timePeriod?: number }
      • high: number[]
      • low: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { aroonDown: number[]; aroonUp: number[] }

    • aroonDown: number[]
    • aroonUp: number[]

AROONOSC

  • AROONOSC(params: { high: number[]; low: number[]; timePeriod?: number }): { output: number[] }
  • Aroon Oscillator

    alias

    aroonOsc

    Parameters

    • params: { high: number[]; low: number[]; timePeriod?: number }
      • high: number[]
      • low: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

BOP

  • BOP(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Balance Of Power

    alias

    bop

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CCI

  • CCI(params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }): { output: number[] }
  • Commodity Channel Index

    alias

    cci

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

CMO

  • CMO(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Chande Momentum Oscillator

    alias

    cmo

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

DX

  • DX(params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }): { output: number[] }
  • Directional Movement Index

    alias

    dx

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

IMI

  • IMI(params: { close: number[]; open: number[]; timePeriod?: number }): { output: number[] }
  • Intraday Momentum Index

    alias

    imi

    Parameters

    • params: { close: number[]; open: number[]; timePeriod?: number }
      • close: number[]
      • open: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

MACD

  • MACD(params: { fastPeriod?: number; inReal: number[]; signalPeriod?: number; slowPeriod?: number }): { MACD: number[]; MACDHist: number[]; MACDSignal: number[] }
  • Moving Average Convergence/Divergence

    alias

    macd

    Parameters

    • params: { fastPeriod?: number; inReal: number[]; signalPeriod?: number; slowPeriod?: number }
      • Optional fastPeriod?: number

        Fast Period Number of period for the fast MA. (Integer, min: 2, max: 100000)

        defaultvalue

        12

      • inReal: number[]
      • Optional signalPeriod?: number

        Signal Period Smoothing for the signal line (nb of period). (Integer, min: 1, max: 100000)

        defaultvalue

        9

      • Optional slowPeriod?: number

        Slow Period Number of period for the slow MA. (Integer, min: 2, max: 100000)

        defaultvalue

        26

    Returns { MACD: number[]; MACDHist: number[]; MACDSignal: number[] }

    • MACD: number[]
    • MACDHist: number[]
    • MACDSignal: number[]

MACDEXT

  • MACDEXT(params: { fastMAType?: MAType; fastPeriod?: number; inReal: number[]; signalMAType?: MAType; signalPeriod?: number; slowMAType?: MAType; slowPeriod?: number }): { MACD: number[]; MACDHist: number[]; MACDSignal: number[] }
  • MACD with controllable MA type

    alias

    macdExt

    Parameters

    • params: { fastMAType?: MAType; fastPeriod?: number; inReal: number[]; signalMAType?: MAType; signalPeriod?: number; slowMAType?: MAType; slowPeriod?: number }
      • Optional fastMAType?: MAType

        Fast MA Type of Moving Average for fast MA. (MAType)

        defaultvalue

        MAType.SMA=0

      • Optional fastPeriod?: number

        Fast Period Number of period for the fast MA. (Integer, min: 2, max: 100000)

        defaultvalue

        12

      • inReal: number[]
      • Optional signalMAType?: MAType

        Signal MA Type of Moving Average for signal line. (MAType)

        defaultvalue

        MAType.SMA=0

      • Optional signalPeriod?: number

        Signal Period Smoothing for the signal line (nb of period). (Integer, min: 1, max: 100000)

        defaultvalue

        9

      • Optional slowMAType?: MAType

        Slow MA Type of Moving Average for slow MA. (MAType)

        defaultvalue

        MAType.SMA=0

      • Optional slowPeriod?: number

        Slow Period Number of period for the slow MA. (Integer, min: 2, max: 100000)

        defaultvalue

        26

    Returns { MACD: number[]; MACDHist: number[]; MACDSignal: number[] }

    • MACD: number[]
    • MACDHist: number[]
    • MACDSignal: number[]

MACDFIX

  • MACDFIX(params: { inReal: number[]; signalPeriod?: number }): { MACD: number[]; MACDHist: number[]; MACDSignal: number[] }
  • Moving Average Convergence/Divergence Fix 12/26

    alias

    macdFix

    Parameters

    • params: { inReal: number[]; signalPeriod?: number }
      • inReal: number[]
      • Optional signalPeriod?: number

        Signal Period Smoothing for the signal line (nb of period). (Integer, min: 1, max: 100000)

        defaultvalue

        9

    Returns { MACD: number[]; MACDHist: number[]; MACDSignal: number[] }

    • MACD: number[]
    • MACDHist: number[]
    • MACDSignal: number[]

MFI

  • MFI(params: { close: number[]; high: number[]; low: number[]; timePeriod?: number; volume: number[] }): { output: number[] }
  • Money Flow Index

    alias

    mfi

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; timePeriod?: number; volume: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

      • volume: number[]

    Returns { output: number[] }

    • output: number[]

MINUS_DI

  • MINUS_DI(params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }): { output: number[] }
  • Minus Directional Indicator

    alias

    minusDI

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 1, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

MINUS_DM

  • MINUS_DM(params: { high: number[]; low: number[]; timePeriod?: number }): { output: number[] }
  • Minus Directional Movement

    alias

    minusDM

    Parameters

    • params: { high: number[]; low: number[]; timePeriod?: number }
      • high: number[]
      • low: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 1, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

MOM

  • MOM(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Momentum

    alias

    mom

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 1, max: 100000)

        defaultvalue

        10

    Returns { output: number[] }

    • output: number[]

PLUS_DI

  • PLUS_DI(params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }): { output: number[] }
  • Plus Directional Indicator

    alias

    plusDI

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 1, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

PLUS_DM

  • PLUS_DM(params: { high: number[]; low: number[]; timePeriod?: number }): { output: number[] }
  • Plus Directional Movement

    alias

    plusDM

    Parameters

    • params: { high: number[]; low: number[]; timePeriod?: number }
      • high: number[]
      • low: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 1, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

PPO

  • PPO(params: { MAType?: MAType; fastPeriod?: number; inReal: number[]; slowPeriod?: number }): { output: number[] }
  • Percentage Price Oscillator

    alias

    ppo

    Parameters

    • params: { MAType?: MAType; fastPeriod?: number; inReal: number[]; slowPeriod?: number }
      • Optional MAType?: MAType

        MA Type Type of Moving Average. (MAType)

        defaultvalue

        MAType.SMA=0

      • Optional fastPeriod?: number

        Fast Period Number of period for the fast MA. (Integer, min: 2, max: 100000)

        defaultvalue

        12

      • inReal: number[]
      • Optional slowPeriod?: number

        Slow Period Number of period for the slow MA. (Integer, min: 2, max: 100000)

        defaultvalue

        26

    Returns { output: number[] }

    • output: number[]

ROC

  • ROC(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Rate of change : ((price/prevPrice)-1)*100

    alias

    roc

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 1, max: 100000)

        defaultvalue

        10

    Returns { output: number[] }

    • output: number[]

ROCP

  • ROCP(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Rate of change Percentage: (price-prevPrice)/prevPrice

    alias

    rocP

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 1, max: 100000)

        defaultvalue

        10

    Returns { output: number[] }

    • output: number[]

ROCR

  • ROCR(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Rate of change ratio: (price/prevPrice)

    alias

    rocR

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 1, max: 100000)

        defaultvalue

        10

    Returns { output: number[] }

    • output: number[]

ROCR100

  • ROCR100(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Rate of change ratio 100 scale: (price/prevPrice)*100

    alias

    rocR100

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 1, max: 100000)

        defaultvalue

        10

    Returns { output: number[] }

    • output: number[]

RSI

  • RSI(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Relative Strength Index

    alias

    rsi

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

STOCH

  • STOCH(params: { close: number[]; fastK_Period?: number; high: number[]; low: number[]; slowD_MAType?: MAType; slowD_Period?: number; slowK_MAType?: MAType; slowK_Period?: number }): { slowD: number[]; slowK: number[] }
  • Stochastic

    alias

    stoch

    Parameters

    • params: { close: number[]; fastK_Period?: number; high: number[]; low: number[]; slowD_MAType?: MAType; slowD_Period?: number; slowK_MAType?: MAType; slowK_Period?: number }
      • close: number[]
      • Optional fastK_Period?: number

        Fast-K Period Time period for building the Fast-K line. (Integer, min: 1, max: 100000)

        defaultvalue

        5

      • high: number[]
      • low: number[]
      • Optional slowD_MAType?: MAType

        Slow-D MA Type of Moving Average for Slow-D. (MAType)

        defaultvalue

        MAType.SMA=0

      • Optional slowD_Period?: number

        Slow-D Period Smoothing for making the Slow-D line. (Integer, min: 1, max: 100000)

        defaultvalue

        3

      • Optional slowK_MAType?: MAType

        Slow-K MA Type of Moving Average for Slow-K. (MAType)

        defaultvalue

        MAType.SMA=0

      • Optional slowK_Period?: number

        Slow-K Period Smoothing for making the Slow-K line. Usually set to 3. (Integer, min: 1, max: 100000)

        defaultvalue

        3

    Returns { slowD: number[]; slowK: number[] }

    • slowD: number[]
    • slowK: number[]

STOCHF

  • STOCHF(params: { close: number[]; fastD_MAType?: MAType; fastD_Period?: number; fastK_Period?: number; high: number[]; low: number[] }): { fastD: number[]; fastK: number[] }
  • Stochastic Fast

    alias

    stochF

    Parameters

    • params: { close: number[]; fastD_MAType?: MAType; fastD_Period?: number; fastK_Period?: number; high: number[]; low: number[] }
      • close: number[]
      • Optional fastD_MAType?: MAType

        Fast-D MA Type of Moving Average for Fast-D. (MAType)

        defaultvalue

        MAType.SMA=0

      • Optional fastD_Period?: number

        Fast-D Period Smoothing for making the Fast-D line. Usually set to 3. (Integer, min: 1, max: 100000)

        defaultvalue

        3

      • Optional fastK_Period?: number

        Fast-K Period Time period for building the Fast-K line. (Integer, min: 1, max: 100000)

        defaultvalue

        5

      • high: number[]
      • low: number[]

    Returns { fastD: number[]; fastK: number[] }

    • fastD: number[]
    • fastK: number[]

STOCHRSI

  • STOCHRSI(params: { fastD_MAType?: MAType; fastD_Period?: number; fastK_Period?: number; inReal: number[]; timePeriod?: number }): { fastD: number[]; fastK: number[] }
  • Stochastic Relative Strength Index

    alias

    stochRsi

    Parameters

    • params: { fastD_MAType?: MAType; fastD_Period?: number; fastK_Period?: number; inReal: number[]; timePeriod?: number }
      • Optional fastD_MAType?: MAType

        Fast-D MA Type of Moving Average for Fast-D. (MAType)

        defaultvalue

        MAType.SMA=0

      • Optional fastD_Period?: number

        Fast-D Period Smoothing for making the Fast-D line. Usually set to 3. (Integer, min: 1, max: 100000)

        defaultvalue

        3

      • Optional fastK_Period?: number

        Fast-K Period Time period for building the Fast-K line. (Integer, min: 1, max: 100000)

        defaultvalue

        5

      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { fastD: number[]; fastK: number[] }

    • fastD: number[]
    • fastK: number[]

TRIX

  • TRIX(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA

    alias

    trix

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 1, max: 100000)

        defaultvalue

        30

    Returns { output: number[] }

    • output: number[]

ULTOSC

  • ULTOSC(params: { close: number[]; high: number[]; low: number[]; timePeriod1?: number; timePeriod2?: number; timePeriod3?: number }): { output: number[] }
  • Ultimate Oscillator

    alias

    ultOsc

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; timePeriod1?: number; timePeriod2?: number; timePeriod3?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • Optional timePeriod1?: number

        First Period Number of bars for 1st period.. (Integer, min: 1, max: 100000)

        defaultvalue

        7

      • Optional timePeriod2?: number

        Second Period Number of bars fro 2nd period. (Integer, min: 1, max: 100000)

        defaultvalue

        14

      • Optional timePeriod3?: number

        Third Period Number of bars for 3rd period. (Integer, min: 1, max: 100000)

        defaultvalue

        28

    Returns { output: number[] }

    • output: number[]

WILLR

  • WILLR(params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }): { output: number[] }
  • Williams' %R

    alias

    willR

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

Cycle Indicators Functions

HT_DCPERIOD

  • HT_DCPERIOD(params: { inReal: number[] }): { output: number[] }
  • Hilbert Transform - Dominant Cycle Period

    alias

    htDcPeriod

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

HT_DCPHASE

  • HT_DCPHASE(params: { inReal: number[] }): { output: number[] }
  • Hilbert Transform - Dominant Cycle Phase

    alias

    htDcPhase

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

HT_PHASOR

  • HT_PHASOR(params: { inReal: number[] }): { inPhase: number[]; quadrature: number[] }
  • Hilbert Transform - Phasor Components

    alias

    htPhasor

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { inPhase: number[]; quadrature: number[] }

    • inPhase: number[]
    • quadrature: number[]

HT_SINE

  • HT_SINE(params: { inReal: number[] }): { leadSine: number[]; sine: number[] }
  • Hilbert Transform - SineWave

    alias

    htSine

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { leadSine: number[]; sine: number[] }

    • leadSine: number[]
    • sine: number[]

HT_TRENDMODE

  • HT_TRENDMODE(params: { inReal: number[] }): { output: number[] }
  • Hilbert Transform - Trend vs Cycle Mode

    alias

    htTrendMode

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

Overlap Studies Functions

ACCBANDS

  • ACCBANDS(params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }): { lowerBand: number[]; middleBand: number[]; upperBand: number[] }
  • Acceleration Bands

    alias

    accBands

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; timePeriod?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        20

    Returns { lowerBand: number[]; middleBand: number[]; upperBand: number[] }

    • lowerBand: number[]
    • middleBand: number[]
    • upperBand: number[]

BBANDS

  • BBANDS(params: { MAType?: MAType; inReal: number[]; nbDevDn?: number; nbDevUp?: number; timePeriod?: number }): { lowerBand: number[]; middleBand: number[]; upperBand: number[] }
  • Bollinger Bands

    alias

    bbands

    Parameters

    • params: { MAType?: MAType; inReal: number[]; nbDevDn?: number; nbDevUp?: number; timePeriod?: number }
      • Optional MAType?: MAType

        MA Type Type of Moving Average. (MAType)

        defaultvalue

        MAType.SMA=0

      • inReal: number[]
      • Optional nbDevDn?: number

        Deviations down Deviation multiplier for lower band. (Double, min: -3e+37, max: 3e+37)

        defaultvalue

        2

      • Optional nbDevUp?: number

        Deviations up Deviation multiplier for upper band. (Double, min: -3e+37, max: 3e+37)

        defaultvalue

        2

      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        5

    Returns { lowerBand: number[]; middleBand: number[]; upperBand: number[] }

    • lowerBand: number[]
    • middleBand: number[]
    • upperBand: number[]

DEMA

  • DEMA(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Double Exponential Moving Average

    alias

    dema

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        30

    Returns { output: number[] }

    • output: number[]

EMA

  • EMA(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Exponential Moving Average

    alias

    ema

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        30

    Returns { output: number[] }

    • output: number[]

HT_TRENDLINE

  • HT_TRENDLINE(params: { inReal: number[] }): { output: number[] }
  • Hilbert Transform - Instantaneous Trendline

    alias

    htTrendline

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

KAMA

  • KAMA(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Kaufman Adaptive Moving Average

    alias

    kama

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        30

    Returns { output: number[] }

    • output: number[]

MA

  • MA(params: { MAType?: MAType; inReal: number[]; timePeriod?: number }): { output: number[] }
  • Moving average

    alias

    movingAverage

    Parameters

    • params: { MAType?: MAType; inReal: number[]; timePeriod?: number }
      • Optional MAType?: MAType

        MA Type Type of Moving Average. (MAType)

        defaultvalue

        MAType.SMA=0

      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 1, max: 100000)

        defaultvalue

        30

    Returns { output: number[] }

    • output: number[]

MAMA

  • MAMA(params: { fastLimit?: number; inReal: number[]; slowLimit?: number }): { FAMA: number[]; MAMA: number[] }
  • MESA Adaptive Moving Average

    alias

    mama

    Parameters

    • params: { fastLimit?: number; inReal: number[]; slowLimit?: number }
      • Optional fastLimit?: number

        Fast Limit Upper limit use in the adaptive algorithm. (Double, min: 0.01, max: 0.99)

        defaultvalue

        0.5

      • inReal: number[]
      • Optional slowLimit?: number

        Slow Limit Lower limit use in the adaptive algorithm. (Double, min: 0.01, max: 0.99)

        defaultvalue

        0.05

    Returns { FAMA: number[]; MAMA: number[] }

    • FAMA: number[]
    • MAMA: number[]

MAVP

  • MAVP(params: { MAType?: MAType; inPeriods: number[]; inReal: number[]; maxPeriod?: number; minPeriod?: number }): { output: number[] }
  • Moving average with variable period

    alias

    movingAverageVariablePeriod

    Parameters

    • params: { MAType?: MAType; inPeriods: number[]; inReal: number[]; maxPeriod?: number; minPeriod?: number }
      • Optional MAType?: MAType

        MA Type Type of Moving Average. (MAType)

        defaultvalue

        MAType.SMA=0

      • inPeriods: number[]
      • inReal: number[]
      • Optional maxPeriod?: number

        Maximum Period Value higher than maximum will be changed to Maximum period. (Integer, min: 2, max: 100000)

        defaultvalue

        30

      • Optional minPeriod?: number

        Minimum Period Value less than minimum will be changed to Minimum period. (Integer, min: 2, max: 100000)

        defaultvalue

        2

    Returns { output: number[] }

    • output: number[]

MIDPOINT

  • MIDPOINT(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • MidPoint over period

    alias

    midPoint

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

MIDPRICE

  • MIDPRICE(params: { high: number[]; low: number[]; timePeriod?: number }): { output: number[] }
  • Midpoint Price over period

    alias

    midPrice

    Parameters

    • params: { high: number[]; low: number[]; timePeriod?: number }
      • high: number[]
      • low: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        14

    Returns { output: number[] }

    • output: number[]

SAR

  • SAR(params: { acceleration?: number; high: number[]; low: number[]; maximum?: number }): { output: number[] }
  • Parabolic SAR

    alias

    sar

    Parameters

    • params: { acceleration?: number; high: number[]; low: number[]; maximum?: number }
      • Optional acceleration?: number

        Acceleration Factor Acceleration Factor used up to the Maximum value. (Double, min: 0, max: 3e+37)

        defaultvalue

        0.02

      • high: number[]
      • low: number[]
      • Optional maximum?: number

        AF Maximum Acceleration Factor Maximum value. (Double, min: 0, max: 3e+37)

        defaultvalue

        0.2

    Returns { output: number[] }

    • output: number[]

SAREXT

  • SAREXT(params: { accelerationInitLong?: number; accelerationInitShort?: number; accelerationLong?: number; accelerationMaxLong?: number; accelerationMaxShort?: number; accelerationShort?: number; high: number[]; low: number[]; offsetOnReverse?: number; startValue?: number }): { output: number[] }
  • Parabolic SAR - Extended

    alias

    sarExt

    Parameters

    • params: { accelerationInitLong?: number; accelerationInitShort?: number; accelerationLong?: number; accelerationMaxLong?: number; accelerationMaxShort?: number; accelerationShort?: number; high: number[]; low: number[]; offsetOnReverse?: number; startValue?: number }
      • Optional accelerationInitLong?: number

        AF Init Long Acceleration Factor initial value for the Long direction. (Double, min: 0, max: 3e+37)

        defaultvalue

        0.02

      • Optional accelerationInitShort?: number

        AF Init Short Acceleration Factor initial value for the Short direction. (Double, min: 0, max: 3e+37)

        defaultvalue

        0.02

      • Optional accelerationLong?: number

        AF Long Acceleration Factor for the Long direction. (Double, min: 0, max: 3e+37)

        defaultvalue

        0.02

      • Optional accelerationMaxLong?: number

        AF Max Long Acceleration Factor maximum value for the Long direction. (Double, min: 0, max: 3e+37)

        defaultvalue

        0.2

      • Optional accelerationMaxShort?: number

        AF Max Short Acceleration Factor maximum value for the Short direction. (Double, min: 0, max: 3e+37)

        defaultvalue

        0.2

      • Optional accelerationShort?: number

        AF Short Acceleration Factor for the Short direction. (Double, min: 0, max: 3e+37)

        defaultvalue

        0.02

      • high: number[]
      • low: number[]
      • Optional offsetOnReverse?: number

        Offset on Reverse Percent offset added/removed to initial stop on short/long reversal. (Double, min: 0, max: 3e+37)

        defaultvalue

        0

      • Optional startValue?: number

        Start Value Start value and direction. 0 for Auto, >0 for Long, <0 for Short. (Double, min: -3e+37, max: 3e+37)

        defaultvalue

        0

    Returns { output: number[] }

    • output: number[]

SMA

  • SMA(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Simple Moving Average

    alias

    sma

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        30

    Returns { output: number[] }

    • output: number[]

T3

  • T3(params: { VFactor?: number; inReal: number[]; timePeriod?: number }): { output: number[] }
  • Triple Exponential Moving Average (T3)

    alias

    t3

    Parameters

    • params: { VFactor?: number; inReal: number[]; timePeriod?: number }
      • Optional VFactor?: number

        Volume Factor Volume Factor. (Double, min: 0, max: 1)

        defaultvalue

        0.7

      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        5

    Returns { output: number[] }

    • output: number[]

TEMA

  • TEMA(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Triple Exponential Moving Average

    alias

    tema

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        30

    Returns { output: number[] }

    • output: number[]

TRIMA

  • TRIMA(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Triangular Moving Average

    alias

    trima

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        30

    Returns { output: number[] }

    • output: number[]

WMA

  • WMA(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Weighted Moving Average

    alias

    wma

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        30

    Returns { output: number[] }

    • output: number[]

Pattern Recognition Functions

CDL2CROWS

  • CDL2CROWS(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Two Crows

    alias

    cdl2Crows

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDL3BLACKCROWS

  • CDL3BLACKCROWS(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Three Black Crows

    alias

    cdl3BlackCrows

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDL3INSIDE

  • CDL3INSIDE(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Three Inside Up/Down

    alias

    cdl3Inside

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDL3LINESTRIKE

  • CDL3LINESTRIKE(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Three-Line Strike

    alias

    cdl3LineStrike

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDL3OUTSIDE

  • CDL3OUTSIDE(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Three Outside Up/Down

    alias

    cdl3Outside

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDL3STARSINSOUTH

  • CDL3STARSINSOUTH(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Three Stars In The South

    alias

    cdl3StarsInSouth

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDL3WHITESOLDIERS

  • CDL3WHITESOLDIERS(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Three Advancing White Soldiers

    alias

    cdl3WhiteSoldiers

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLABANDONEDBABY

  • CDLABANDONEDBABY(params: { close: number[]; high: number[]; low: number[]; open: number[]; penetration?: number }): { output: number[] }
  • Abandoned Baby

    alias

    cdlAbandonedBaby

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[]; penetration?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]
      • Optional penetration?: number

        Penetration Percentage of penetration of a candle within another candle. (Double, min: 0, max: 3e+37)

        defaultvalue

        0.3

    Returns { output: number[] }

    • output: number[]

CDLADVANCEBLOCK

  • CDLADVANCEBLOCK(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Advance Block

    alias

    cdlAdvanceBlock

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLBELTHOLD

  • CDLBELTHOLD(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Belt-hold

    alias

    cdlBeltHold

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLBREAKAWAY

  • CDLBREAKAWAY(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Breakaway

    alias

    cdlBreakaway

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLCLOSINGMARUBOZU

  • CDLCLOSINGMARUBOZU(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Closing Marubozu

    alias

    cdlClosingMarubozu

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLCONCEALBABYSWALL

  • CDLCONCEALBABYSWALL(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Concealing Baby Swallow

    alias

    cdlConcealBabysWall

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLCOUNTERATTACK

  • CDLCOUNTERATTACK(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Counterattack

    alias

    cdlCounterAttack

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLDARKCLOUDCOVER

  • CDLDARKCLOUDCOVER(params: { close: number[]; high: number[]; low: number[]; open: number[]; penetration?: number }): { output: number[] }
  • Dark Cloud Cover

    alias

    cdlDarkCloudCover

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[]; penetration?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]
      • Optional penetration?: number

        Penetration Percentage of penetration of a candle within another candle. (Double, min: 0, max: 3e+37)

        defaultvalue

        0.5

    Returns { output: number[] }

    • output: number[]

CDLDOJI

  • CDLDOJI(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Doji

    alias

    cdlDoji

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLDOJISTAR

  • CDLDOJISTAR(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Doji Star

    alias

    cdlDojiStar

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLDRAGONFLYDOJI

  • CDLDRAGONFLYDOJI(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Dragonfly Doji

    alias

    cdlDragonflyDoji

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLENGULFING

  • CDLENGULFING(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Engulfing Pattern

    alias

    cdlEngulfing

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLEVENINGDOJISTAR

  • CDLEVENINGDOJISTAR(params: { close: number[]; high: number[]; low: number[]; open: number[]; penetration?: number }): { output: number[] }
  • Evening Doji Star

    alias

    cdlEveningDojiStar

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[]; penetration?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]
      • Optional penetration?: number

        Penetration Percentage of penetration of a candle within another candle. (Double, min: 0, max: 3e+37)

        defaultvalue

        0.3

    Returns { output: number[] }

    • output: number[]

CDLEVENINGSTAR

  • CDLEVENINGSTAR(params: { close: number[]; high: number[]; low: number[]; open: number[]; penetration?: number }): { output: number[] }
  • Evening Star

    alias

    cdlEveningStar

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[]; penetration?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]
      • Optional penetration?: number

        Penetration Percentage of penetration of a candle within another candle. (Double, min: 0, max: 3e+37)

        defaultvalue

        0.3

    Returns { output: number[] }

    • output: number[]

CDLGAPSIDESIDEWHITE

  • CDLGAPSIDESIDEWHITE(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Up/Down-gap side-by-side white lines

    alias

    cdlGapSideSideWhite

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLGRAVESTONEDOJI

  • CDLGRAVESTONEDOJI(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Gravestone Doji

    alias

    cdlGravestoneDoji

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLHAMMER

  • CDLHAMMER(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Hammer

    alias

    cdlHammer

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLHANGINGMAN

  • CDLHANGINGMAN(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Hanging Man

    alias

    cdlHangingMan

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLHARAMI

  • CDLHARAMI(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Harami Pattern

    alias

    cdlHarami

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLHARAMICROSS

  • CDLHARAMICROSS(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Harami Cross Pattern

    alias

    cdlHaramiCross

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLHIGHWAVE

  • CDLHIGHWAVE(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • High-Wave Candle

    alias

    cdlHignWave

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLHIKKAKE

  • CDLHIKKAKE(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Hikkake Pattern

    alias

    cdlHikkake

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLHIKKAKEMOD

  • CDLHIKKAKEMOD(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Modified Hikkake Pattern

    alias

    cdlHikkakeMod

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLHOMINGPIGEON

  • CDLHOMINGPIGEON(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Homing Pigeon

    alias

    cdlHomingPigeon

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLIDENTICAL3CROWS

  • CDLIDENTICAL3CROWS(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Identical Three Crows

    alias

    cdlIdentical3Crows

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLINNECK

  • CDLINNECK(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • In-Neck Pattern

    alias

    cdlInNeck

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLINVERTEDHAMMER

  • CDLINVERTEDHAMMER(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Inverted Hammer

    alias

    cdlInvertedHammer

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLKICKING

  • CDLKICKING(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Kicking

    alias

    cdlKicking

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLKICKINGBYLENGTH

  • CDLKICKINGBYLENGTH(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Kicking - bull/bear determined by the longer marubozu

    alias

    cdlKickingByLength

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLLADDERBOTTOM

  • CDLLADDERBOTTOM(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Ladder Bottom

    alias

    cdlLadderBottom

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLLONGLEGGEDDOJI

  • CDLLONGLEGGEDDOJI(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Long Legged Doji

    alias

    cdlLongLeggedDoji

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLLONGLINE

  • CDLLONGLINE(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Long Line Candle

    alias

    cdlLongLine

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLMARUBOZU

  • CDLMARUBOZU(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Marubozu

    alias

    cdlMarubozu

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLMATCHINGLOW

  • CDLMATCHINGLOW(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Matching Low

    alias

    cdlMatchingLow

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLMATHOLD

  • CDLMATHOLD(params: { close: number[]; high: number[]; low: number[]; open: number[]; penetration?: number }): { output: number[] }
  • Mat Hold

    alias

    cdlMatHold

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[]; penetration?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]
      • Optional penetration?: number

        Penetration Percentage of penetration of a candle within another candle. (Double, min: 0, max: 3e+37)

        defaultvalue

        0.5

    Returns { output: number[] }

    • output: number[]

CDLMORNINGDOJISTAR

  • CDLMORNINGDOJISTAR(params: { close: number[]; high: number[]; low: number[]; open: number[]; penetration?: number }): { output: number[] }
  • Morning Doji Star

    alias

    cdlMorningDojiStar

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[]; penetration?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]
      • Optional penetration?: number

        Penetration Percentage of penetration of a candle within another candle. (Double, min: 0, max: 3e+37)

        defaultvalue

        0.3

    Returns { output: number[] }

    • output: number[]

CDLMORNINGSTAR

  • CDLMORNINGSTAR(params: { close: number[]; high: number[]; low: number[]; open: number[]; penetration?: number }): { output: number[] }
  • Morning Star

    alias

    cdlMorningStar

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[]; penetration?: number }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]
      • Optional penetration?: number

        Penetration Percentage of penetration of a candle within another candle. (Double, min: 0, max: 3e+37)

        defaultvalue

        0.3

    Returns { output: number[] }

    • output: number[]

CDLONNECK

  • CDLONNECK(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • On-Neck Pattern

    alias

    cdlOnNeck

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLPIERCING

  • CDLPIERCING(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Piercing Pattern

    alias

    cdlPiercing

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLRICKSHAWMAN

  • CDLRICKSHAWMAN(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Rickshaw Man

    alias

    cdlRickshawMan

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLRISEFALL3METHODS

  • CDLRISEFALL3METHODS(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Rising/Falling Three Methods

    alias

    cdlRiseFall3Methods

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLSEPARATINGLINES

  • CDLSEPARATINGLINES(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Separating Lines

    alias

    cdlSeperatingLines

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLSHOOTINGSTAR

  • CDLSHOOTINGSTAR(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Shooting Star

    alias

    cdlShootingStar

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLSHORTLINE

  • CDLSHORTLINE(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Short Line Candle

    alias

    cdlShortLine

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLSPINNINGTOP

  • CDLSPINNINGTOP(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Spinning Top

    alias

    cdlSpinningTop

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLSTALLEDPATTERN

  • CDLSTALLEDPATTERN(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Stalled Pattern

    alias

    cdlStalledPattern

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLSTICKSANDWICH

  • CDLSTICKSANDWICH(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Stick Sandwich

    alias

    cdlStickSandwhich

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLTAKURI

  • CDLTAKURI(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Takuri (Dragonfly Doji with very long lower shadow)

    alias

    cdlTakuri

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLTASUKIGAP

  • CDLTASUKIGAP(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Tasuki Gap

    alias

    cdlTasukiGap

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLTHRUSTING

  • CDLTHRUSTING(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Thrusting Pattern

    alias

    cdlThrusting

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLTRISTAR

  • CDLTRISTAR(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Tristar Pattern

    alias

    cdlTristar

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLUNIQUE3RIVER

  • CDLUNIQUE3RIVER(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Unique 3 River

    alias

    cdlUnique3River

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLUPSIDEGAP2CROWS

  • CDLUPSIDEGAP2CROWS(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Upside Gap Two Crows

    alias

    cdlUpsideGap2Crows

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

CDLXSIDEGAP3METHODS

  • CDLXSIDEGAP3METHODS(params: { close: number[]; high: number[]; low: number[]; open: number[] }): { output: number[] }
  • Upside/Downside Gap Three Methods

    alias

    cdlXSideGap3Methods

    Parameters

    • params: { close: number[]; high: number[]; low: number[]; open: number[] }
      • close: number[]
      • high: number[]
      • low: number[]
      • open: number[]

    Returns { output: number[] }

    • output: number[]

Math Operators Functions

ADD

  • ADD(params: { inReal0: number[]; inReal1: number[] }): { output: number[] }
  • Vector Arithmetic Add

    alias

    add

    Parameters

    • params: { inReal0: number[]; inReal1: number[] }
      • inReal0: number[]
      • inReal1: number[]

    Returns { output: number[] }

    • output: number[]

DIV

  • DIV(params: { inReal0: number[]; inReal1: number[] }): { output: number[] }
  • Vector Arithmetic Div

    alias

    div

    Parameters

    • params: { inReal0: number[]; inReal1: number[] }
      • inReal0: number[]
      • inReal1: number[]

    Returns { output: number[] }

    • output: number[]

MAX

  • MAX(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Highest value over a specified period

    alias

    max

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        30

    Returns { output: number[] }

    • output: number[]

MAXINDEX

  • MAXINDEX(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Index of highest value over a specified period

    alias

    maxIndex

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        30

    Returns { output: number[] }

    • output: number[]

MIN

  • MIN(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Lowest value over a specified period

    alias

    min

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        30

    Returns { output: number[] }

    • output: number[]

MININDEX

  • MININDEX(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Index of lowest value over a specified period

    alias

    minIndex

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        30

    Returns { output: number[] }

    • output: number[]

MINMAX

  • MINMAX(params: { inReal: number[]; timePeriod?: number }): { max: number[]; min: number[] }
  • Lowest and highest values over a specified period

    alias

    minMax

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        30

    Returns { max: number[]; min: number[] }

    • max: number[]
    • min: number[]

MINMAXINDEX

  • MINMAXINDEX(params: { inReal: number[]; timePeriod?: number }): { maxIdx: number[]; minIdx: number[] }
  • Indexes of lowest and highest values over a specified period

    alias

    minMaxIndex

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        30

    Returns { maxIdx: number[]; minIdx: number[] }

    • maxIdx: number[]
    • minIdx: number[]

MULT

  • MULT(params: { inReal0: number[]; inReal1: number[] }): { output: number[] }
  • Vector Arithmetic Mult

    alias

    mult

    Parameters

    • params: { inReal0: number[]; inReal1: number[] }
      • inReal0: number[]
      • inReal1: number[]

    Returns { output: number[] }

    • output: number[]

SUB

  • SUB(params: { inReal0: number[]; inReal1: number[] }): { output: number[] }
  • Vector Arithmetic Substraction

    alias

    sub

    Parameters

    • params: { inReal0: number[]; inReal1: number[] }
      • inReal0: number[]
      • inReal1: number[]

    Returns { output: number[] }

    • output: number[]

SUM

  • SUM(params: { inReal: number[]; timePeriod?: number }): { output: number[] }
  • Summation

    alias

    sum

    Parameters

    • params: { inReal: number[]; timePeriod?: number }
      • inReal: number[]
      • Optional timePeriod?: number

        Time Period Number of period. (Integer, min: 2, max: 100000)

        defaultvalue

        30

    Returns { output: number[] }

    • output: number[]

Math Transform Functions

ACOS

  • ACOS(params: { inReal: number[] }): { output: number[] }
  • Vector Trigonometric ACos

    alias

    acos

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

ASIN

  • ASIN(params: { inReal: number[] }): { output: number[] }
  • Vector Trigonometric ASin

    alias

    asin

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

ATAN

  • ATAN(params: { inReal: number[] }): { output: number[] }
  • Vector Trigonometric ATan

    alias

    atan

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

CEIL

  • CEIL(params: { inReal: number[] }): { output: number[] }
  • Vector Ceil

    alias

    ceil

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

COS

  • COS(params: { inReal: number[] }): { output: number[] }
  • Vector Trigonometric Cos

    alias

    cos

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

COSH

  • COSH(params: { inReal: number[] }): { output: number[] }
  • Vector Trigonometric Cosh

    alias

    cosh

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

EXP

  • EXP(params: { inReal: number[] }): { output: number[] }
  • Vector Arithmetic Exp

    alias

    exp

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

FLOOR

  • FLOOR(params: { inReal: number[] }): { output: number[] }
  • Vector Floor

    alias

    floor

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

LN

  • LN(params: { inReal: number[] }): { output: number[] }
  • Vector Log Natural

    alias

    ln

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

LOG10

  • LOG10(params: { inReal: number[] }): { output: number[] }
  • Vector Log10

    alias

    log10

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

SIN

  • SIN(params: { inReal: number[] }): { output: number[] }
  • Vector Trigonometric Sin

    alias

    sin

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

SINH

  • SINH(params: { inReal: number[] }): { output: number[] }
  • Vector Trigonometric Sinh

    alias

    sinh

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

SQRT

  • SQRT(params: { inReal: number[] }): { output: number[] }
  • Vector Square Root

    alias

    sqrt

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

TAN

  • TAN(params: { inReal: number[] }): { output: number[] }
  • Vector Trigonometric Tan

    alias

    tan

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

TANH

  • TANH(params: { inReal: number[] }): { output: number[] }
  • Vector Trigonometric Tanh

    alias

    tanh

    Parameters

    • params: { inReal: number[] }
      • inReal: number[]

    Returns { output: number[] }

    • output: number[]

Object literals

Const TAFuncs

TAFuncs: object

TAFuncs object is a collection of all functions. It is very easy to call functions dynamically without additional import statements.

ACCBANDS

ACCBANDS: ACCBANDS = ACCBANDS

ACOS

ACOS: ACOS = ACOS

AD

AD: AD = AD

ADD

ADD: ADD = ADD

ADOSC

ADOSC: ADOSC = ADOSC

ADX

ADX: ADX = ADX

ADXR

ADXR: ADXR = ADXR

APO

APO: APO = APO

AROON

AROON: AROON = AROON

AROONOSC

AROONOSC: AROONOSC = AROONOSC

ASIN

ASIN: ASIN = ASIN

ATAN

ATAN: ATAN = ATAN

ATR

ATR: ATR = ATR

AVGDEV

AVGDEV: AVGDEV = AVGDEV

AVGPRICE

AVGPRICE: AVGPRICE = AVGPRICE

BBANDS

BBANDS: BBANDS = BBANDS

BETA

BETA: BETA = BETA

BOP

BOP: BOP = BOP

CCI

CCI: CCI = CCI

CDL2CROWS

CDL2CROWS: CDL2CROWS = CDL2CROWS

CDL3BLACKCROWS

CDL3BLACKCROWS: CDL3BLACKCROWS = CDL3BLACKCROWS

CDL3INSIDE

CDL3INSIDE: CDL3INSIDE = CDL3INSIDE

CDL3LINESTRIKE

CDL3LINESTRIKE: CDL3LINESTRIKE = CDL3LINESTRIKE

CDL3OUTSIDE

CDL3OUTSIDE: CDL3OUTSIDE = CDL3OUTSIDE

CDL3STARSINSOUTH

CDL3STARSINSOUTH: CDL3STARSINSOUTH = CDL3STARSINSOUTH

CDL3WHITESOLDIERS

CDL3WHITESOLDIERS: CDL3WHITESOLDIERS = CDL3WHITESOLDIERS

CDLABANDONEDBABY

CDLABANDONEDBABY: CDLABANDONEDBABY = CDLABANDONEDBABY

CDLADVANCEBLOCK

CDLADVANCEBLOCK: CDLADVANCEBLOCK = CDLADVANCEBLOCK

CDLBELTHOLD

CDLBELTHOLD: CDLBELTHOLD = CDLBELTHOLD

CDLBREAKAWAY

CDLBREAKAWAY: CDLBREAKAWAY = CDLBREAKAWAY

CDLCLOSINGMARUBOZU

CDLCLOSINGMARUBOZU: CDLCLOSINGMARUBOZU = CDLCLOSINGMARUBOZU

CDLCONCEALBABYSWALL

CDLCONCEALBABYSWALL: CDLCONCEALBABYSWALL = CDLCONCEALBABYSWALL

CDLCOUNTERATTACK

CDLCOUNTERATTACK: CDLCOUNTERATTACK = CDLCOUNTERATTACK

CDLDARKCLOUDCOVER

CDLDARKCLOUDCOVER: CDLDARKCLOUDCOVER = CDLDARKCLOUDCOVER

CDLDOJI

CDLDOJI: CDLDOJI = CDLDOJI

CDLDOJISTAR

CDLDOJISTAR: CDLDOJISTAR = CDLDOJISTAR

CDLDRAGONFLYDOJI

CDLDRAGONFLYDOJI: CDLDRAGONFLYDOJI = CDLDRAGONFLYDOJI

CDLENGULFING

CDLENGULFING: CDLENGULFING = CDLENGULFING

CDLEVENINGDOJISTAR

CDLEVENINGDOJISTAR: CDLEVENINGDOJISTAR = CDLEVENINGDOJISTAR

CDLEVENINGSTAR

CDLEVENINGSTAR: CDLEVENINGSTAR = CDLEVENINGSTAR

CDLGAPSIDESIDEWHITE

CDLGAPSIDESIDEWHITE: CDLGAPSIDESIDEWHITE = CDLGAPSIDESIDEWHITE

CDLGRAVESTONEDOJI

CDLGRAVESTONEDOJI: CDLGRAVESTONEDOJI = CDLGRAVESTONEDOJI

CDLHAMMER

CDLHAMMER: CDLHAMMER = CDLHAMMER

CDLHANGINGMAN

CDLHANGINGMAN: CDLHANGINGMAN = CDLHANGINGMAN

CDLHARAMI

CDLHARAMI: CDLHARAMI = CDLHARAMI

CDLHARAMICROSS

CDLHARAMICROSS: CDLHARAMICROSS = CDLHARAMICROSS

CDLHIGHWAVE

CDLHIGHWAVE: CDLHIGHWAVE = CDLHIGHWAVE

CDLHIKKAKE

CDLHIKKAKE: CDLHIKKAKE = CDLHIKKAKE

CDLHIKKAKEMOD

CDLHIKKAKEMOD: CDLHIKKAKEMOD = CDLHIKKAKEMOD

CDLHOMINGPIGEON

CDLHOMINGPIGEON: CDLHOMINGPIGEON = CDLHOMINGPIGEON

CDLIDENTICAL3CROWS

CDLIDENTICAL3CROWS: CDLIDENTICAL3CROWS = CDLIDENTICAL3CROWS

CDLINNECK

CDLINNECK: CDLINNECK = CDLINNECK

CDLINVERTEDHAMMER

CDLINVERTEDHAMMER: CDLINVERTEDHAMMER = CDLINVERTEDHAMMER

CDLKICKING

CDLKICKING: CDLKICKING = CDLKICKING

CDLKICKINGBYLENGTH

CDLKICKINGBYLENGTH: CDLKICKINGBYLENGTH = CDLKICKINGBYLENGTH

CDLLADDERBOTTOM

CDLLADDERBOTTOM: CDLLADDERBOTTOM = CDLLADDERBOTTOM

CDLLONGLEGGEDDOJI

CDLLONGLEGGEDDOJI: CDLLONGLEGGEDDOJI = CDLLONGLEGGEDDOJI

CDLLONGLINE

CDLLONGLINE: CDLLONGLINE = CDLLONGLINE

CDLMARUBOZU

CDLMARUBOZU: CDLMARUBOZU = CDLMARUBOZU

CDLMATCHINGLOW

CDLMATCHINGLOW: CDLMATCHINGLOW = CDLMATCHINGLOW

CDLMATHOLD

CDLMATHOLD: CDLMATHOLD = CDLMATHOLD

CDLMORNINGDOJISTAR

CDLMORNINGDOJISTAR: CDLMORNINGDOJISTAR = CDLMORNINGDOJISTAR

CDLMORNINGSTAR

CDLMORNINGSTAR: CDLMORNINGSTAR = CDLMORNINGSTAR

CDLONNECK

CDLONNECK: CDLONNECK = CDLONNECK

CDLPIERCING

CDLPIERCING: CDLPIERCING = CDLPIERCING

CDLRICKSHAWMAN

CDLRICKSHAWMAN: CDLRICKSHAWMAN = CDLRICKSHAWMAN

CDLRISEFALL3METHODS

CDLRISEFALL3METHODS: CDLRISEFALL3METHODS = CDLRISEFALL3METHODS

CDLSEPARATINGLINES

CDLSEPARATINGLINES: CDLSEPARATINGLINES = CDLSEPARATINGLINES

CDLSHOOTINGSTAR

CDLSHOOTINGSTAR: CDLSHOOTINGSTAR = CDLSHOOTINGSTAR

CDLSHORTLINE

CDLSHORTLINE: CDLSHORTLINE = CDLSHORTLINE

CDLSPINNINGTOP

CDLSPINNINGTOP: CDLSPINNINGTOP = CDLSPINNINGTOP

CDLSTALLEDPATTERN

CDLSTALLEDPATTERN: CDLSTALLEDPATTERN = CDLSTALLEDPATTERN

CDLSTICKSANDWICH

CDLSTICKSANDWICH: CDLSTICKSANDWICH = CDLSTICKSANDWICH

CDLTAKURI

CDLTAKURI: CDLTAKURI = CDLTAKURI

CDLTASUKIGAP

CDLTASUKIGAP: CDLTASUKIGAP = CDLTASUKIGAP

CDLTHRUSTING

CDLTHRUSTING: CDLTHRUSTING = CDLTHRUSTING

CDLTRISTAR

CDLTRISTAR: CDLTRISTAR = CDLTRISTAR

CDLUNIQUE3RIVER

CDLUNIQUE3RIVER: CDLUNIQUE3RIVER = CDLUNIQUE3RIVER

CDLUPSIDEGAP2CROWS

CDLUPSIDEGAP2CROWS: CDLUPSIDEGAP2CROWS = CDLUPSIDEGAP2CROWS

CDLXSIDEGAP3METHODS

CDLXSIDEGAP3METHODS: CDLXSIDEGAP3METHODS = CDLXSIDEGAP3METHODS

CEIL

CEIL: CEIL = CEIL

CMO

CMO: CMO = CMO

CORREL

CORREL: CORREL = CORREL

COS

COS: COS = COS

COSH

COSH: COSH = COSH

DEMA

DEMA: DEMA = DEMA

DIV

DIV: DIV = DIV

DX

DX: DX = DX

EMA

EMA: EMA = EMA

EXP

EXP: EXP = EXP

FLOOR

FLOOR: FLOOR = FLOOR

HT_DCPERIOD

HT_DCPERIOD: HT_DCPERIOD = HT_DCPERIOD

HT_DCPHASE

HT_DCPHASE: HT_DCPHASE = HT_DCPHASE

HT_PHASOR

HT_PHASOR: HT_PHASOR = HT_PHASOR

HT_SINE

HT_SINE: HT_SINE = HT_SINE

HT_TRENDLINE

HT_TRENDLINE: HT_TRENDLINE = HT_TRENDLINE

HT_TRENDMODE

HT_TRENDMODE: HT_TRENDMODE = HT_TRENDMODE

IMI

IMI: IMI = IMI

KAMA

KAMA: KAMA = KAMA

LINEARREG

LINEARREG: LINEARREG = LINEARREG

LINEARREG_ANGLE

LINEARREG_ANGLE: LINEARREG_ANGLE = LINEARREG_ANGLE

LINEARREG_INTERCEPT

LINEARREG_INTERCEPT: LINEARREG_INTERCEPT = LINEARREG_INTERCEPT

LINEARREG_SLOPE

LINEARREG_SLOPE: LINEARREG_SLOPE = LINEARREG_SLOPE

LN

LN: LN = LN

LOG10

LOG10: LOG10 = LOG10

MA

MA: MA = MA

MACD

MACD: MACD = MACD

MACDEXT

MACDEXT: MACDEXT = MACDEXT

MACDFIX

MACDFIX: MACDFIX = MACDFIX

MAMA

MAMA: MAMA = MAMA

MAVP

MAVP: MAVP = MAVP

MAX

MAX: MAX = MAX

MAXINDEX

MAXINDEX: MAXINDEX = MAXINDEX

MEDPRICE

MEDPRICE: MEDPRICE = MEDPRICE

MFI

MFI: MFI = MFI

MIDPOINT

MIDPOINT: MIDPOINT = MIDPOINT

MIDPRICE

MIDPRICE: MIDPRICE = MIDPRICE

MIN

MIN: MIN = MIN

MININDEX

MININDEX: MININDEX = MININDEX

MINMAX

MINMAX: MINMAX = MINMAX

MINMAXINDEX

MINMAXINDEX: MINMAXINDEX = MINMAXINDEX

MINUS_DI

MINUS_DI: MINUS_DI = MINUS_DI

MINUS_DM

MINUS_DM: MINUS_DM = MINUS_DM

MOM

MOM: MOM = MOM

MULT

MULT: MULT = MULT

NATR

NATR: NATR = NATR

OBV

OBV: OBV = OBV

PLUS_DI

PLUS_DI: PLUS_DI = PLUS_DI

PLUS_DM

PLUS_DM: PLUS_DM = PLUS_DM

PPO

PPO: PPO = PPO

ROC

ROC: ROC = ROC

ROCP

ROCP: ROCP = ROCP

ROCR

ROCR: ROCR = ROCR

ROCR100

ROCR100: ROCR100 = ROCR100

RSI

RSI: RSI = RSI

SAR

SAR: SAR = SAR

SAREXT

SAREXT: SAREXT = SAREXT

SIN

SIN: SIN = SIN

SINH

SINH: SINH = SINH

SMA

SMA: SMA = SMA

SQRT

SQRT: SQRT = SQRT

STDDEV

STDDEV: STDDEV = STDDEV

STOCH

STOCH: STOCH = STOCH

STOCHF

STOCHF: STOCHF = STOCHF

STOCHRSI

STOCHRSI: STOCHRSI = STOCHRSI

SUB

SUB: SUB = SUB

SUM

SUM: SUM = SUM

T3

T3: T3 = T3

TAN

TAN: TAN = TAN

TANH

TANH: TANH = TANH

TEMA

TEMA: TEMA = TEMA

TRANGE

TRANGE: TRANGE = TRANGE

TRIMA

TRIMA: TRIMA = TRIMA

TRIX

TRIX: TRIX = TRIX

TSF

TSF: TSF = TSF

TYPPRICE

TYPPRICE: TYPPRICE = TYPPRICE

ULTOSC

ULTOSC: ULTOSC = ULTOSC

VAR

VAR: VAR = VAR

WCLPRICE

WCLPRICE: WCLPRICE = WCLPRICE

WILLR

WILLR: WILLR = WILLR

WMA

WMA: WMA = WMA