Skip to main content

IndicatorColorScheme

Package: velox.api.layer1.messages.indicators

Type: Interface

Description​

Describes colors given to certain indicator values when indicator is drawn using default lines on bottom panel.

Nested Classes​

  • IndicatorColorScheme.ColorDescription
  • IndicatorColorScheme.ColorIntervalResponse - Describes all color changes in given interval

Methods​

getColorFullName​

static String getColorFullName(String userName, Class<?> strategyClass)

getColors​

IndicatorColorScheme.ColorDescription[] getColors()

Return all used colors description.

getColorFor​

String getColorFor(Double value)

Return color that should be used for this value.

getColorIntervalsList​

IndicatorColorScheme.ColorIntervalResponse getColorIntervalsList(double valueFrom, double valueTo)

Parameters:

  • valueFrom -
  • valueTo -

Returns: intervals for all colors that should be used for values in interval [valueFrom, valueTo]

getMainColorName​

default String getMainColorName()

getDefaultColor​

default Color getDefaultColor()