NavigationUser loginWho's new
Who's onlineThere are currently 0 users and 52 guests online.
|
Object Functions - Part 2Hi folks, Today we are going to continue with the remaining of Object Functions and we have a simple MQL program to apply some of what we have learnt about drawing objects programicaly. Let's see what left of the object functions: ObjectMove:
Syntax:
Description: The ObjectMove function changes the specified coordinate of the object to new x and y coordinate. Note: If you have a 2 or 3 coordinates object and want to change the 2 or 3 coordinates, you have to use ObjectMove function 2 or 3 times for every coordinate. Parameters: string name: The string name of the object you want to change its coordinate. int point: Coordinate index (0, 1, 2) you want to change it. datetime time1: The first vertical coordinate of the object. This parameter is a datetime type (because the vertical coordinate of the chart is the time coordinate). double price1: The first horizontal coordinate of the object. This parameter is a double type (because the horizontal coordinate of the chart is the price coordinate). Note: You have to note which currency pair you are going to draw on its chart because the prices ranges differs from currency to currency. Example:
ObjectName:
Syntax:
Description: The ObjectName function returns the object name for the given index from the object list. To check the error use GetLastError() function. Parameters: int index: The index of the object you want to get its name. Note: The index must be equal to 0 or greater, and be less than the total of the objects count returned by ObjectsTotal() function. Example:
|