Package velox.api.layer0.data
Class IndicatorDefinitionUserMessage
java.lang.Object
velox.api.layer0.data.IndicatorDefinitionUserMessage
Deprecated.
Allows defining indicators, similar to Recorder API. You may use it for now
in L0 addons, but for L1 use
Indicator API
or the Screen Space Painter API
instead.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringDeprecated.final BufferedImageDeprecated.final intDeprecated.final intDeprecated.final intDeprecated.final StringDeprecated.final ColorDeprecated.final shortDeprecated.final shortDeprecated.final intDeprecated.final shortDeprecated.final shortDeprecated.final intDeprecated.final booleanDeprecated.final StringDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionIndicatorDefinitionUserMessage(int id, String alias, short mainLineStyleMask, short mainLineStyleMultiplier, int mainLineWidth, Color lineColor, short rightLineStyleMask, short rightLineStyleMultiplier, int rightLineWidth, BufferedImage icon, int iconOffsetX, int iconOffsetY, boolean showOnMainChart) Deprecated.IndicatorDefinitionUserMessage(int id, String alias, String indicatorName, short mainLineStyleMask, short mainLineStyleMultiplier, int mainLineWidth, Color lineColor, short rightLineStyleMask, short rightLineStyleMultiplier, int rightLineWidth, BufferedImage icon, int iconOffsetX, int iconOffsetY, boolean showOnMainChart) Deprecated.Define new custom indicatorIndicatorDefinitionUserMessage(int id, String alias, String indicatorName, short mainLineStyleMask, short mainLineStyleMultiplier, int mainLineWidth, Color lineColor, short rightLineStyleMask, short rightLineStyleMultiplier, int rightLineWidth, BufferedImage icon, int iconOffsetX, int iconOffsetY, boolean showOnMainChart, String valueFormat) Deprecated.Define new custom indicator -
Method Summary
-
Field Details
-
id
public final int idDeprecated. -
alias
Deprecated. -
indicatorName
Deprecated. -
mainLineStyleMask
public final short mainLineStyleMaskDeprecated. -
mainLineStyleMultiplier
public final short mainLineStyleMultiplierDeprecated. -
mainLineWidth
public final int mainLineWidthDeprecated. -
lineColor
Deprecated. -
rightLineStyleMask
public final short rightLineStyleMaskDeprecated. -
rightLineStyleMultiplier
public final short rightLineStyleMultiplierDeprecated. -
rightLineWidth
public final int rightLineWidthDeprecated. -
icon
Deprecated. -
iconOffsetX
public final int iconOffsetXDeprecated. -
iconOffsetY
public final int iconOffsetYDeprecated. -
showOnMainChart
public final boolean showOnMainChartDeprecated. -
valueFormat
Deprecated.
-
-
Constructor Details
-
IndicatorDefinitionUserMessage
public IndicatorDefinitionUserMessage(int id, String alias, String indicatorName, short mainLineStyleMask, short mainLineStyleMultiplier, int mainLineWidth, Color lineColor, short rightLineStyleMask, short rightLineStyleMultiplier, int rightLineWidth, BufferedImage icon, int iconOffsetX, int iconOffsetY, boolean showOnMainChart, 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:
IllegalFormatException- invalidvalueFormatargument
-
IndicatorDefinitionUserMessage
public IndicatorDefinitionUserMessage(int id, String alias, String indicatorName, short mainLineStyleMask, short mainLineStyleMultiplier, int mainLineWidth, Color lineColor, short rightLineStyleMask, short rightLineStyleMultiplier, int rightLineWidth, 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, String alias, short mainLineStyleMask, short mainLineStyleMultiplier, int mainLineWidth, Color lineColor, short rightLineStyleMask, short rightLineStyleMultiplier, int rightLineWidth, BufferedImage icon, int iconOffsetX, int iconOffsetY, boolean showOnMainChart) Deprecated.
-