MACDResponse

public class MACDResponse

Response for moving average convergence / divergence (MACD), the difference between a fast and slow EMA of a price series, together with a signal line that is itself an EMA of that difference.

MACD does not extend one of the package's shared response bases: its three-value reading needs MACDIndicatorUnit rather than the single-value SimpleIndicatorUnit the shared bases use. MACDEXTResponse reuses this same unit type for its configurable-moving-average variant.

Author

Sylvester Sefa-Yeboah

Since

1.1.0

Types

Link copied to clipboard
public class MACDParser extends DefaultParser<MACDResponse>
Parser for MACDResponse.
Link copied to clipboard
public class MetaData
Metadata describing the request that produced a MACDResponse, echoed back by the API alongside the indicator values themselves.

Properties

Link copied to clipboard
The API's error message, or null if the request succeeded.
Link copied to clipboard
The indicator's MACD/signal/histogram readings, one unit per date in the requested series.
Link copied to clipboard
The response's metadata, echoing the request's parameters.

Functions

Link copied to clipboard
Returns the API's error message.
Link copied to clipboard
Returns the indicator's MACD/signal/histogram readings.
Link copied to clipboard
Returns the response's metadata.
Link copied to clipboard
public static MACDResponse of(Map<String, Object> stringObjectMap)
Parses a raw API response into a MACDResponse.
Link copied to clipboard
public String toString()