Syntax
Public Function OrderGetDouble(ByVal property_id As ENUM_ORDER_PROPERTY_DOUBLE) As Double.
Description
This function is used to return value of type double that is corresponding at order property for the selected orderthrough SelectOrderByIndexor SelectOrderByID.
Parameters
Parameter | Description |
property_id |
Property that wants to get it value. It can be one of theENUM_ORDER_PROPERTY_DOUBLE. |
Return value
Returns the requested order property value as the value of type Double.
Sample
Public Sub main() Dim Select_Result as Boolean Dim value as Double Select_Result = ClientCode.SelectOrderByIndex (1) select the first order at trade list If Result = true then value = ClientCode.OrderGetDouble (VTLGeneral.ENUM_ORDER_PROPERTY_DOUBLE.ORDER_OPEN_PRICE) GUI.MsgDialog(Order Price value is: & value) End If End Sub
See Also
Back to VTL Server Script Index
Public Sub main() Dim Select_Result as Boolean Dim value as Double Select_Result = ClientCode.SelectOrderByIndex (1) select the first order at trade list If Result = true then value = ClientCode.OrderGetDouble (VTLGeneral.ENUM_ORDER_PROPERTY_DOUBLE.ORDER_OPEN_PRICE) GUI.MsgDialog(Order Price value is: & value) End If End Sub