NewSLTPOrder
Posted by Mohammad Rahhal, Last modified by Yousef Ibrahim on 05 July 2012 01:14 PM

Syntax

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.

Parameters

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.

Remarks  

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.

Sample

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))
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