talib_compute_indicator
Compute technical indicators (e.g., SMA, RSI, MACD) from aligned numeric arrays. Provide indicator name, input data, and optional parameters to obtain output values.
Instructions
Compute a TA-Lib indicator from aligned numeric inputs.
Computes the requested indicator over the provided numeric arrays and returns the result. All input arrays must have the same length.
Args: indicator: TA-Lib indicator name (e.g., "SMA", "RSI", "MACD"). inputs: Aligned numeric input arrays (e.g., {"close": [1.0, 2.0, 3.0]}). parameters: Optional indicator parameters (e.g., {"timeperiod": 14}).
Returns: Computation result with indicator name, length, parameters, and output values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indicator | Yes | ||
| inputs | Yes | ||
| parameters | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||