getSMA
Calculate Simple Moving Average for stocks to analyze price trends and identify potential trading signals using historical data from Financial Modeling Prep.
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 |
|---|---|---|---|
| symbol | Yes | Stock symbol | |
| periodLength | Yes | Period length for the indicator | |
| timeframe | Yes | Timeframe (1min, 5min, 15min, 30min, 1hour, 4hour, 1day) | |
| from | No | Start date (YYYY-MM-DD) | |
| to | No | End date (YYYY-MM-DD) |