OpenPositionByTicket
Posted by Mohammad Rahhal, Last modified by Abdullah Almasharfah on 07 December 2018 04:36 PM

Syntax

Public Function OpenPositionByTicket (ByVal Ticket As Integer) As CPosition

This function is used to return the symbol Position object by the given ticket number.

Parameters

Parameter  Description 
Ticket Position ticket number. Value of type is Integer. 

Return value

Returns CPosition object for the requested ticket number.

Sample

Public Sub main()

   Dim vPostion As VTLGeneral.CPosition     

   Dim vTicket as Integer = 138686 ' change with ticket number you want

   VPostion = ClientCode.OpenPositionByTicket (vTicket)    

   GUI.MsgDialog (“The position type is:” & vPostion.buySell)

 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