Get Technical Indicator (RSI/SMA/EMA/MACD) for an Indian Stock
technical_get_indicatorCompute RSI, SMA, EMA, or MACD for NSE/BSE stocks to get live intraday or historical momentum and trend signals, such as overbought readings or moving-average crossovers.
Instructions
Compute a price-based technical indicator — RSI, SMA, EMA, or MACD — for an NSE/BSE-listed stock. For a LIVE reading, use an intraday interval (default: 15minute) — the most recent candle reflects the current, still-forming period during market hours (9:15 AM–3:30 PM IST), so the top result is your "right now" value. Use daily/weekly/monthly for longer-term/end-of-day analysis instead. Historical close prices come from Yahoo Finance's public chart data (ticker + .NS/.BO suffix) and the indicator is computed server-side using standard formulas (Wilder's RSI, standard SMA/EMA, 12/26/9 MACD).
This is separate from the screener_* tools, which cover fundamentals only; use this for momentum/trend signals like "is this stock overbought right now" or "has it crossed its 200-day moving average."
Args:
ticker (string): Plain ticker, e.g. "TCS", "RITES" (no exchange prefix or suffix).
exchange (enum, default NSE): "NSE" or "BSE".
indicator (enum): "RSI", "SMA", "EMA", or "MACD".
interval (enum, default "15minute"): "1minute", "5minute", "15minute", "30minute", "60minute" for live/intraday readings, or "daily", "weekly", "monthly" for longer-term analysis.
time_period (number, default 14): Periods used in the calculation (e.g. 14 for standard RSI, 50/200 for common moving averages on daily+ intervals). Ignored for MACD (fixed 12/26/9).
limit (number, default 10, max 50): How many recent data points to return, newest first (the first one is the current/live value).
Returns: JSON: { "symbol": string, "indicator": string, "interval": string, "points": [{ "date": string, "values": {...} }] } Intraday dates are shown in IST (Indian Standard Time).
Examples:
Use when: "What's TCS's RSI right now?" -> ticker="TCS", indicator="RSI" (uses default live 15minute interval)
Use when: "Has RITES crossed its 200-day moving average?" -> ticker="RITES", indicator="SMA", time_period=200, interval="daily"
Don't use when: You want P/E, ROE, or other fundamentals (use screener_get_company_overview instead)
Error Handling:
Returns an error if the ticker/exchange combination isn't found on Yahoo Finance — double-check NSE vs BSE and the ticker spelling.
Returns an error if there isn't enough price history yet for the requested time_period (e.g. a recently listed stock and a 200-period SMA, or a long time_period on a short intraday window).
Outside market hours (or on non-trading days), the "live" value is simply the last traded candle, not a real-time price.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ticker": "<ticker>",
"indicator": "<indicator>"
},
"name": "technical_get_indicator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many most-recent data points to return (default 10, max 50). | |
| ticker | Yes | Plain NSE/BSE ticker symbol, e.g. 'TCS', 'RITES', 'RELIANCE' (no exchange prefix, no .NS/.BO suffix). | |
| exchange | No | Which exchange the ticker is listed on. Default: NSE. | NSE |
| interval | No | Candle interval. For a LIVE/current reading during market hours, use an intraday interval like '5minute' or '15minute' — the most recent candle is the live, still-forming one. Use 'daily'/'weekly'/'monthly' for longer-term/end-of-day analysis. Default: '15minute'. | 15minute |
| indicator | Yes | Technical indicator to compute: RSI (momentum/overbought-oversold), SMA/EMA (moving averages), MACD (trend momentum, fixed 12/26/9). | |
| time_period | No | Number of periods used in the indicator calculation (e.g. 14 for standard RSI, 50 or 200 for common SMA/EMA). Ignored for MACD (fixed 12/26/9). |