Class: horizontal

STX.Drawing. horizontal

new horizontal()

Horizontal line drawing tool. The horizontal line extends infinitely in both directions.

It inherits its properties from STX.Drawing.segment


reconstruct(stx [, obj])

Reconstruct a horizontal

Name Type Argument Description
stx STXChart

The chart object

obj object <optional>

A drawing descriptor

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

d0 number <optional>

Date (string form) for the first point

al boolean <optional>

True to include an axis label

tzo0 number <optional>

Offset of UTC from d0 in minutes