DeleteSlTpOrder
Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 02 September 2020 10:10 AM

Syntax

Public Function DeleteSlTpOrder(OrderID As String) As Boolean

Description

This function is used to delete a given manage order number.To get a result from the server, you have to consume OnOrderTrade event.

Parameters

Key Description 
OrderID Manage order number to be deleted, a value of type String.

Return value

Returns true if successful, otherwise returns false. In order to get an error, call GetLastError() function.


Sample

 Public Sub main ()

  If AccountInfoInteger (ACCOUNT_LOGIN) Then
      Dim OrderID
      OrderID = OrderGetID (1)

        If DeleteSLTPOrder (Cstr (OrderID)) = false then 
          AlertMessage ErrorDescription (GetLastError ())
        End IF
  End IF

  End sub

See Also


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
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