SlTpRelation
Posted by Angham Al-Banawien, Last modified by Abdullah Almasharfah on 07 December 2018 06:51 PM

Syntax

Public Function SlTpRelation (ByVal TransType As OperationTypeEnum, ByVal SlorTP As String) As String.

This function is used to determine if Stop Loss / Take Profit price will be greater than or less than the current price with offset by the given order type

Parameters

Parameter  Description 
TransType

Operation type which can be one of OperationTypeEnum.

SlorTP Stop loss”SL”/ Take Profit “TP”. Value of type is String.

Return value

Returns” <”,” >” as the value of type String.

Sample

  Public Sub main()   

     Dim SLTP_Relation as String= ClientCode.SlTpRelation(VTLGeneral.OperationTypeEnum.BuyType , "SL")

    GUI.MsgDialog (SLTP_Relation) 

  End Sub

 


See Also


Back to VTL Server Script 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