Finance Tools MCP

MIT License
16
  • Apple

calc_ta

Calculate technical indicators using ta-lib-python and numpy. Evaluate expression strings like 'ta.SMA(close, timeperiod=30)' with specified tickers. Integrates with cached price data from 'get_price_data' for accurate analysis.

Instructions

Calculate technical indicators using ta-lib-python (TA-lib) and numpy. This tool evaluates a given expression string using the ta-lib-python library. The expression should follow ta-lib-python syntax, for example: - 'ta.SMA(close, timeperiod=30)' with the ticker 'AAPL' - 'ta.ROC(close, timeperiod=30)' with the ticker 'MSFT' - 'ta.RSI(close, timeperiod=14)[-1]' with the ticker 'NVDA' You must specify a ticker to use the cached price data if you've used the 'get_price_data' tool with the same ticker. If not, the expression will be evaluated in a context where only ta-lib-python and numpy are available. The expression string is evaluated in a context where the ta-lib-python library is available as 'ta' and numpy is available as 'np'.

Input Schema

NameRequiredDescriptionDefault
ta_lib_expressionYes
tickerNo

Input Schema (JSON Schema)

{ "properties": { "ta_lib_expression": { "title": "Ta Lib Expression", "type": "string" }, "ticker": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Ticker" } }, "required": [ "ta_lib_expression" ], "title": "calc_taArguments", "type": "object" }
ID: o7bclp5ave