Class PriceData
java.lang.Object
com.motivewave.platform.sdk.common.PriceData
Represents price related information for a price bar. Use this class to provide data
for displaying price bars. Optionally a color may be specified. If no color is specified the default
colors defined for the chart will be used.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
getClose()
Gets the closing value for the bar.getColor()
Gets the color for this bar (null for default bar colors).float
getHigh()
Gets the high value for the bar.float
getLow()
Gets the low value for the bar.float
getOpen()
Gets the opening value for the bar.float
getValue
(Enums.BarInput input)
-
Constructor Details
-
PriceData
public PriceData(float open, float high, float low, float close) Constructor. Creates price data for a particular bar.- Parameters:
open
- - opening pricehigh
- - high price for the barlow
- - low price for the barclose
- - closing price for the bar
-
PriceData
Constructor. Creates price data for a particular bar.- Parameters:
open
- - opening pricehigh
- - high price for the barlow
- - low price for the barclose
- - closing price for the barcolor
- - color to paint the bar (null for default bar color)
-
-
Method Details
-
getOpen
public float getOpen()Gets the opening value for the bar.- Returns:
- opening price
-
getHigh
public float getHigh()Gets the high value for the bar.- Returns:
- high price
-
getLow
public float getLow()Gets the low value for the bar.- Returns:
- low price
-
getClose
public float getClose()Gets the closing value for the bar.- Returns:
- closing price
-
getColor
Gets the color for this bar (null for default bar colors).- Returns:
- bar color
-
getValue
-