CreateChartObject
Creates a new chart object with specified parameters.
Syntax
Parameters
name
string
Unique identifier for the object
objType
Type of object to create (e.g., trend line, rectangle)
window
number
Chart window number where the object will be placed
ftoDate1
First time coordinate
price1
number
First price coordinate
ftoDate2
Optional. Second time coordinate (required for some objects)
price2
number
Optional. Second price coordinate (required for some objects)
ftoDate3
Optional. Third time coordinate (required for triangles)
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
Example
Last updated