OpenPositionByTicket
Posted by Mohammad Rahhal, Last modified by Mohammad Alawneh on 08 July 2019 11:44 AM

Syntax

Public Function OpenPositionByTicket (ByVal Ticket As Integer) As CPosition

Description

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)

   if not vPostion is nothing then     

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

 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