Syntax
Public Function OrderGetDouble(propertyID As Integer, ByRef doubleVar As Variant) As Boolean
Description
This function is used to get the property information for Selected Orderaccording to a given property ID and set aresult on a doubleVar variable.
Parameters
Key | Description |
propertyID | The property to get it value , can be one of ENUM_ORDER_PROPERTY_DOUBLE. |
doubleVar | Property Result, a value of type Double. |
Return value
Returns true if successful. Otherwise, returns false. In order to get an error, call GetLastError() function.
Sample
Public Sub main () Dim Order Dim OrderPrice Dim orderSL Dim OrderTP Dim Order CurrentPrice Order = OrderGetID (1) OrderSelect (Clng (Order))Returns True if order selected successfully OrderGetDouble ORDER_PRICE_OPEN, OrderPrice OrderGetDouble ORDER_SL, orderSL OrderGetDouble Order_TP, OrderTP OrderGetDouble ORDER_PRICE_CURRENT, CurrentPrice AlertMessage Order price for order & Order & is: & OrderPrice & SL & orderSL & TP & OrderTP & current Price & CurrentPrice End sub
See Also