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 CIQ.Drawing.segment.
Methods
-
reconstruct(stx [, obj])
-
Reconstruct a line
Parameters:
Name Type Argument Description stx
CIQ.ChartEngine The chart object
obj
object <optional>
A drawing descriptor
Properties
Name Type Argument Description col
string <optional>
The line color
pnl
string <optional>
The panel name
ptrn
string <optional>
Optional pattern for line "solid","dotted","dashed". Defaults to solid.
lw
number <optional>
Optional line width. Defaults to 1.
v0
number <optional>
Value (price) for the first point
v1
number <optional>
Value (price) for the second point
d0
number <optional>
Date (string form) for the first point
d1
number <optional>
Date (string form) for the second point
v0B
number <optional>
Computed outer Value (price) for the first point if original drawing was on intraday but now displaying on daily
v1B
number <optional>
Computed outer Value (price) for the second point if original drawing was on intraday but now displaying on daily
d0B
number <optional>
Computed outer Date (string form) for the first point if original drawing was on intraday but now displaying on daily
d1B
number <optional>
Computed outer Date (string form) for the second point if original drawing was on intraday but now displaying on daily
tzo0
number <optional>
Offset of UTC from d0 in minutes
tzo1
number <optional>
Offset of UTC from d1 in minutes
fld
string <optional>
Field which drawing is associated with
prm
number <optional>
Whether the drawing is permanent
hdn
number <optional>
Whether the drawing is hidden
- Since:
-
9.0.0 Added
prm
andhdn
property toobj
parameter.