Syntax
Public Function SlTpRelation (ByVal TransType As OperationTypeEnum, ByVal SlorTP As String) As String.
Description
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 lossSL/ 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