CalculatePricesResult
Package: velox.api.layer1.utils
Type: Class
Inheritance: java.lang.Object รขโ โ velox.api.layer1.utils.CalculatePricesResult
Fieldsโ
labelsโ
public String[] labels
firstValueโ
public double firstValue
Price value corresponding to bottom pixel of chart
lastValueโ
public double lastValue
Price value corresponding to top pixel of chart
multiplierโ
public double multiplier
emptyTopโ
public double emptyTop
Represents the height of the empty space between the chart top and max value of the indicator
emptyBottomโ
public double emptyBottom
Represents the height of the empty space between the chart bottom and min value of the indicator
priceStepโ
public double priceStep
Constructorsโ
CalculatePricesResultโ
public CalculatePricesResult()
Methodsโ
getScoreโ
public double getScore()
Calculates the score based on empty space size. More empty space the bigger the score (worse)
Returns: score
isBetterThanโ
public boolean isBetterThan(CalculatePricesResult other)
Compares which indicator range is better based on score (unused empty space size). Less empty space is better.
Parameters:
other- CalculatePricesResult to compare with
Returns: true if this result is better than other
toStringโ
public String toString()
Overrides: toString in class Object