Posted by Rula Halaseh, Last modified by Rawan Al Hourani on 25 October 2017 11:31 AM


Public Function SlTpRelation(ByRef OrderType As OperationTypeEnum, ByRef SlORTp As String) As String

This function is used to determine if the given prices will be "<" or ">" from the current prices with the offset by giving the order type.


Part Description 
OrderType   Operation type, value of type OperationTypeEnum.
SlORTp  Stop loss "SL"or Take profit "TP" 

 Return value

Returns "<" or ">".


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

        Dim result As String

        'API is a predefined variable as CVertexFXClientAPI10

        result = API.SlTpRelation(VertexGeneral10.OperationTypeEnum.BuyStopType, "SL")

        MsgBox("SLTP Relation : " & 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