SimpleIndicatorUnit

A single date/value pair for any indicator that reports one numeric value per date — every family built on PeriodicResponse, PeriodicSeriesResponse, SeriesResponse, SimpleIndicatorResponse, and PriceOscillatorResponse reuses this class rather than defining its own unit type, unlike multi-field indicators such as BBANDS or STOCH, which define their own *IndicatorUnit classes.

Author

Sylvester Sefa-Yeboah

Since

1.1.0

Constructors

Link copied to clipboard
public void SimpleIndicatorUnit(String date, Double value)
Creates a unit without an indicator key.
public void SimpleIndicatorUnit(String date, Double value, String indicatorKey)
Creates a unit.

Properties

Link copied to clipboard
public String date
The date this value applies to.
Link copied to clipboard
public Double value
The indicator's value on date.

Functions

Link copied to clipboard
public String getDate()
Returns the date this value applies to.
Link copied to clipboard
public Double getValue()
Returns the indicator's value on this unit's date.
Link copied to clipboard
public String toString()