GetObjectEnumProperty

Retrieves an enumerated property value from a chart object.

Syntax

GetObjectEnumProperty(
    chartId: number,
    objectName: string,
    propId: ENUM_OBJECT_PROPERTY,
    propModifier: number = 0
): number

Parameters

  • chartId: number - The identifier of the chart

  • objectName: string - The name of the object

  • propId: ENUM_OBJECT_PROPERTY - The property identifier

  • propModifier: number - Optional. Property modifier for indexed values (default: 0)

Return Value

Returns a number representing the property value.

Description

The GetObjectEnumProperty method retrieves enumerated property values from a specified chart object. This method is specifically designed for working with enumerated properties like price points and Fibonacci levels.

Available properties (ENUM_OBJECT_PROPERTY):

  • OBJECT_PROPERTY_PRICE: Price coordinate of a point

  • OBJECT_PROPERTY_LEVEL_VALUE: Value of a Fibonacci level

Example

Last updated