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


Public Function NewSLTPOrder(ByRef Ticket As Integer , Lots As Double ,[ByRef SL As Object = ""],[ByRef TP As Object = ""],[ByRef TransTag As String = ""]) As VertexFXClientAPI.CallingResultsEnum

To make new SL/TP order.


Part Description 
Ticket  Ticket number value of type integer.
Lots  Amount of lots value of type double.
SL Optional. Stop loss value of type object.
TP Optional. Take Profit value of type object.
TransTag Optional. Value of type string.


After this method executes with acceptance then NewSLTPOrderResult event will fire. You have to call SelectAccount method before using this method.

If you want to know the result of NewSLTPOrder you have to assign it to a variable of type CallingResultsEnum.


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

        'API is a predefined variable as CVertexFXClientAPI

        result = API.NewSLTPOrder(1235, 0.2, 1390.4)

        MsgBox("New SLTP Order Result : " & result)

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