Object Functions
This is the group of functions intended for working with graphic objects relating to any specified chart.
Function |
Action |
Creates an object of the specified type in a specified chart |
|
Returns the name of an object of the corresponding type in the specified chart (specified chart subwindow) |
|
Removes the object with the specified name from the specified chart (from the specified chart subwindow) |
|
Removes all objects of the specified type from the specified chart (from the specified chart subwindow) |
|
Searches for an object with the specified ID by the name |
|
Returns the time value for the specified object price value |
|
Returns the price value of an object for the specified time |
|
Changes the coordinates of the specified object anchor point |
|
Returns the number of objects of the specified type in the specified chart (specified chart subwindow) |
|
Returns the double value of the corresponding object property |
|
Returns the integer value of the corresponding object property |
|
Returns the string value of the corresponding object property |
|
Sets the value of the corresponding object property |
|
Sets the value of the corresponding object property |
|
Sets the value of the corresponding object property |
Every graphical object should have a name unique within one chart, including its subwindows. Changing of a name of a graphic object generates two events: event of deletion of an object with the old name, and event of creation of an object with a new name.
After an object is created or an object property is modified it is recommended to call the ChartRedraw() function, which commands the client terminal to forcibly draw a chart (and all visible objects in it).
© 2000-2010, MetaQuotes Software Corp.
