Package velox.api.layer1.utils
Class CalculatePricesResult
java.lang.Object
velox.api.layer1.utils.CalculatePricesResult
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleRepresents the height of the empty space between the chart bottom and min value of the indicatordoubleRepresents the height of the empty space between the chart top and max value of the indicatordoublePrice value corresponding to bottom pixel of chartString[]doublePrice value corresponding to top pixel of chartdoubledouble -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
labels
-
firstValue
public double firstValuePrice value corresponding to bottom pixel of chart -
lastValue
public double lastValuePrice value corresponding to top pixel of chart -
multiplier
public double multiplier -
emptyTop
public double emptyTopRepresents the height of the empty space between the chart top and max value of the indicator -
emptyBottom
public double emptyBottomRepresents the height of the empty space between the chart bottom and min value of the indicator -
priceStep
public double priceStep
-
-
Constructor Details
-
CalculatePricesResult
public CalculatePricesResult()
-
-
Method Details
-
getScore
public double getScore()Calculates the score based on empty space size. More empty space the bigger the score (worse)- Returns:
- score
-
isBetterThan
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
-