Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 14 September 2020 12:48 PM


 Public Function OrderGetDouble(propertyID As Integer, ByRef doubleVar As Variant) As Boolean


This function is used to get the property information for Selected Order according to a given property ID and set a result on a doubleVar variable.


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.


 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

Back to VTL Client Script Index

(1 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions