Package velox.api.layer0.data
Class IndicatorDefinitionUserMessage
java.lang.Object
velox.api.layer0.data.IndicatorDefinitionUserMessage
@Deprecated
public class IndicatorDefinitionUserMessage
extends java.lang.Object
Deprecated.
Allows defining indicators, similar to Recorder API. Will be removed in the
future in favor of L2-api based solution
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
alias
Deprecated.java.awt.image.BufferedImage
icon
Deprecated.int
iconOffsetX
Deprecated.int
iconOffsetY
Deprecated.int
id
Deprecated.java.lang.String
indicatorName
Deprecated.java.awt.Color
lineColor
Deprecated.short
mainLineStyleMask
Deprecated.short
mainLineStyleMultiplier
Deprecated.int
mainLineWidth
Deprecated.short
rightLineStyleMask
Deprecated.short
rightLineStyleMultiplier
Deprecated.int
rightLineWidth
Deprecated.boolean
showOnMainChart
Deprecated.java.lang.String
valueFormat
Deprecated. -
Constructor Summary
Constructors Constructor Description IndicatorDefinitionUserMessage(int id, java.lang.String alias, short mainLineStyleMask, short mainLineStyleMultiplier, int mainLineWidth, java.awt.Color lineColor, short rightLineStyleMask, short rightLineStyleMultiplier, int rightLineWidth, java.awt.image.BufferedImage icon, int iconOffsetX, int iconOffsetY, boolean showOnMainChart)
Deprecated.IndicatorDefinitionUserMessage(int id, java.lang.String alias, java.lang.String indicatorName, short mainLineStyleMask, short mainLineStyleMultiplier, int mainLineWidth, java.awt.Color lineColor, short rightLineStyleMask, short rightLineStyleMultiplier, int rightLineWidth, java.awt.image.BufferedImage icon, int iconOffsetX, int iconOffsetY, boolean showOnMainChart)
Deprecated.Define new custom indicatorIndicatorDefinitionUserMessage(int id, java.lang.String alias, java.lang.String indicatorName, short mainLineStyleMask, short mainLineStyleMultiplier, int mainLineWidth, java.awt.Color lineColor, short rightLineStyleMask, short rightLineStyleMultiplier, int rightLineWidth, java.awt.image.BufferedImage icon, int iconOffsetX, int iconOffsetY, boolean showOnMainChart, java.lang.String valueFormat)
Deprecated.Define new custom indicator -
Method Summary
-
Field Details
-
id
public final int idDeprecated. -
alias
public final java.lang.String aliasDeprecated. -
indicatorName
public final java.lang.String indicatorNameDeprecated. -
mainLineStyleMask
public final short mainLineStyleMaskDeprecated. -
mainLineStyleMultiplier
public final short mainLineStyleMultiplierDeprecated. -
mainLineWidth
public final int mainLineWidthDeprecated. -
lineColor
public final java.awt.Color lineColorDeprecated. -
rightLineStyleMask
public final short rightLineStyleMaskDeprecated. -
rightLineStyleMultiplier
public final short rightLineStyleMultiplierDeprecated. -
rightLineWidth
public final int rightLineWidthDeprecated. -
icon
public final java.awt.image.BufferedImage iconDeprecated. -
iconOffsetX
public final int iconOffsetXDeprecated. -
iconOffsetY
public final int iconOffsetYDeprecated. -
showOnMainChart
public final boolean showOnMainChartDeprecated. -
valueFormat
public final java.lang.String valueFormatDeprecated.
-
-
Constructor Details
-
IndicatorDefinitionUserMessage
public IndicatorDefinitionUserMessage(int id, java.lang.String alias, java.lang.String indicatorName, short mainLineStyleMask, short mainLineStyleMultiplier, int mainLineWidth, java.awt.Color lineColor, short rightLineStyleMask, short rightLineStyleMultiplier, int rightLineWidth, java.awt.image.BufferedImage icon, int iconOffsetX, int iconOffsetY, boolean showOnMainChart, java.lang.String valueFormat)Deprecated.Define new custom indicator- Parameters:
id
- indicator id (used to reference it later)alias
- alias of the instrument indicator is applied toindicatorName
- name shown in Bookmap UImainLineStyleMask
- style of the line to the left of current time line, one bits mean visible pixels, zero bits - invisible; use 0 to hide the linemainLineStyleMultiplier
- how many pixels correspond to one bit of mainLineStyleMaskmainLineWidth
- width of the line to the left of current time linelineColor
- color of the linerightLineStyleMask
- style of the line to the right of current time line (extension), one bits mean visible pixels, zero bits - invisible; use 0 to hide the linerightLineStyleMultiplier
- how many pixels correspond to one bit of rightLineStyleMaskrightLineWidth
- width of the line to the right of current time lineicon
- icon displayed at points defined byIndicatorPointUserMessage
; use null if you don't want anyiconOffsetX
- offset of the icon by X axis (positive offset moves icon to the right)iconOffsetY
- offset of the icon by Y axis (positive offset moves icon to the top)showOnMainChart
- true to show on main chart, false to show on bottom panelvalueFormat
- format used to convert value to string; null keeps default formatting, non-null values are passed toString.format(String, Object...)
- Throws:
java.util.IllegalFormatException
- invalidvalueFormat
argument
-
IndicatorDefinitionUserMessage
public IndicatorDefinitionUserMessage(int id, java.lang.String alias, java.lang.String indicatorName, short mainLineStyleMask, short mainLineStyleMultiplier, int mainLineWidth, java.awt.Color lineColor, short rightLineStyleMask, short rightLineStyleMultiplier, int rightLineWidth, java.awt.image.BufferedImage icon, int iconOffsetX, int iconOffsetY, boolean showOnMainChart)Deprecated.Define new custom indicator- Parameters:
id
- indicator id (used to reference it later)alias
- alias of the instrument indicator is applied toindicatorName
- name shown in Bookmap UImainLineStyleMask
- style of the line to the left of current time line, one bits mean visible pixels, zero bits - invisible; use 0 to hide the linemainLineStyleMultiplier
- how many pixels correspond to one bit of mainLineStyleMaskmainLineWidth
- width of the line to the left of current time linelineColor
- color of the linerightLineStyleMask
- style of the line to the right of current time line (extension), one bits mean visible pixels, zero bits - invisible; use 0 to hide the linerightLineStyleMultiplier
- how many pixels correspond to one bit of rightLineStyleMaskrightLineWidth
- width of the line to the right of current time lineicon
- icon displayed at points defined byIndicatorPointUserMessage
; use null if you don't want anyiconOffsetX
- offset of the icon by X axis (positive offset moves icon to the right)iconOffsetY
- offset of the icon by Y axis (positive offset moves icon to the top)showOnMainChart
- true to show on main chart, false to show on bottom panel
-
IndicatorDefinitionUserMessage
@Deprecated public IndicatorDefinitionUserMessage(int id, java.lang.String alias, short mainLineStyleMask, short mainLineStyleMultiplier, int mainLineWidth, java.awt.Color lineColor, short rightLineStyleMask, short rightLineStyleMultiplier, int rightLineWidth, java.awt.image.BufferedImage icon, int iconOffsetX, int iconOffsetY, boolean showOnMainChart)Deprecated.
-