get_technical_indicator_ema
Calculate Exponential Moving Average (EMA) for stock analysis by providing symbol, timeframe, and period to identify trends and inform trading decisions.
Instructions
Get Exponential Moving Average (EMA) technical indicator
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Stock ticker symbol | |
| timeframe | Yes | Timeframe for technical analysis | |
| period | No | Period length |
Implementation Reference
- src/tools/technical.ts:71-88 (handler)The tool handler for 'get_technical_indicator_ema', which calls the FMP API to retrieve EMA data.
server.registerTool( 'get_technical_indicator_ema', { description: 'Get Exponential Moving Average (EMA) technical indicator', inputSchema: TechnicalIndicatorSchema, }, async (args: z.infer<typeof TechnicalIndicatorSchema>) => { try { const period = args.period || 10; const data = await fetchFMP<TechnicalIndicator[]>( `/technical-indicators/ema?symbol=${args.symbol.toUpperCase()}&timeframe=${args.timeframe}&periodLength=${period}` ); return jsonResponse(data); } catch (error) { return errorResponse(error); } } );