Class: channel

STX.Drawing. channel


new channel()

Channel drawing tool. Creates a channel within 2 parallel line segments.

It inherits its properties from STX.Drawing.segment.

Version:
  • ChartIQ Advanced Package

Methods


reconstruct(stx [, obj])

Reconstruct a channel

Parameters:
Name Type Argument Description
stx STXChart

The chart object

obj object <optional>

A drawing descriptor

Properties
Name Type Argument Description
col string <optional>

The line color

fc string <optional>

The fill 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

v2 number <optional>

Value (price) for the second point of the opposing parallel channel line

d0 number <optional>

Date (string form) for the first point

d1 number <optional>

Date (string form) for the second point

tzo0 number <optional>

Offset of UTC from d0 in minutes

tzo1 number <optional>

Offset of UTC from d1 in minutes