OpenPositionByTicket
Posted by Mohammad Rahhal, Last modified by Fouad Faraj Allah on 02 July 2019 04:27 PM

Syntax

ReadOnly Property OpenPositionByTicket(ByRef Ticket As Integer) As COOpenPosition

Description

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