Definition
Draws text in one of 5 available pre-defined fixed locations on panel 1 (price panel) of a chart.
Method Return Value
An ITextFixed object that represents the draw object.
Syntax
DrawTextFixed(string tag, string text, TextPosition textPosition)
DrawTextFixed(string tag, string text, TextPosition textPosition, Color textColor, Font font, Color outlineColor, Color areaColor, int areaOpacity)
Parameters
tag
|
A user defined unique id used to reference the draw object. For example, if you pass in a value of "myTag", each time this tag is used, the same draw object is modified. If unique tags are used each time, a new draw object will be created each time.
|
text
|
The text you wish to draw
|
TextPosition
|
TextPosition.BottomLeft
TextPosition.BottomRight
TextPosition.Center
TextPosition.TopLeft
TextPosition.TopRight
|
textColor
|
The draw object color (reference)
|
font
|
The type of font used (reference). Default is Arial 8px.
|
outlineColor
|
Text box outline color (reference)
|
areaColor
|
Text box back color (reference)
|
areaOpacity
|
Sets the level of transparency for the fill color. Valid values between 0 - 10. (0 = completely transparent, 10 = no opacity)
|
Examples
DrawTextFixed("tag1", "Text to draw", TextPosition.TopRight);
|
|