TA
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
| Name | Description |
| TA.MACD | Calculates the Moving Average Convergence Divergence (MACD) indicator. |
| TA.KDJ | Calculates the Stochastic Oscillator (KDJ). |
| TA.RSI | Calculates the Relative Strength Index (RSI). |
| TA.ATR | Calculates the Average True Range indicator (ATR). |
| TA.OBV | Calculates the On-Balance Volume (OBV). |
| TA.MA | Calculates the Moving Average indicator (Moving Average). |
| TA.EMA | Calculates the Exponential Moving Average (EMA) indicator. |
| TA.BOLL | Calculates the Bollinger Bands indicator. |
| TA.Alligator | Calculates the Alligator indicator. |
| TA.CMF | Calculates the Chaikin Money Flow (CMF) indicator. |
| TA.Highest | Calculates the highest price within a period. |
| TA.Lowest | Calculates the lowest price over a period. |
| TA.SMA | Calculates the Simple Moving Average (SMA) indicator. |