getSMA
Calculate the Simple Moving Average (SMA) for stocks to analyze trends and identify buy/sell signals using historical price data and customizable parameters.
Instructions
Calculate the Simple Moving Average (SMA) for a stock using the FMP SMA API. This tool helps users analyze trends and identify potential buy or sell signals based on historical price data.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Start date (YYYY-MM-DD) | |
| periodLength | Yes | Period length for the indicator | |
| symbol | Yes | Stock symbol | |
| timeframe | Yes | Timeframe (1min, 5min, 15min, 30min, 1hour, 4hour, 1day) | |
| to | No | End date (YYYY-MM-DD) |