technicalIndicators_atr
Calculate Average True Range (ATR) for a stock using a specified time interval and period to measure market volatility. Input symbol, interval, and period for accurate results.
Instructions
Average True Range (ATR)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
datatype | No | Data format for the response. | json |
interval | Yes | Time interval (e.g., "daily", "60min", "weekly"). Check Alpha Vantage docs for valid intervals per indicator. | |
month | No | Specific month for intraday intervals (YYYY-MM format). | |
symbol | Yes | The stock symbol (e.g., "IBM"). | |
time_period | Yes | Number of data points used to calculate the indicator. |
Input Schema (JSON Schema)
{
"additionalProperties": false,
"description": "Parameters for ATR.",
"properties": {
"datatype": {
"default": "json",
"description": "Data format for the response.",
"enum": [
"json",
"csv"
],
"type": "string"
},
"interval": {
"description": "Time interval (e.g., \"daily\", \"60min\", \"weekly\"). Check Alpha Vantage docs for valid intervals per indicator.",
"type": "string"
},
"month": {
"description": "Specific month for intraday intervals (YYYY-MM format).",
"type": "string"
},
"symbol": {
"description": "The stock symbol (e.g., \"IBM\").",
"type": "string"
},
"time_period": {
"description": "Number of data points used to calculate the indicator.",
"type": "string"
}
},
"required": [
"symbol",
"interval",
"time_period"
],
"type": "object"
}