CreateChartObject
Creates a new chart object with specified parameters.
Syntax
СreateChartObject(
name: string,
objType: TObjectType,
window: number,
ftoDate1: FTODate,
price1: number,
ftoDate2?: FTODate,
price2?: number,
ftoDate3?: FTODate,
price3?: number,
isStatic?: boolean
): booleanParameters
Parameter
Type
Description
name
string
Unique identifier for the object
window
number
Chart window number where the object will be placed
price1
number
First price coordinate
price2
number
Optional. Second price coordinate (required for some objects)
price3
number
Optional. Third price coordinate (required for triangles)
isStatic
boolean
Optional. Whether the object is static (persists across timeframes)
Return Value
Returns boolean - true if the object was created successfully, false otherwise.
Description
The СreateChartObject method creates a new chart object with the specified parameters. Different object types require different sets of coordinates
Examples
Text Object
Rectangle Object
Fixed Object (Screen Coordinates)
Last updated