DrawingLine
class
Plots a drawing line tool
Properties
ChartId string | Chart Id in which was created given drawing |
CreationMode CreationMode | Drawing creation mode - manually or from code/script |
ExtendLeft bool | Allows to extend left |
ExtendRight bool | Allows to extend right |
Id string | Current drawing identificator |
LabelBackgroundColor Color | Sets/Gets a label background color |
LabelFont Font | Sets/Gets a label font |
LabelTextColor Color | Sets/Gets a label color |
LineColor Color | Drawing's contour line color |
LineDataFormat DrawingLineDataFormat | Sets/Gets line data format |
LineStyle DrawingLineStyle | Drawing's contour line style |
LineWidth int | Drawing's contour line width |
MoveToBackground bool | Prints drawing behind the chart |
RayStyle DrawingLineStyle | Sets/Gets a ray style |
State DrawingState | Drawing locking state - locked or unlocked(can be managed from the terminal) |
SynchronizeWithCharts bool | Represents drawing in all charts that had same Instrument |
Constructors
DrawingLine (TimePrice point1, TimePrice point2, int windowIndex) | Constructor for drawing line tool |
Methods
GetPoint (int pointIndex) Return: TimePrice | returns point coordinates in a chart measure format - time(X) price(Y) |
SetPoint (int pointIndex, TimePrice newPoint) Return: void | sets drawing's point coordinates in a chart measure format - time(X) price(Y) |