Definition
Draws text.
Syntax
DrawText(string tag, string text, int barsAgo, double y, Color color)
DrawText(string tag, bool autoScale, string text, int barsAgo, double y, double yPixelOffset, Color textColor, Font font, StringAlignment alignment, 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. |
|
autoScale |
Determines if the draw object will be included in the y-axis scale. Default value is false. |
|
text |
The text you wish to draw |
|
barsAgo |
The bar (x axis co-ordinate) where the draw object will be drawn. For example, a value of 10 would paint the draw object 10 bars back. |
|
y |
The y co-ordinate location the object will be drawn |
|
yPixelOffset |
The offset value in pixels from the specified y price value |
|
textColor |
The draw object text color (reference) |
|
font |
The type of font used (reference) |
|
alignment |
StringAlignment.Center
|
|
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
|