SlTpPrice
Posted by Angham Al-Banawien, Last modified by Mohammad Alawneh on 08 July 2019 12:36 PM

Syntax

Public Function SlTpPrice (ByVal TransType As OperationTypeEnum, ByVal SymbolID As Integer, ByVal FromPrice As Double, ByVal SlorTP As String) As String.

Description

This function is used to get the Stop Loss or Take Profit price according to transaction type.

Parameters

Parameter  Description 
TransType

Operation type which can be one of OperationTypeEnum.

SymbolId

Symbol number which is required to get the Stop Loss or Take Profit price for. Value of type is Integer.

FromPrice From which price the Stop Loss /Take Profit will be taken, Value of type is Double.
SlorTP Stop loss”SL”/ Take Profit “TP”. Value of type is String.

Return value

Returns Stop Loss or Take Profit price as the value of type Double.

Sample

Public Sub main()   

     Dim limitPrice as Double = ClientCode.LimitPrice (VTLGeneral.OperationTypeEnum.BuyType, 6)'for EUR/USD
     Dim SlTp_Price as Double 
SlTp_Price = ClientCode.SlTpPrice(VTLGeneral.OperationTypeEnum.BuyType,6, limitPrice,"SL")

    GUI.MsgDialog (“Stop loss price ” & SlTp_Price) 

  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