Moving Average Convergence/Divergence (MACD)
GET
/v1/indicators/macd/{indicesTicker}
Retrieve the Moving Average Convergence/Divergence (MACD) for a specified ticker over a defined time range. MACD is a momentum indicator derived from two moving averages, helping to identify trend strength, direction, and potential trading signals.
Use Cases: Momentum analysis, signal generation (crossover events), spotting overbought/oversold conditions, and confirming trend directions.
Plan Accessloading..
Plan
Recency
End-of-day
15-minute delayed
Real-time
Real-time
Plan Recencyloading..
Plan
History
All history
All history
All history
All history
Plan Historyloading..
Path Parameters
indicesTicker
string
required
The ticker symbol for which to get MACD data.
Query Parameters
timestamp
string
Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.
timespan
enum (string)
The size of the aggregate time window.
adjusted
boolean
Whether or not the aggregates used to calculate the MACD are adjusted for splits. By default, aggregates are adjusted.
Set this to false to get results that are NOT adjusted for splits.
short_window
integer
The short window size used to calculate MACD data.
long_window
integer
The long window size used to calculate MACD data.
signal_window
integer
The window size used to calculate the MACD signal line.
series_type
enum (string)
The value in the aggregate which will be used to calculate the MACD. i.e. 'close' will result in using close values to
calculate the MACD.
expand_underlying
boolean
Whether or not to include the aggregates used to calculate this indicator in the response.
order
enum (string)
The order in which to return the results, ordered by timestamp.
limit
integer
Limit the number of results returned, default is 10 and max is 5000
Response Attributes
next_url
string
optional
If present, this value can be used to fetch the next page of data.
request_id
string
A request id assigned by the server.
results
object
The results of the MACD indicator calculation.
underlying
object
optional
The underlying aggregates used.
values
array (object)
optional
Each entry in the values array represents MACD indicator data for a specific timestamp and includes:
status
string
The status of this request's response.
Code Examples
Query URL
GET
loading...Run query unavailable
Create account or sign in to Polygon
Scroll to see updated query response
Response Object