Syntax
Public Function ObjectGetPointByValue(chart_index As Integer, name As String, value As Double) As Integer
Description
This function is used to object point which has the specific price value.
Parameters
Key | Description |
chart_index | Chart identifier, 0 means the current chart, the value of type is Integer |
Name | The object name, the value of type is String |
value | The prices value, the value of type is Double |
Return value
Returns the point number which has a given price, otherwise returns -1, In Order to get an error call GetLastError()function.
Sample
Public Sub main() AlertMessage ObjectGetPointByValue(0, ObjectName, 1.8)End Sub
See Also