Type/to search
Built-in Functions
Global
Log
Market
Trade
Account
Futures
Exchange
IO
Network
Storage
Threads
TA
TA.MACD
TA.KDJ
TA.RSI
TA.ATR
TA.OBV
TA.MA
TA.EMA
TA.BOLL
TA.Alligator
TA.CMF
TA.Highest
TA.Lowest
TA.SMA
Talib
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

The built-in library of common indicators. It can be called from JavaScript, Python and Rust strategies, and the three languages return the same values.

Except for TA.Alligator(), the returned arrays have the same length as the input and correspond to it position by position. The leading part where there is not yet enough data to compute (the warm-up period) is NaN in JavaScript and Rust and None in Python; check for it before use.

Indicators that need the high, low or volume of each bar (TA.KDJ(), TA.ATR(), TA.OBV(), TA.Alligator(), TA.CMF()) only accept K-line data.

In this sectionRead the whole section

NameDescription
TA.MACDCalculates the Moving Average Convergence Divergence (MACD) indicator.
TA.KDJCalculates the Stochastic Oscillator (KDJ).
TA.RSICalculates the Relative Strength Index (RSI).
TA.ATRCalculates the Average True Range indicator (ATR).
TA.OBVCalculates the On-Balance Volume (OBV).
TA.MACalculates the Moving Average indicator (Moving Average).
TA.EMACalculates the Exponential Moving Average (EMA) indicator.
TA.BOLLCalculates the Bollinger Bands indicator.
TA.AlligatorCalculates the Alligator indicator.
TA.CMFCalculates the Chaikin Money Flow (CMF) indicator.
TA.HighestCalculates the highest price within a period.
TA.LowestCalculates the lowest price over a period.
TA.SMACalculates the Simple Moving Average (SMA) indicator.