Skip to main content

Layer1ApiUserMessageModifyIndicator.Builder

Package: velox.api.layer1.messages.indicators

Type: Class (static final)

Enclosing class: Layer1ApiUserMessageModifyIndicator

Inheritance: java.lang.Object รขโ€ โ€™ Layer1ApiUserMessageModifyIndicator.Builder

Descriptionโ€‹

Builder to build Layer1ApiUserMessageModifyIndicator.

Constructorsโ€‹

Builderโ€‹

public Builder(Layer1ApiUserMessageModifyIndicator message)

Methodsโ€‹

setIsAddโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setIsAdd(boolean isAdd)

Parameters:

  • isAdd - true if message is adding indicator, false if it's removing indicator

Returns: this builder

setIndicatorColorSchemeโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setIndicatorColorScheme(IndicatorColorScheme indicatorColorScheme)

Parameters:

  • indicatorColorScheme - if not null, indicator colors will be assign according to given color scheme

Returns: this builder

setColorInterfaceโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setColorInterface(Layer1IndicatorColorInterface colorInterface)

Parameters:

  • colorInterface - this will be used to set / get colors described by indicatorColorScheme

setIndicatorLineStyleโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setIndicatorLineStyle(IndicatorLineStyle indicatorLineStyle)

Parameters:

  • indicatorLineStyle - indicator line style, if null default line style will be used

Returns: this builder

setDefaultTooltipBackgrondColorโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setDefaultTooltipBackgrondColor(Color defaultTooltipBackgrondColor)

Parameters:

  • defaultTooltipBackgrondColor - if user has no settings for this indicator color, this color will be used as default for drawing text background in graph tooltip

Returns: this builder

setDefaultTooltipTextColorโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setDefaultTooltipTextColor(Color defaultTooltipTextColor)

Parameters:

  • defaultTooltipTextColor - if user has no settings for this indicator color, this color will be used as default for drawing text in graph tooltip (background will be of setDefaultTooltipBackgrondColor(Color))

Returns: this builder

setIndicatorDisplayLogicโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setIndicatorDisplayLogic(IndicatorDisplayLogic indicatorDisplayLogic)

Parameters:

  • indicatorDisplayLogic - can be null, default logic will be applied. If provided logic violates provided Layer1ApiUserMessageModifyIndicator.indicatorMinMarginPriceOut, Layer1ApiUserMessageModifyIndicator.indicatorMaxMarginPriceOut or Layer1ApiUserMessageModifyIndicator.minLimitsRange, limits will be modified to fit into provided arguments

Returns: this builder

setIndicatorMinMarginPriceOutโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setIndicatorMinMarginPriceOut(Double indicatorMinMarginPriceOut)

Parameters:

  • indicatorMinMarginPriceOut - if not null, indicator's limits will be recalculated when there is less then that amount of indicator range empty space by either border

Returns: this builder

setIndicatorMaxMarginPriceOutโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setIndicatorMaxMarginPriceOut(Double indicatorMaxMarginPriceOut)

Parameters:

  • indicatorMaxMarginPriceOut - if not null, indicator's limits will be recalculated when there is more then that amount of indicator range empty space by either border

Returns: this builder

setMinLimitsRangeโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setMinLimitsRange(Double minLimitsRange)

Parameters:

  • minLimitsRange - if not null, indicator's limits range (max - min value) can't be less then minLimitsRange

Returns: this builder

setBoundsInfoโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setBoundsInfo(BoundsInfo boundsInfo)

Parameters:

  • boundsInfo - minimum and maximum values of widget, or null if they should be determined on fly can be null to indicate no predetermined bounds

Returns: this builder

setGraphTypeโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setGraphType(Layer1ApiUserMessageModifyIndicator.GraphType graphType)

Parameters:

  • graphType - position of a graph (or NONE). Null will default to NONE

Returns: this builder

setIsSupportWidgetโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setIsSupportWidget(boolean isSupportWidget)

Parameters:

  • isSupportWidget - true if widget is supported, false if widget is not supported

Returns: this builder

setIsShowColorSettingsโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setIsShowColorSettings(boolean isShowColorSettings)

Parameters:

  • isShowColorSettings - If true, indicator popup menu (if one exists) will have 'Setting' entry that will open indicator settings dialog If indicator is of Layer1ApiUserMessageModifyIndicator.GraphType.BOTTOM, settings button will be enabled based on this property

