Knowledgebase:
OpenPositionByTicket
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 25 October 2017 09:18 AM

Syntax

ReadOnly Property OpenPositionByTicket(ByRef Ticket As Integer) As COOpenPosition

This property is used to return an object of type COOpenPosition that belongs to the given ticket number.

Parameters

Part Description 
Ticket Ticket number to get the open position object for, the value of type Integer.

Remarks  

Use this property to get an open position if you know its ticket number.

Sample

 Private Sub OpenPos_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenPos.Click
 
   'API is perdefined variable as CVertexFXClientAPI

   Dim Pos As COOpenPosition

   Pos = API.OpenPositionByTicket(12345) 'Change it with the your ticket number

   Msgbox("Position ticket number " & Pos.Ticket & "Lots: " & Pos.Lots )

 End Sub

 


See Also


VertexFX Client API 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