Syntax
Public Function SetPricelabel(chart_Id As Long, name As String, prop_Id As ENUM_PRICE_LABEL, prop_value As Variant) As Boolean
Description
This function is used to set the property such as font size, position, font color..etc for price label object by given the property id value.
Parameters
Key | Description |
chart_Id | Chart identifier. 0 mean the current chart, the value of type Long. |
name | Object key, the value of type String. |
prop_Id | The property value that wants to change the label object according to it, the value of type ENUM_PRICE_LABEL. |
prop_value | The value of the property Id, the value of type Variant. |
Return value
Returns true if the property set to the label object. Otherwise, it returns false. In order to get an error , call GetLastError() function.
Sample
Public Sub main () AlertMessage AddPriceLabel(0, 0, 0.79654,"PriceLabel") AlertMessage SetPriceLabel(0," PriceLabel", PRICE_LABEL_FONT_SIZE, 14) End sub
See Also