SARResponse

public class SARResponse

Response for the parabolic SAR (SAR), a trend-following stop and reversal indicator that trails price and accelerates toward it over time.

Unlike most single-output indicators, SAR does not extend one of the package's shared response bases: its metadata carries an acceleration factor and a maximum that none of the shared MetaData shapes accommodate, so it defines its own MetaData and parser instead.

Author

Sylvester Sefa-Yeboah

Since

1.1.0

Types

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

Properties

Link copied to clipboard
The API's error message, or null if the request succeeded.
Link copied to clipboard
The indicator's values, 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 values.
Link copied to clipboard
Returns the response's metadata.
Link copied to clipboard
public static SARResponse of(Map<String, Object> stringObjectMap)
Parses a raw API response into a SARResponse.
Link copied to clipboard
public String toString()