Public Function DeleteSLTPOrder(ByVal OrderId As Integer) As CallingResultsEnum
This function used to Delete the existing manage order at a specific open position After DeleteSLTPOrder method executes the DeleteSLTPOrderResult
event fires. To get the result from the server after accepted the order you have to consume OnOrderTrade event.
||Order number to be deleted, value of type Integer.
Returns value of type CallingResultsEnum. If the request sent to the server successfully it will return SuccessResult.
Public Sub Main ()
Dim Result as VTLGeneral.callingResultsEnum
Dim Order_ as VTLGeneral.Order
Order_= ClientCode.OrderByIndex (1)
If not Order_ is nothing then
Result = ClientCode.DeleteLimitOrder (Order_.OrderID)
GUI.msgDialog("There is no Order")
Back to VTL Server Script Index