Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 14 September 2020 10:26 AM


Public Function UpdateSLTPOrder(ByRef OrderID As Integer, ByRef Lots As Double , [ByRef SL As Object = ""], [ByRef TP As Object = ""],[ByRef TransTag As String = ""]) As VertexFXClientAPI10.CallingResultsEnum


This function updates an SL/TP order by the given order ID.After UpdateSLTPOrder method executes the UpdateSLTPOrderResult event fires.An account must be selected by SelectAccount method before using UpdateSLTPOrder method.


Part Description 
OderID   Associated order ID to be updated, value of type Integer
Lots  Amount of lots, value of type Double 
SL Stop loss amount ,optional value
TP Take profit amount ,optional value.
TransTag String value to mark updated SLTP order when the result came from server,optional value.

Return value

Returns value of type CallingResultsEnum.If the request sent to the server successfully it will return SuccessResult


Private Sub Btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn.Click
    Dim result As VertexFXClientAPI10.CallingResultsEnum

    'API is a predefined variable as CVertexFXClientAPI10

    Dim Order As COOrder = API.OrderByIndex(1)


    MsgBox("Update SLTP Order Result : " & result.Tostring)

End Sub

See Also

VertexFX Client API Index

(0 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