get_tech_analysis
Fetch SMA, EMA, RSI, MACD, or Bollinger Bands for an instrument to assess trends, momentum, and volatility.
Instructions
Get technical analysis indicators (SMA, EMA, RSI, MACD, BB) for an instrument.
Returns technicalIndicators: one item per interval with a timestamp and the indicator's values — signal (SMA, EMA, RSI), macd and signal (MACD), or middleBand, upperBand and lowerBand (BB).
Args: instrument_id: Instrument ticker, FIGI, ISIN or UID indicator_type: INDICATOR_TYPE_SMA, INDICATOR_TYPE_EMA, INDICATOR_TYPE_RSI, INDICATOR_TYPE_MACD, INDICATOR_TYPE_BB from_date: Start date (YYYY-MM-DD), default: 90 days ago to_date: End date (YYYY-MM-DD, inclusive), default: now interval: INDICATOR_INTERVAL_ONE_DAY (default), _ONE_HOUR, _WEEK, MONTH and the minute and hour steps listed in the schema. The API names intervals differently here than in get_candles; the CANDLE_INTERVAL* names of the same steps are taken too. type_of_price: TYPE_OF_PRICE_CLOSE, TYPE_OF_PRICE_OPEN, TYPE_OF_PRICE_HIGH, TYPE_OF_PRICE_LOW, TYPE_OF_PRICE_AVG length: Indicator period in intervals (default: 14); MACD ignores it deviation: BB only — number of standard deviations between the middle and outer bands (default: 2) fast_length: MACD only — period of the fast EMA (default: 12) slow_length: MACD only — period of the slow EMA (default: 26) signal_smoothing: MACD only — period of the signal line (default: 9)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | ||
| to_date | No | ||
| interval | No | INDICATOR_INTERVAL_ONE_DAY | |
| deviation | No | ||
| from_date | No | ||
| fast_length | No | ||
| slow_length | No | ||
| instrument_id | Yes | ||
| type_of_price | No | TYPE_OF_PRICE_CLOSE | |
| indicator_type | Yes | ||
| signal_smoothing | No |