Definition
Draws text in one of 5 available pre-defined fixed locations on panel 1 (price panel) of a chart.
Syntax
DrawTextFixed(string tag, string text, TextPosition textPosition)
DrawTextFixed(string tag, string text, TextPosition textPosition, Color textColor, Font font, Color outlineColor, Color backColor, int opacity)
Method Of
Custom Indicator, Custom Strategy
|
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 text color (reference) |
|
font |
The type of font used (reference) |
|
outlineColor |
Text box outline color (reference) |
|
backColor |
Text box back color (reference) |
|
opacity |
Sets the level of transparency for the fill color. Valid values between 1 - 10. |
Examples
|
// Draws text in the upper right corner of panel 1
|