ObjProp

An enumeration that defines the properties that can be accessed for chart objects.

Values

Value
Description

OBJPROP_NAME

Object name

OBJPROP_TIME1

Time coordinate of the first point

OBJPROP_PRICE1

Price coordinate of the first point

OBJPROP_TIME2

Time coordinate of the second point

OBJPROP_PRICE2

Price coordinate of the second point

OBJPROP_TIME3

Time coordinate of the third point

OBJPROP_PRICE3

Price coordinate of the third point

OBJPROP_COLOR

Object color

OBJPROP_FILLCOLOR

Fill color for filled objects

OBJPROP_STYLE

Line style (see TPenStyle)

OBJPROP_WIDTH

Line width in pixels

OBJPROP_OPACITY

Object opacity (0-255)

OBJPROP_FILLINSIDE

Fill object interior

BORDER

Draw border around object

OBJPROP_BACK

Draw object behind price bars

OBJPROP_SCREENCOORDS

Use screen coordinates instead of price/time

OBJPROP_XDISTANCE

Horizontal offset in pixels

OBJPROP_YDISTANCE

Vertical offset in pixels

OBJPROP_XSIZE

Width in pixels

OBJPROP_YSIZE

Height in pixels

OBJPROP_ANGLE

Text rotation angle in degrees

OBJPROP_EXTEND_RIGHT

Extend object to the right

OBJPROP_MIDDLE_LINE

Draw middle line (TObjectType.RECTANGLE)

OBJPROP_TEXT

Text content for text objects

OBJPROP_FONTNAME

Font name for text objects

OBJPROP_FONTSIZE

Font size for text objects

OBJPROP_TEXT_PARAMS

Text parameters (font style)

OBJPROP_ANCHOR_POINT

Anchor point for text objects (see AnchorPoint)

OBJPROP_FIBOLEVELS

Number of levels for Fibonacci tools

OBJPROP_FIBOLEVELN

Fibonacci level number

OBJPROP_LEVELVALUE

Level value for Fibonacci and Gann Box

OBJPROP_LEVELCOLOR

Level color for Fibonacci tools

OBJPROP_LEVELSTYLE

Level style for Fibonacci tools

OBJPROP_LEVELWIDTH

Level width for Fibonacci tools

OBJPROP_OPACITY

Object opacity (0-255)

OBJPROP_ANGLE

Text rotation angle in degrees

Example Usage

Getting Object Properties

Setting Basic Properties

Text Properties

Rectangle Properties

Screen Coordinates Properties

Last updated