Syntax
Public Function ObjectMove(chart_Id As Long, name As String, point As Integer, time1 As String, Price1 As Double) As Boolean
Description
This function is used to move an object in the chart by a given thecoordinates
Parameters
Key | Description |
chart_Id | Chart identifier. 0 mean the current chart, the value of type Long. |
name | Object name that wants tomove, the value of type String. |
Point | Coordinate index (0-2), the value of type Integer. |
time1 | New time coordinate value, the value of type String. |
Price1 | New price coordinate value, the value of type Double. |
Return value
Returns true if successful. Otherwise, it returns false.To get the detailed error information, call GetlastError() function.
Sample
Public Sub main () AlertMessage ObjectMove (0,Object Name,1,13/06/2016 12:22:00, 1.12787) End sub
See Also