Returns: this builder

setIsEnableSettingsFromConfigPopupโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setIsEnableSettingsFromConfigPopup(boolean isEnableSettingsFromConfigPopup)

Parameters:

  • isEnableSettingsFromConfigPopup - if true, config popup settings icon will open corresponding strategies dialog tab

Returns: this builder

setOnlineCalculatableโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setOnlineCalculatable(OnlineCalculatable onlineCalculatable)

Parameters:

  • onlineCalculatable - if not null, indicator will be calculated for chart online

Returns: this builder

setAliasFilerโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setAliasFiler(AliasFilter aliasFilter)

Parameters:

  • aliasFilter - if null, indicator will be displayed for all aliases, otherwise only for ones defined by filter

Returns: this builder

setWidgetDisplayInfoโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setWidgetDisplayInfo(WidgetDisplayInfo widgetDisplayInfo)

Parameters:

  • widgetDisplayInfo - information about how widget should display values

Returns: this builder

setIsLineEnabledByDefaultโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setIsLineEnabledByDefault(boolean isLineEnabledByDefault)

Parameters:

  • isLineEnabledByDefault - true if line should be shown by default when strategy is first added, false otherwise

Returns: this builder

setIsWidgetEnabledByDefaultโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setIsWidgetEnabledByDefault(boolean isWidgetEnabledByDefault)

Parameters:

  • isWidgetEnabledByDefault - true if widget should be shown by default when strategy is first added, false otherwise

Returns: this builder

setIndicatorContextMenuInformationโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setIndicatorContextMenuInformation(IndicatorContextMenuInformation indicatorContextMenuInformation)

Parameters:

  • indicatorContextMenuInformation - information about custom context menus entries

Returns: this builder

setHorizontalValueLinesInfoโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setHorizontalValueLinesInfo(HorizontalValueLinesInfo horizontalValueLinesInfo)

Parameters:

  • horizontalValueLinesInfo - information about horizontal lines

Returns: this builder

buildโ€‹

public Layer1ApiUserMessageModifyIndicator build()

extendFullNameโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder extendFullName(String suffix)

Allows extending full name to register same user name for multiple aliases

Parameters:

  • suffix - suffix to add to full name

setGraphLayerRenderPriorityโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setGraphLayerRenderPriority(int graphLayerRenderPriority)

Determines order of layers rendered on chart for indicator line. Higher value will be rendered later Can be arbitrary value or one of predefined Layer1ApiUserMessageModifyIndicator.LayerRenderPriority values Default is Layer1ApiUserMessageModifyIndicator.LayerRenderPriority.ABOVE_BBO

Parameters:

  • graphLayerRenderPriority - graph layer render priority

setGraphLayerRenderPriorityโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setGraphLayerRenderPriority(Layer1ApiUserMessageModifyIndicator.LayerRenderPriority graphLayerRenderPriority)

Determines order of layers rendered on chart for indicator line. Higher value will be rendered later Can be arbitrary value or one of predefined Layer1ApiUserMessageModifyIndicator.LayerRenderPriority values Default is Layer1ApiUserMessageModifyIndicator.LayerRenderPriority.ABOVE_BBO

Parameters:

  • graphLayerRenderPriority - graph layer render priority

setIconLayerRanderPriotityโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setIconLayerRanderPriotity(int iconLayerRanderPriotity)

Determines order of layers rendered on chart for indicator icons. Higher value will be rendered later Can be arbitrary value or one of predefined Layer1ApiUserMessageModifyIndicator.LayerRenderPriority values Default is Layer1ApiUserMessageModifyIndicator.LayerRenderPriority.TOP

Parameters:

  • iconLayerRanderPriotity - icon layer render priority

setIconLayerRanderPriotityโ€‹

public Layer1ApiUserMessageModifyIndicator.Builder setIconLayerRanderPriotity(Layer1ApiUserMessageModifyIndicator.LayerRenderPriority iconLayerRanderPriotity)

Determines order of layers rendered on chart for indicator icons. Higher value will be rendered later Can be arbitrary value or one of predefined Layer1ApiUserMessageModifyIndicator.LayerRenderPriority values Default is Layer1ApiUserMessageModifyIndicator.LayerRenderPriority.TOP

Parameters:

  • iconLayerRanderPriotity - icon layer render priority