new line()
Line drawing tool. A line is a vector defined by two points that is infinite in both directions.
It inherits its properties from STX.Drawing.segment.
Methods
-
reconstruct(stx [, obj])
-
Reconstruct a line
Parameters:
Name Type Argument Description stxSTXChart The chart object
objobject <optional>
A drawing descriptor
Properties
Name Type Argument Description colstring <optional>
The line color
pnlstring <optional>
The panel name
ptrnstring <optional>
Optional pattern for line "solid","dotted","dashed". Defaults to solid.
lwnumber <optional>
Optional line width. Defaults to 1.
v0number <optional>
Value (price) for the first point
v1number <optional>
Value (price) for the second point
d0number <optional>
Date (string form) for the first point
d1number <optional>
Date (string form) for the second point
v0Bnumber <optional>
Computed outer Value (price) for the first point if original drawing was on intraday but now displaying on daily
v1Bnumber <optional>
Computed outer Value (price) for the second point if original drawing was on intraday but now displaying on daily
d0Bnumber <optional>
Computed outer Date (string form) for the first point if original drawing was on intraday but now displaying on daily
d1Bnumber <optional>
Computed outer Date (string form) for the second point if original drawing was on intraday but now displaying on daily
tzo0number <optional>
Offset of UTC from d0 in minutes
tzo1number <optional>
Offset of UTC from d1 in minutes